Quote:
Originally posted by Link188
if (thrown) {
setstring thrown,#g;
sleep2;
setstring thrown,;
}
if (playertouchsme&&!strequals(thrown,#g)) {
setlevel2 2,2,2;
}
|
Instead of strings (which are attached to players, i suppose(corret if wrong)), maybe this.-vars would work...
NPC Code:
if (thrown) {
this.thrown = 1; // 1 = red, 2 = blue, etc...
timeout = 2;
}
if (timeout) this.thrown = 0; //thrown off
if (playertouchsme) {
if (strequals(#g,Red)) this.thrownat=1;
if (strequals(#g,Blue)) this.thrownat=2;
if (this.thrown!= this.thrownat) { setlevel2 blah.graal,2,2; }
}
Dunno...but it would depend on if strings are with players not the whole level...
Gohan