TCArknight
Well-known member
Howdy!
based on the code behind the #appenddesc macro, I worked this script out for replacing one class name in another within the description of an ability.
In this case, the ability Preferred Target (a version of Favored Enemy) is identical between the Elven Archer class and the Halfling Sling Master class with the exception of the description.
What I'm wondering is if there is a better way to do this?
based on the code behind the #appenddesc macro, I worked this script out for replacing one class name in another within the description of an ability.
In this case, the ability Preferred Target (a version of Favored Enemy) is identical between the Elven Archer class and the Halfling Sling Master class with the exception of the description.
Code:
first/1000
~ change Elven Archer in Preferred Target description to Halfling Sling Master
perform state.thing[cEArPreTar].amendthing[description, replace(state.thing[cEArPreTar].field[descript].text,"elven archer","halfling sling master",0)]
What I'm wondering is if there is a better way to do this?