well lets see
you can use variables with flags for certain things, here is a example:
NPC Code:
if (playertouchsme) {
myvar=playerrupees;
if (myvar==0) {
message You have no gralats;
}
if (myvar==1) {
message You have 1 gralat;
}
if (myvar>=2) {
message You have #v(myvar) gralats;
}
sleep 3.4;
message ;
}
>= - great than or equal to
> - greater than
<= - less than or equal to
< - less than
== - equal to
!= - not equal to
if you want to check if a variable is greater than, less than, minimum about (greater than or equal to), maximum number (lesser than or equal to), equal to, or any other number