int FreezeID;
const int SFX_UNLOCK=0;
const int SFX_RUMBLE =0;
const int S_BLOCKMESSAGE = 0;
ffc script lockedBlockShake{
void run(int frames, int x, int y){
Waitframes(2);
int block = ComboAt(x,y);
int lock = Screen->ComboD[block];
while(lock == lock)
Waitframe();
if(Link->Dir == 0 && Link->InputUp){
Game->PlaySound(SFX_UNLOCK);
Screen->Quake=frames;
GamePlaySound(SFX_RUMBLE);
FreezeID = Screen->ComboT[0];
Screen->ComboT[0] = CT_SCREENFREEZE;
Waitframe(frames);
Screen->ComboT[0] = FreezeID;
Game->PlaySound(SFX_SECRET);
if(S_BLOCKMESSAGE != 0){
Waitframe(20);
Screen->Message(S_BLOCKMESSAGE);
}
}
}
}
I wrote this script for the database but when i tested it it doesn't work! can someone help me what's going on? it compiles flawlessly but I just can't get it to work what am I missing? did I write something wrong? I mean it all makes sense to me..each line I wrote gives specific instructions on how it would run. I need a coder
more experienced than me to help me.
Edited by drzchulo973, 30 November 2008 - 12:15 AM.