I thought it was a decimal. Hmm.
What you need to do Blue Link is
QUOTE(Joe123 @ Nov 19 2007, 07:44 PM)
set the sword's normal SFX to 0.
By that I mean the one in the item editor.
And that's just a typo that Gleeok's got Fox, ZQuest can't parse the file if you try to set integers within the requirements for an if clause, you
have to put == or it just won't compile.
CODE
import "std.zh"
item script SFX{
void run(){
int x = Rand(4);
if(x == 3 ){Game->PlaySound(70);}
if(x == 2 ){Game->PlaySound(71);}
if(x == 1 ){Game->PlaySound(72);}
if(x == 0){Game->PlaySound(73);}
}
}
That one should work best then.
Edited by Joe123, 20 November 2007 - 03:05 AM.