ID:150835
 
I have your system in my code. I add a obj and it shows up after a player starts, but it seems it adds it to all the statpanels.. Equiped, inventory, and under each body part(head, hands). Whats wrong?
wow, that is weird, give me a little while to look it up
btw, its FIREking, but i dont care,
and if you havent learned the ease of templates yet, wait till you see them, they are just great
you have a buntch of coding at the top for your template, then all you have to do is do this

obj/swords
dagger
icon = 'blah.dmi'
icon_state = ""
attack = 5
idname = /obj/swords/dagger
blah blah

im sure you know what im talking about, and actually if you would let me, give me a day or two and ill update it, i found a huge bug in it, something to do with

if(usr.attack >= src.attack)
usr.attack += src.attack

now that doesnt make any sense whatsoever, becuase sometimes the usr might not have his attack greater than the src's attack, which would mean that you would never actually equip it, it would just be wasting space

so let me fix some of it, and ill get back with you
thanks
FIREking
In response to FIREking
On 7/19/01 8:18 pm FIREking wrote:
wow, that is weird, give me a little while to look it up
btw, its FIREking, but i dont care,
and if you havent learned the ease of templates yet, wait till you see them, they are just great
you have a buntch of coding at the top for your template, then all you have to do is do this

obj/swords
dagger
icon = 'blah.dmi'
icon_state = ""
attack = 5
idname = /obj/swords/dagger
blah blah

im sure you know what im talking about, and actually if you would let me, give me a day or two and ill update it, i found a huge bug in it, something to do with

if(usr.attack >= src.attack)
usr.attack += src.attack

now that doesnt make any sense whatsoever, becuase sometimes the usr might not have his attack greater than the src's attack, which would mean that you would never actually equip it, it would just be wasting space

so let me fix some of it, and ill get back with you
thanks
FIREking

sorry about the name typo :) anyways I use your template its easy as pie! I don't use much of you code, just bits I modified it alot.. but I do use the part thats suppose to equip items, so I await your update.