Use_an_item(var/i in usr.Items)
set category="Player Verbs"
usr.Items-=i
var/num=text2num(i)
var/found=findtext(i, " ")
var/restofit=copytext(i, found)
num--
var/newi="[num][restofit]"
usr.Items+=newi
Mod note: Please place code between the <dm> tags so that it properly renders, thanks.
You still haven't explained why you can't just store
and then, when a player has an item, do
- the name can be whatever you like. Heck, if you wanted you could give the player a generic "obj/item/thing" and then set the name using Input()to "Potions of Pit-Leaping" or something, since you said you plan to have so many items you think coding them all in individually is a waste of your time.
EDIT:
I see you specifically want an environment to work with a DnD-style game? Are you aware of BYOND's existing Tabletop Gaming suite? Or a newer but less general-purpose suite?