mob
var
HP=100
HPM=100
MP=10
MPM=10
skekey="No"
str=1
arrows=0
shotskill=21
gold=50
weapons=/obj/weapon
Stat()
statpanel("Stats")
stat("Health:","[usr.HP]%")
stat("Magic:","[usr.MP]")
stat("Strength:","[usr.str]")
stat("Arrows:","[usr.arrows]")
stat("Skeleton Key:","[usr.skekey]")
statpanel("Weapons",usr.weapons)
It won't display items under obj/weapon
like
obj/weapon/barrow
What is your weapons var supposed to be? A list of all the weapons the player has, or a variable that just contains the weapon the player is using? If it's the first one, you should declare it like this:
list/weapons = list()
add add weapons to the list as they're gained, or if it's the second, you should do it like this:
obj/weapons
and set it equal to a new instance of a weapon somewhere in the actual code, not the definition... like, weapons = new /obj/weapon/sillyputty. Putting
weapons = /obj/weapon
isn't going to do much... /obj/weapon is neither an obj nor a weapon, it's just a description of the path /obj/weapon.