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
Top half is working but I get a tag syntax error with the bottom half. Any ideas?
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?