var/spin = 0
mob/proc/spin()
spin = rand(1,2)
if(spin == 1)
world <<"Winner is Knightblade! :D!"
if(spin == 2)
world <<"Winner is Killer2! :D"
gives,
loading Siient Mud.dme
Siient Mud.dm:55:error:rand:undefined proc
Siient Mud.dm:56:error::invalid expression
Siient Mud.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)
ID:178182
Jun 11 2002, 7:19 pm
|
|
Jun 11 2002, 7:21 pm
|
|
var/spin not just spin
|
In response to Nadrew
|
|
huh?
|
In response to Nadrew
|
|
switch(rand(1,2)
if(1) blah blah if(2) blah blah It's better. |
In response to Garthor
|
|
Garthor wrote:
switch(rand(1,2) If you happen to remember the closing parentheses, yes. Better still, for just two choices, is this: if(prob(50)) ...or this: world << "Winner is [(prob(50))?"name1":"name2"]!" Lummox JR |
In response to Lummox JR
|
|
stupid right parenthesis! I always forget to put it =P
|