ID:268586
 
Anyway to do that? In-Game I get an error for doing that... =/
Thanks if you help.
You can't add or subtract something from a TEXT var.
Couldn't you just do

suffix = ""

?
In response to DeathAwaitsU
_> I'll just change the weapons name. I was using it for Gemming, like...
suffix += "Equiped"
suffix += "+1"
suffix -= "Equiped"
But, thanks anyways.
In response to Hell Ramen
Surely you can do:

suffix = "Equiped"
suffix = "Equipped +1"
suffix = "+1"

?
In response to DeathAwaitsU
What about when it's unequiped? :P
In response to Hell Ramen
Show me where suffix is being used
In response to DeathAwaitsU
From the sounds of it, no he cannot. It sounds like he is wanting to add/remove to/from the suffix while leaving everything else in it intact while not knowing what else may or may not be in the suffix.
In response to Hell Ramen
Just make your own small function to generate a suffix for you.
obj/weapon
var/list/suffixes=list("weapon")
proc/suffix_update()
var/T=""
for(var/S in suffixes)
T+="[S]"
suffix=T
mob
var/obj/weapon/weapon
verb
equip()
weapon=locate()in contents
if(weapon)
weapon.suffixes+="Equipped"
weapon.suffix_update()
unequip()
if(weapon)
weapon.suffixes-="Equipped"
weapon.suffixes_update()
weapon=null
enchant()
if(weapon)
weapon.suffixes+="+1"
weapon.suffix_update()
In response to Siientx
Siientx wrote:
You can't add or subtract something from a TEXT var.

You can add to them, just not subtract.