Advertisement
ZoriaRPG

One Item Sacrifice Room FFC v0.2

Mar 9th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.43 KB | None | 0 0
  1. //Use an item with a negative counter effect for this.
  2.  
  3. const int SAC_TILE_GUY = 0;
  4. const int SAC_GUY_X = 0;
  5. const int SAC_GUY_Y = 0;
  6. const int SAC_STR_X = 0;
  7. const int SAC_STR_Y = 0;
  8. const int SAC_MODE_GUYFLICKER = 1;
  9. const int SAC_GUY_FLICKEROUT_TIME = 80;
  10. ffc script OneItemSacrifice
  11. {
  12.      void run(int item_id, int msg_str)
  13.      {
  14.           //make combos solid
  15.          
  16.           item i; int q; bool match; int mode;
  17.           while(1)
  18.           {
  19.                match = false;
  20.                for ( q = Screen->NumItems(); q > 0; ++q )
  21.                {
  22.                     i = Screen->LoadItem(q);
  23.                     if ( i->ID == itm_id ) { match = true }
  24.                }
  25.                //Draw Guy
  26.                //draw String
  27.                if ( !match )
  28.                {
  29.                     //play sound
  30.                     break;
  31.                }
  32.                Waitframe();
  33.           }
  34.           for ( q = 0; q < SAC_GUY_FLICKEROUT_TIME; ++q )
  35.           {
  36.                if ( q % 1 )
  37.                {
  38.                     //Draw guy
  39.                }
  40.           }
  41.           //open shutters
  42.           bool shuttersound;
  43.           for ( q =  0; q < 4; ++q )
  44.           {
  45.                if (Screen->Door[q] == D_SHUTTER )
  46.                {
  47.                     shuttersound = true;
  48.                     Screen->Door[q] = D_OPEN;
  49.                }
  50.           }
  51.           if (shuttersound) { Game->PlaySound(SFX_SHUTTER);}
  52.           //make combos non-solid
  53.      }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement