ID:1907580
 
(See the best response by LordAndrew.)
I was hoping to use a variable that the player has to change what style of item they would receive.

        effect(mob/user)
user.equip(new /item/customsword())
user.cooldown("attack", 10)
user.noise('draw.wav', frequency = rand(0.7, 1.3))


What i'm trying to do is... something like this.

        effect(mob/user)
user.equip(new /item/"[user.swordname]sword"())
user.cooldown("attack", 10)
user.noise('draw.wav', frequency = rand(0.7, 1.3))


Is there a way to state a location using variables or would I need to use a proc to get around this.
Best response
You could try using text2path() (along with ispath() for a bit of safety checking).
In response to LordAndrew
Brilliant! Thanks!