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