Originally Posted by
ShadowTiger
I already have a fairly solid pseudocode for the bridge's unfurling, but I'm wondering how to go about the tiered secret ordeal in terms of the script. Perhaps I could create a little counter, and whenever the secrets are triggered, it adds one to that counter. When that counter equals three, a switch statement (Right?) will go to the function which will perform the operation I will force it to do at gunpoint.
Switch? I'm not sure I see how that'd apply. Switch is basically a shorter way of writing "if... else if... else if..." If that's what you mean, you're right; I just don't see how you're using it.
Regardless of how, you can't use it. ZScript doesn't have it.
Anyway, what I suggest you do (for no other reason than that it's the first thing I thought of) is to set up a tiered secret on the FFC itself. Put an inherent secret flag on the FFC's combo, and another secret flag on the combo it'll change to, and another flag on that. Then, in the script:
Code:
while(true)
{
if(this->Data == COMBO_FFC_WILL_BE_WHEN_LAST_SECRET_IS_TRIGGERED)
break;
else
Waitframe();
}
Then just have it do its stuff after it breaks out of that loop.