Hi,
I'm trying to find a way to remove a specific variable in a string that has a space in it. The variable doesn't always exist.
Working with msdp, in the affects string I have a variable that sometimes shows up as...
Right after the weapon part there is this tiny upside-down L that I can't seem to copy and paste.
The string is made like this.
I'm trying to figure out a way to delete that "enchant weapon" variable out of the string if it shows up.
The part that confuses me is the space in it... and since it's not a table the -1 part.
EDIT: Apparently when I tried pasting in that tiny upside-down L, it showed up as a beginning bracket after posting. When writing the post though it showed nothing (not even a space), and same when editing. So just imagine that bracket as a tiny upside-down L.
EDIT: It also shows up twice. So both need to be removed. Here's what it looks like when I have a couple other spells up.
EDIT: Ok.. I can't seem to paste the weird code right, cause now it's showing backslashes and when posting it doesn't show those, they are supposed to be spaces. Maybe just msdp is weird.
Anyways, here's a screenshot.
http://prntscr.com/a5j9a9
I'm trying to find a way to remove a specific variable in a string that has a space in it. The variable doesn't always exist.
Working with msdp, in the affects string I have a variable that sometimes shows up as...
enchant weapon[-1
Right after the weapon part there is this tiny upside-down L that I can't seem to copy and paste.
The string is made like this.
affects = msdp["AFFECTS"]
I'm trying to figure out a way to delete that "enchant weapon" variable out of the string if it shows up.
The part that confuses me is the space in it... and since it's not a table the -1 part.
EDIT: Apparently when I tried pasting in that tiny upside-down L, it showed up as a beginning bracket after posting. When writing the post though it showed nothing (not even a space), and same when editing. So just imagine that bracket as a tiny upside-down L.
EDIT: It also shows up twice. So both need to be removed. Here's what it looks like when I have a couple other spells up.
enchant weapon[-1\enchant weapon[-1\improved invis[16\shield[33
EDIT: Ok.. I can't seem to paste the weird code right, cause now it's showing backslashes and when posting it doesn't show those, they are supposed to be spaces. Maybe just msdp is weird.
Anyways, here's a screenshot.
http://prntscr.com/a5j9a9