ID:139839
 
Code:
mob/var
money = 100
str = 5
def = 5
hp = 100
maxhp = 100
Str_Mastery = 0
Str_Mastery1 = 100
mob/Stat()
statpanel("[src]'s Statistics")
stat("str:",str)
stat("def:",def)
stat("hp:","[src.hp]/[src.maxhp]")
stat("money",money)
statpanel("Inventory",contents)
if (statpanel("Skill List"))
stat("Str Mastery","[src.Str_Mastery]/[src.Str_Mastery1]")



proc/level_upstr()
if(src.client)
if(src.Str_Mastery >= src.Str_Mastery1)
src.str_up()
src.Str_Mastery1 *= 1.5
src.Str_mastery = 0


proc/str_up()
src.str += 1


Problem description:


Level up.dm:2:error: src.client: undefined var
Level up.dm:3:error: src.Str_Mastery: undefined var
Level up.dm:3:error: src.Str_Mastery1: undefined var
Level up.dm:4:error: src.str_up: undefined proc
Level up.dm:5:error: src.Str_Mastery1: undefined var
Level up.dm:6:error: src.Str_mastery: undefined var
Level up.dm:3:warning: if: if statement has no effect
Level up.dm:10:error: src.str: undefined var

Game2.dmb - 7 errors, 1 warning (double-click on an error to jump to it)


mob/var
money = 100
str = 5
def = 5
hp = 100
maxhp = 100
Str_Mastery = 0
Str_Mastery1 = 100
mob/Stat()
statpanel("[src]'s Statistics")
stat("str:",str)
stat("def:",def)
stat("hp:","[src.hp]/[src.maxhp]")
stat("money",money)
statpanel("Inventory",contents)
if (statpanel("Skill List"))
stat("Str Mastery","[src.Str_Mastery]/[src.Str_Mastery1]")



mob/proc/level_upstr()
if(src.client)
if(src.Str_Mastery >= src.Str_Mastery1)
src.str_up()
src.Str_Mastery1 *= 1.5
src.Str_mastery = 0


mob/proc/str_up()
src.str += 1
In response to Darker Legends
Thanks alot. Glady appreciated :)
In response to M6qllp9M
No problem