ID:141174
 
Code:
Equip/gear
SpikeL
name = "Spike L"
icon = 'Spike L.dmi'
mouse_drag_pointer = 'Spike L.dmi'
Slot = "Left"


Problem description:
I have been working on getting the object to increase a stat but it wont ( posted a non modified copy of the code) so i decided to post here to see if anyone has had a similar issue before. this is based off of max omega's equipment system if u need any more info ill post it

I'll give an example.

mob
var/cloth
var/zwearing = 0 // means the user isn't wearing the item


obj
Clothing
Zanpaktou
icon = 'Zanpaktou.dmi'
verb
Equip()
var/clothover = 'Zanpaktou.dmi'
usr.cloth = clothover
usr.overlays += usr.cloth
usr.zwearing = 1
usr.str += 300 //temporarily str gain by 300
Unequip()
usr.overlays -= usr.cloth
usr.overlays -= 'Zanpaktou.dmi'
usr.zwearing = 0
usr.str -= 300 //str gain went back to normal

//this is an old code of mine
In response to Scizzes
thanx I got it workin