Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-28-2002, 05:14 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
Shop say2 confusion

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;
}

Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.