View Single Post
  #8  
Old 02-04-2002, 01:43 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Re: Dodgeball Script

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
Reply With Quote