ID:266545
 
I am having trouble with my statup proc,

mob
proc
statup()
if(usr.exp>=usr.maxexxp)
if(usr.Strength = 45)
usr<<"You scream loudly as you become a SUPER SAIYAN"
usr<<"You unlock your hidden powers"
Levelup(usr)

i get undefined var for maxexp and Strength and exp!! wat does that mean
Try this:
mob
var
exp=0
maxexp=0
Strength = 5


mob
proc
statup()
if(src.exp>=src.maxexxp)
if(src.Strength>=45)
src<<"You scream loudly as you become a SUPER SAIYAN"
src<<"You unlock your hidden powers"
Levelup(src)


--SSJ4_Gohan_Majin
Indestructable Cheese wrote:
I am having trouble with my statup proc,

mob
proc
statup()
if(usr.exp>=usr.maxexxp)
if(usr.Strength = 45)
usr<<"You scream loudly as you become a SUPER SAIYAN"
usr<<"You unlock your hidden powers"
Levelup(usr)

i get undefined var for maxexp and Strength and exp!! wat does that mean

This must be the week of the misused usr.

There is no defined usr for this proc!!

Replace all above occurances with "src." If it still says not defined, then you need to define those variables within mob.
In response to SSJ4_Gohan_Majin
And I'll say it again...

usr is wrong. Get rid of it.

<font size = -1>Geez... How many times today?</font>