if(1 = 2)
world << "1 is the same as 2!"
ID:157508
![]() Feb 24 2010, 9:36 am
|
|
How would I do:
|
mob |
Another question.
How would I do:(Putting a limit and a minimum on something.) mob/verb/set_1(S as text) |
Just as a side note, you can't assign variables where the first character is a number. Also, since you want "S" to be a number, it's best to set it to only accept numbers.
As for your minimum/maximum question, there are conveniently two procs that do just that: max() and min(). So putting the above to work, you'd get something like... mob/verb/set_1(S as num) |
The = operator is for assignment; it assigns the value on the right side to the var on the left. The == operator is for testing if two things are equal.