ID:176974
 
How do you make it so you can equip items in your inventory? And how do you make it so the item shows up when equip in a verb thing (like when you equip things in Eternal World)
obj/verb/Equip()
src.suffix = "equipped"

And that is how you equip things. If this isn't want you want, then too bad, because you didn't provice enough information.
In response to Garthor
doesnt work... if i had something like this to add the item to inventory how would i equip:
verb
Pickup()
set src in oview(1)
usr<<"You pick up a left-table!"
src.loc = usr
In response to Koolguy900095
mob/var{sword="Nothing"}
mob/items/left_table
icon = 'table.dmi'
icon_state = "left"
density = 1
verb
Pickup()
set src in oview(1)
usr<<"You pick up a [src]!"
Move(usr)
Drop()
Move(usr.loc)
usr<<"You drop [src]."
Equip()
if(usr.sword=="Nothing")
usr.sword=src
usr<<"You equiped your [src]"
else{usr<<"You already have something equiped."}
UnEquip()
if(usr.sword=="Nothing"){usr<<"You don't have a [src] equiped.";return}
if(usr.sword==src)
usr.sword="Nothing"
usr<<"You unequip your [src]."
else{usr<<"That item is not equiped."}
mob
Stat()
statpanel("Test")
stat("Sword",sword)


RaeKwon
In response to Garthor
Garthor wrote:
If this isn't want you want, then too bad...

You know, this kind of response is what we do not need in the BYOND community. Garthor, if you can't provide constructive help in the forums then you would be more helpful if you did not respond, and let others provide assistance.

Many times I have seen your posts containing either too little help (as in this case), the wrong help, or no useful help at all, and always with a belligerent attitude.

The new programmers who come to BYOND do not need this attitude - it only serves to frustrate and anger people. Several people have paged and emailed me 'why is Garthor acting like such an ass sometimes?'. And now I pose the question directly to you...