Use_an_item(var/i in usr.Items)
set category="Player Verbs"
var/num=text2num(i)
i-="[num]"
i="[--num] [i]"
Problem description:
Hello! I am currently working on a verb that decrements the number of an item in your inventory using a string file, currently what I am doing is using, text2num(thevar) to separate the number, but then I am unsure how to remove the previous number so that I can work with the text file without it. After it would simply be decrement the number and add it to the beginning of the string that was then shortened. Are there any operators I can use on the string or something like that?
Shouldn't be possible. Since you can't subtract text from a number (Vice-versa).
I don't really get what it is you want to do, but. . . I hope that I helped you a bit though.
#Edit: Why did you convert "i" from text into numbers if you use it as an text?