ID:156832
 
Hello, I was wondering how to make a sword get put into a sheath. Thanks for all replies is very appreciated.
first get the icon states sorted of the sword going into the sheath, then when youusea verb orproctomake the sword go int the sheath change the icon state for the obj
In response to Jakb2k7
I see, so just make a proc that is changing the icon states?
In response to Icesword553344
mob/var
swordin=0


obj/sword
icon='blah.dmi'
icon_state="blah"
verb/Putawaysword()
if(usr.swordin==1)
return
else
usr.swordin=1//puts sword away
icon_state="Blah2"//the sword into sheath
verb/Removefromsheath()
if(usr.swordin==0)
return
else
usr.swordin=0//removes sword from sheath
icon_state="Blah"//the sword out of sheath

//Then if you wanna stop attacks while in sheath make a canatack var etc well ipresumeyou know this



also can be done with obj var i suppose but thats just a off top thing
In response to Jakb2k7
Please don't provide help to users at this stage in your programming life. You're still very much a newbie, and your code doesn't even apply boolean logic.