Grrr I figured this error out once in another script but now I can't figure out why it won't show the second say2 and skips to the third one!!!:grrr:
NPC Code:
if(playertouchsme){
this.t = 0;
this.bombs = 0;
this.arrows = 0;
this.hearts = 0;
sleep .1;
say2 .;
}
if (keydown(3)&&playerendsreading&&this.t==1) {
this.bombs = this.bombs+5;
say2 >Bombs #v(this.bombs) #b
Arrows #v(this.arrows) #b
Hearts #v(this.hearts);
this.t=0;
}
if (keydown(2)&&playerendsreading){
if(this.t==0) {
say2 >Bombs #v(this.bombs) #b
Arrows #v(this.arrows) #b
Hearts #v(this.hearts);
this.t = 1;
}
if(this.t==1) {
say2 Bombs #v(this.bombs) #b
>Arrows #v(this.arrows) #b
Hearts #v(this.hearts);
this.t = 2;
}
if(this.t==2) {
say2 Bombs #v(this.bombs) #b
Arrows #v(this.arrows) #b
>Hearts #v(this.hearts);
this.t = 0;
}
}
if(keydown(5)&&playerendsreading){
say2 Have a nice day!;
this.t = 0;
}