![]() |
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: |
Because it sets the other this. variable automatically.
|
Put a sleep right before setting the this.var
|
:D Thanks I think that might be the problem.
|
Ok...I did that but now it doesn't go down :(
NPC Code: |
Say2 is a really bad way of doing that, I just made this a few minuets ago, learn from this, add the buying stuff yourself
*thinks hes going to get flamed for posting this =/* // NPC made by Jagen if (playertouchsme) { this.select=1; this.bombs=0; this.hearts=0; this.arrows=0; disabledefmovement; timeout=.05; } if (timeout&&this.select==1) { showimg 500,@-----> Hearts: #v(this.hearts),screenwidth-200,120; showimg 501,@Bombs: #v(this.bombs),screenwidth-200,150; showimg 502,@Arrows: #v(this.arrows),screenwidth-200,180; changeimgvis 500,4; changeimgvis 501,4; changeimgvis 502,4; timeout=.05; } if (timeout&&this.select==2) { showimg 500,@Hearts: #v(this.hearts),screenwidth-200,120; showimg 501,@-----> Bombs: #v(this.bombs),screenwidth-200,150; showimg 502,@Arrows: #v(this.arrows),screenwidth-200,180; changeimgvis 500,4; changeimgvis 501,4; changeimgvis 502,4; timeout=.05; } if (timeout&&this.select==3) { showimg 500,@Hearts: #v(this.hearts),screenwidth-200,120; showimg 501,@Bombs: #v(this.bombs),screenwidth-200,150; showimg 502,@-----> Arrows: #v(this.arrows),screenwidth-200,180; changeimgvis 500,4; changeimgvis 501,4; changeimgvis 502,4; timeout=.05; } if (timeout&&this.select==4) { this.select=1; timeout=.05; } if (timeout&&this.select==0) { this.select=3; timeout=.05;} if (timeout&&keydown(0)) {sleep .5; this.select-=1; timeout=.05; } if (timeout&&keydown(2)) {sleep .5; this.select+=1; timeout=.05; } if (timeout&&keydown(3)&&this.select==1) {sleep .5; this.hearts++; timeout=.05; } if (timeout&&keydown(3)&&this.select==2) {sleep .5; this.bombs++; timeout=.05; } if (timeout&&keydown(3)&&this.select==3) {sleep .5; this.arrows++; timeout=.05; } if (timeout&&keydown(1)&&this.select==1) {sleep .5; this.hearts--; timeout=.05; } if (timeout&&keydown(1)&&this.select==2) {sleep .5; this.bombs--; timeout=.05; } if (timeout&&keydown(1)&&this.select==3) {sleep .5; this.arrows--; timeout=.05; } if (timeout) {timeout=.05;} |
Thanks the thing is why I use say2 is because I'm more used to it no offense :D
|
Quote:
|
NPC Code: ^-- should be easy to edit it ^_^ for new poses in the menu just add them in the tokenize-part to do something with them just add it in the if (this.pos==<number>) code; part |
| All times are GMT +2. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.