ZoriaRPG

EasterEgg.zs

Oct 14th, 2017
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. const int EASTER_EGG_SDI = 9;
  4. const int EASTER_EGG_FLAG = 0x00010000b;
  5.  
  6.  
  7. ffc script TriggerEasterEgg
  8. {
  9.     void run(int dmap, int scr)
  10.     {
  11.         bool waiting = true;
  12.         while(waiting)
  13.         {
  14.             //Spell out the conditions that trigger the easter egg.
  15.             if ( conditions ) waiting = false;
  16.             Waitframe();
  17.         }
  18.         SetScreenDBit(dmap, scr, EASTER_EGG_SDI, EASTER_EGG_FLAG, true);
  19.     }
  20. }
  21.  
  22. //Run on screen Init.
  23. ffc script EggScreenComboChange
  24. {
  25.     void run(int combo_id)
  26.     {
  27.         if ( GetScreenDBit(Game->GetCurDMap(), Game->GetCurScreen(), EASTER_EGG_SDI, EASTER_EGG_FLAG )
  28.         {
  29.             for ( int q = 0; q < 176; q++ )
  30.             {
  31.                 if ( ComboF[q] == 103 )
  32.                 {
  33.                     ComboD[q] = combo_id;
  34.                 }
  35.             }
  36.         }
  37.     }
  38. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×