• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Replacing text in description?

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.
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?
 
Back
Top