var/equipw
var/equipa
var/equips
obj
var
ammount = 1
equipa = 1
equipw = 1
equips = 1 // Defined twice to see if it fixed it
Toy_Sword
Price = 20
icon = 'Weapons.dmi'
icon_state = "toy"
verb/Get()
set src in oview(0)
if(usr.contents.len==0)
src.Move(usr)
else if(usr.contents.len>=1)
for(var/obj/O in usr.contents)
if(O.name==src.name)
O.ammount+=1
del src
else
src.Move(usr)
verb/Equip()
if(!usr.equipw)
usr<<"You already have a weapon equipped!"
return
else
usr<<"You equip the Toy Sword!"
usr.equipw = 0
usr.str += 3
verb/Unequip()
if(usr.equipw)
usr<<"You don't have this equipped!"
return
else
usr.equipw = 1
usr<<"You unequip the Toy Sword!"
Problem description: obj.dm:78:error:usr.equipw:undefined var
obj.dm:83:error:usr.equipw:undefined var
obj.dm:86:error:usr.equipw:undefined var
obj.dm:90:error:usr.equipw:undefined var
PS:Equipw = weapon, s=shield, a=armor
obj
var
ammount = 1
equipa = 1
equipw = 1
equips = 1 // Defined twice to see if it fixed it
change it to this
obj
var/ammount = 1
var/equipa = 1
var/equipw = 1
var/equips = 1 // Defined twice to see if it fixed it