ZoriaRPG

One Item Sacrifice

Mar 9th, 2018
113
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.  
  9. ffc script OneItemSacrifice
  10. {
  11. void run(int item_id, int msg_str)
  12. {
  13. //make combos solid
  14.  
  15. item i; int q; bool match;
  16. while(1)
  17. {
  18. match = false;
  19. for ( q = Screen->NumItems(); q > 0; ++q )
  20. {
  21. i = Screen->LoadItem(q);
  22. if ( i->ID == itm_id ) { match = true }
  23. }
  24. //Draw Guy
  25. //draw String
  26. if ( !match )
  27. {
  28. //play sound
  29. break;
  30. }
  31. Waitframe();
  32. }
  33. //open shutters
  34. bool shuttersound;
  35. for ( q = 0; q < 4; ++q )
  36. {
  37. if (Screen->Door[q] == D_SHUTTER )
  38. {
  39. shuttersound = true;
  40. Screen->Door[q] = D_OPEN;
  41. }
  42. }
  43. if (shuttersound) { Game->PlaySound(SFX_SHUTTER);}
  44. //make combos non-solid
  45. }
  46. }
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.

×