mob/proc
Warrior_Level()
usr<<"You has gained a level!"
usr<<"HP has went up by [hvalue]!"
var/hvalue=(rand,5,20) //it's supposed to be random from anywhere from 5, to 20
Problem description:
levelup.dm:22:hvalue:warning: use of hvalue precedes its definition
levelup.dm:23:hvalue :warning: definition is here
levelup.dm:23:error:rand:undefined var
levelup.dm:23:error::invalid expression
There it has no errors for me. The two problems you had is you have to define the var before you call it and the second was rand is placed like "rand(#,#)" not "(rand,#,#)"
Hope that helps!