proc
Levelcheck()
if (experience >= level * 100)
level += 1
world << "[usr] gained a level!"
world << "[usr] is now level [level]"
Problem description:
I defined "level" earlier:
mob
pc
icon = 'person.dmi'
var
HP = 100 * stamina
wealth
level = 1
Experience
But I end up with:
TestWorld2.dm:68:error:level:undefined var
TestWorld2.dm:69:error:level:undefined var
TestWorld2.dm:71:error:level:undefined var
Does anyone know why?
And it says that = needs a constant expression.
I am sorta new to coding so help would be really appreciated.
TestWorld2.dm:42:error:= :expected a constant expression
TestWorld2.dm:68:error:experience:undefined var