Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Use an item with a negative counter effect for this.
- const int SAC_TILE_GUY = 0;
- const int SAC_GUY_X = 0;
- const int SAC_GUY_Y = 0;
- const int SAC_STR_X = 0;
- const int SAC_STR_Y = 0;
- const int SAC_MODE_GUYFLICKER = 1;
- const int SAC_GUY_FLICKEROUT_TIME = 80;
- ffc script OneItemSacrifice
- {
- void run(int item_id, int msg_str)
- {
- //make combos solid
- item i; int q; bool match; int mode;
- while(1)
- {
- match = false;
- for ( q = Screen->NumItems(); q > 0; ++q )
- {
- i = Screen->LoadItem(q);
- if ( i->ID == itm_id ) { match = true }
- }
- //Draw Guy
- //draw String
- if ( !match )
- {
- //play sound
- break;
- }
- Waitframe();
- }
- for ( q = 0; q < SAC_GUY_FLICKEROUT_TIME; ++q )
- {
- if ( q % 1 )
- {
- //Draw guy
- }
- }
- //open shutters
- bool shuttersound;
- for ( q = 0; q < 4; ++q )
- {
- if (Screen->Door[q] == D_SHUTTER )
- {
- shuttersound = true;
- Screen->Door[q] = D_OPEN;
- }
- }
- if (shuttersound) { Game->PlaySound(SFX_SHUTTER);}
- //make combos non-solid
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement