View Single Post
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old February 21st, 2022, 10:44 AM
Ok, trying to create a thing that replaces an Initiator discipline with another. Got the thing that adds the new discipline but having trouble removing the selected discipline

Code:
var disc as string

disc = hero.child[trBlkThrn].field[fChosen].chosen.tagids[AllowCust.?,"|"]
disc = replace(disc, "AllowCust.", "thingid.x", 0)
disc = disc & "Ft"

field[ftCandExpr].text = "(" & disc & ")"

var repl as string
repl = field[fChosen].chosen.tagids[User.?]
repl = replace(repl, "User", "AllowCust", 0)
perform hero.child[trBlkThrn].field[fChosen].chosen.deletestr[disc]
Top half is working but I get a tag syntax error with the bottom half. Any ideas?

I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff.
Illyahr is offline   #1 Reply With Quote