ZoriaRPG

One Item Sacrifice Room FFC v0.2

Mar 9th, 2018
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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.

×