View Single Post
  #2  
Old 02-06-2002, 09:39 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Trigger Action and Timevar Help Please

Quote:
Originally posted by Kaimetsu
Horrible coding.

NPC Code:

if(playerenters&&isleader) setcharani licookie-normal,;
if(actionSprikels){
this.percent++;
message #v(this.percent) %;
if(this.percent==100){
playerrupees++;
setcharani licookie-sprinkels,;
x = 26; y = 25;
this.percent=0;
}
}



NPC Code:

if(playerenters){
if(isweapon) timeout=1000000;
else toweapons Sprikels;
}
if(timeout){
say2 You ran out of#bsprinkels!;
destroy;
}
if(weaponfired){
triggeraction playerx,playery,Sprikels,;
}



Stupid parts removed and in some cases replaced. Still don't know what it's supposed to do, though.
It doesnt make the % go up on the cookie with the weapon hiting it and when it gets 100 it give the player a gralat
Reply With Quote