Advertisement
ZoriaRPG

ZC Timeshift Orbs & Stones (Pre-Alpha)

Nov 19th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.42 KB | None | 0 0
  1. item script TimeshiftOrb{
  2.    
  3.    
  4. }
  5.  
  6. ffc script Timeshift_Orb{
  7.     //Link should be able to lift this, carry it to a spot, and set it down.
  8.     //Its radius should affect combos and enemies. Use CenterX() and CenterY() based on area of effrct, for combos
  9.     void run(){
  10.         int layerCombos[176*3];
  11.         int changedCombos[176*3];
  12.         int npcs[25600];
  13.         bool shiftBackward;
  14.         //store initial combos in array.
  15.         Waitframes(5); //Wait to store the combos, and allow enemies to spawn.
  16.         //store enemies now.
  17.             while(shiftBackward){
  18.             //make radius effect
  19.                 //Define the radius range.
  20.                 //checj for flagged combos that fall into this radius]
  21.                 //draw blurred ring around edge of radius (event horizon) to cover up combo change squareness
  22.                 if ( ComboX() && ComboY() < Radius
  23.                     //or GridX
  24.             //increase combos with specific flag by +1 if their ID still matches the position in the indices.
  25.            
  26.                 //if a combo is flagged to change, and has an enemy flag on it
  27.                 //spawn that enemy and contrain it to be inside the radius
  28.                 //kill it if it moves outside
  29.                 //or track its position, but make it invis and turn colldet off
  30.                 //until it's inside the effect again
  31.                
  32.                 //Store the combos that we change in the array changedCombos.
  33.                 //if the centre of the effect changes (orb has moved)
  34.                     //if a combo falls outside the radius,, change it back
  35.                
  36.             //When turned off, change them back.
  37.             Waitframe();
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement