Thread: Variables
View Single Post
  #3  
Old 02-27-2002, 04:25 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote