Colorful Super Gems

Version:

1.0

Added on:

09 Feb 2013 17:52

Tags:

Description:
Allows you to add green, blue and purple super gems and invisible gem stomps. To make use of this code you will have to edit two lines of your JCS.ini:
67=Super Gem |+|Gem |Super |Gem |Color:2
189=Invisible GemStomp |+|Gem |Gem |Stomp |Color:2
  1. void onMain()
  2. {
  3.   updateGems();
  4. }
  5.  
  6. void updateGems()
  7. {
  8.   for(int i=1;i<jjObjectCount;i++)
  9.   {
  10.     if(jjObjects[i].isActive)
  11.     {
  12.       if(jjObjects[i].eventID==OBJECT::SUPERGEM)
  13.       {
  14.         jjObjects[i].var[0]=jjParameterGet(jjObjects[i].xOrg/32,jjObjects[i].yOrg/32,0,2)+1;
  15.       }
  16.       if(jjObjects[i].eventID==OBJECT::FLICKERGEM)
  17.       {
  18.         if(jjEventGet(jjObjects[i].xOrg/32,jjObjects[i].yOrg/32)==OBJECT::SUPERGEM)
  19.         {
  20.           jjObjects[i].var[0]=jjParameterGet(jjObjects[i].xOrg/32,jjObjects[i].yOrg/32,0,2)+1;
  21.         }
  22.         else if(jjEventGet(jjObjects[i].xOrg/32,jjObjects[i].yOrg/32+1)==OBJECT::GEMSTOMP)
  23.         {
  24.           jjObjects[i].var[0]=jjParameterGet(jjObjects[i].xOrg/32,jjObjects[i].yOrg/32+1,0,2)+1;
  25.         }
  26.         if(jjObjects[i].var[0]==2||jjObjects[i].var[0]==3)
  27.         {
  28.           jjObjects[i].points=500*(jjObjects[i].var[0]-1);
  29.         }
  30.       }
  31.     }
  32.   }
  33. }