ID:267430
 
Hi I started working on my Weapons equip objects today and wow am I haveing trouble. Ok this is what I got so far.
obj/Weapon icon='Weapons.dmi' var/str=0 Wooden_Staff icon_state="19" str=2
As you noticed no verb/equip(). Well the reason for that is I dont know how to put it together. Ok what I was planning on doing is making obj/staff/overlay objects and then letting them = var/Staff and then just change the icon='' to the dmi of the Race I am.

This seems sloppy to do how ever and I am pretty sure their is an easier way. So could any of you byonders please tell me an easier way or make it well less sloppy.
Green Lime wrote:
Hi I started working on my Weapons equip objects today and wow am I haveing trouble. Ok this is what I got so far.
<code>obj/Weapon > icon='Weapons.dmi' > var/str=0 > Wooden_Staff > icon_state="19" > str=2</code>
As you noticed no verb/equip(). Well the reason for that is I dont know how to put it together. Ok what I was planning on doing is making obj/staff/overlay objects and then letting them = var/Staff and then just change the icon='' to the dmi of the Race I am.

This seems sloppy to do how ever and I am pretty sure their is an easier way. So could any of you byonders please tell me an easier way or make it well less sloppy.

If all your wanting is an Equip() verb then you do this
obj/Weapon
> icon='Weapons.dmi'
> var/str=0
> verb/Equip()
set src in usr
usr.str += src.str
usr.overlays += new(src)
> Wooden_Staff
> icon_state="19"
> str=2

Resonating Light