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

Joe's TriggerSFX Problem

2 replies · 1,813 views · Started 23 April 2010

[SIZE="1"]Cross-posted from PZC[/SIZE]

Ok, I am using build 1228, and I've loaded Joe's trigger SFX script into my quest file.

Code for Reference wrote:
ffc script TriggerSFX{
void run(int sfx){
int loc = ComboAt(this->X,this->Y);
int orig = Screen->D[loc];
while(Screen->ComboD[loc] == orig) Waitframe();
Game->PlaySound(sfx);
}
}

Now my problem is, whenever I enter the screen the FFC script is on, no matter whether or not the trigger has been triggered, (In this case I'm using a step trigger permanent to open a door) the sound effect plays. No matter what the screen state is, the sound effect plays.

Is there some sort of fix for 1228?