const int COMPASS_SFX = 79; //Set this to the SFX id you want to hear when you have the compass. const int COMPASS_VISUAL_CMB = 48; const int COMPASS_VISUAL_CSET = 7; ffc script CompassBeep{ void run(int item, int specialitem){ if(GetLevelItem(LI_COMPASS)){ if(!Screen->State[ST_ITEM] && (item>0)){ Game->PlaySound(COMPASS_SFX); for(int i = 120; i>0; i--){ Screen->FastCombo(7,0,0, COMPASS_VISUAL_CMB, COMPASS_VISUAL_CSET,OP_OPAQUE); } } else if(!Screen->State[ST_SPECIALITEM] && (specialitem>0)){ Game->PlaySound(COMPASS_SFX); for(int i = 120; i>0; i--){ Screen->FastCombo(7,0,0, COMPASS_VISUAL_CMB, COMPASS_VISUAL_CSET,OP_OPAQUE); } } } } }
So, I have this script that plays an sfx whenever you have the dungeon's compass. But I want to add one more thing, a visual cue (suggested by Shane). I have the blinking combo made, but my main problem is that I only want it to be shown for about 3 seconds and then have it disappear until you revisit the screen (given you haven't collected the item yet).
I thought that with a for loop it would do that, but it doesn't. I imagine that it does that since the script runs only for a single frame? It does get drawn, but only for a split second, then it disappears...
Thanks for any given help.