im not sure where my problem is but it wont place the overlay icon over the mob. i maybe just forgeting something.
//equip items(armor,weapons)
mob
var
equip_weapon=0
equip_armor=0
//overlays
//var
// const
// ARMOR_LAYER=MOB_LAYER+1
// WEAPON_LAYER=MOB_LAYER+1
//when we add overlays make icon_state=player icon state
obj
verb //every obj gets the verbs
get()
set src in usr.loc
loc=usr
drop()
set src in usr
loc=usr.loc
equip()//make it equip work as equip&unequp
if(usr.equip_armor==0)
//add overlays
overlay+=/obj/overlay/armors//
//add stats
//equip_weapon=+1
// usr << "equiped the item"
// if(usr.equip_weapon==1)
// usr<<"somethings already equiped there"
any help on this is welcome. if there is a tutorial on overlays just link me to it and ill repost if i get it or not
Im going to help you out and attempt to provide as much information as possible. I don't mean this to sound rude, but you really should check out the tutorials on BYOND. Overlays are very basic, and therefore I feel you are not currently ready to start making games just yet.
Link to some excellent tutorials: http://www.byond.com/forum/?post=326846
Now onto a method to making an equipment system.
First off, you want to define a base path for your mobs that is unique, this way any variable that players (and only players) will use won't be applied to all mobs. When you assign a variable to a base path, you use up a lot of RAM, which can cause constant server lag.
Secondly, I've heard binary switches are the way to go. Me personally, I have never used them, but I have also not made a game in some time.