• 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

Script timing

Mergon

Well-known member
I am currently working on adding the latest version of the Mystic from the Unearthed Arcana.

At 4th level the Mystic gains the Strength of Mind ability. This ability allows you to change your Proficiency with Wisdom saves to proficiency with any other save except Intelligence (you already have it).

The part of the code that grants the new Proficiency save works fine, but the part that removes the existing WIsdom save proficiency doesn't. :(

I am currently using Phase: Pre-levels, Priority 10000. Here is the code:

perform hero.delete[ProfSave.svWIS]

if (field[usrIndex].value = 0) then
perform hero.assign[ProfSave.svSTR]

elseif (field[usrIndex].value = 1) then
perform hero.assign[ProfSave.svDEX]

elseif (field[usrIndex].value = 2) then
perform hero.assign[ProfSave.svCON]

elseif (field[usrIndex].value = 3) then
perform hero.assign[ProfSave.svWIS]

elseif (field[usrIndex].value = 4) then
perform hero.assign[ProfSave.svCHA]

endif

Should I be splitting the scrip in to 2 different ones with different Phases? Should I be using a different Phase then Pre-levels?

On a separate note: Anyone noticed an issue with resistances not showing up under Specials? The Mystic gains Resistance to Psychic damage and though my script puts it on the hero, it doesn't show under Special.
I tried a Tiefling who gains Resistance to Fire and it doesn't show up either. I am wondering whether this is something I've messed up on my end or a bug in Hero Lab 5e.
 
but the part that removes the existing WIsdom save proficiency doesn't. :(
Unless Aaron or Mathias posts with the "exact" timing then its a bit of trial and error. You need to remove the tag "after" it gets applied to the hero but before it actually gets used.

You can also go to "Develop->View Timing Report". That can often point you to a good timing to use. Looks like allot of classes push the Proficiency tags to the hero at Level/6000. I would give Level/10000 a try.
 
Class helpers forward ProfSave tags in Levels, the individual save picks use them at PostLevels 15000, so I think any manipulations you need to make to those should be good at PostLevels 10000
 
PostLevels 10000 worked; I misread Aaron. I'll try it at 15000 just in case though.

Thanks to both of you for the assistance.
 
Back
Top