Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

ffc->WasTriggered()

3 replies · 918 views · Started 03 May 2009

ffc script Whatever {
void run() {
if(this->WasTriggered()) {
Quit();
}
}
}

This script gives an error:

"Internal Error: Couldn't find function label xyz"

(except, the xyz is a number. It varies, depending on what else is in the script file)

The issue is with the "WasTriggered" method. If you replace it with "true" in the script, it compiles fine.

I've not yet tested to see whether it works in game or not.

EDIT: No, the script fails entirely in game. No error in allegro.log, though.

I got the same thing, but it compiled with the error? Error popped up during pass 6.
I got 63 in a empty script file like the one you provided above. <-Literately

Someone try it out in a quest, I would make one but it's 9 PM and i'm tired.

I tried it out, and it doesn't work.

Also, I forgot to mention, immediately after the error, it "succeeds", and proceeds to the script assignment window as usual.