Advertisement
ZoriaRPG

EasterEgg.zs

Oct 14th, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement