Thread: Classes...
View Single Post
  #14  
Old 12-23-2003, 08:55 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
? :


flag ? True Result : False Result;

Like:
NPC Code:

if (playerenters){
a = 1;
if (a == 1){
a = 1;
} else if (a != 1){
a = 2;
}
message #v(a);
}


is the same as:
NPC Code:

if (playerenters){
a = 1;
a = a == 1 ? 1 : 2;
message #v(a);
}



:P For those who doesn't know.

Nice technique though Hev... Haven't thought of it like that, but I guess they also work.
Reply With Quote