ID:261507
 
Im trying to make a random login and im doing this:


mob
Login()
rand(8,25)
if(8)
src. agey = 8
if(9)
src.agey = 9

but i get the errors:


BattleVar.dm:12:rand :warning: The rand statement is being faded out. Use pick() instead if possible.
BattleVar.dm:13:error::invalid expression


Can anyone help?


Thanks,

~Kros
K'ros Trikare wrote:
Im trying to make a random login and im doing this:


mob
Login()
rand(8,25)
if(8)
src. agey = 8
if(9)
src.agey = 9

but i get the errors:


BattleVar.dm:12:rand :warning: The rand statement is being faded out. Use pick() instead if possible.
BattleVar.dm:13:error::invalid expression


Can anyone help?


Thanks,

~Kros



mob
Login()
var/locates = rand(1,2)
if(locates == 1)
usr.loc=locate(1,1,1)
usr. agey = 8
if(locates == 2)
usr.loc=locate(2,2,2)
usr.agey = 9


- TheWizard