Senior Member
Join Date: Jul 2014
Posts: 412
|
Hi everyone, today I am requesting some information on how to force HP updates to a active summon via a ability that is bootstrapped to the possible summons. This chooser allows the player to pick the CR rating and adds the corresponding values to the summon. This summon comes from an archetype that I made that uses a blood ritual to summon a creature. Now so far I have had issues getting the editor to play nice with me trying to modify HP values from script. Any suggestions?
By the way I have the summon bootstrapped to the archetype so at level 12 it activates the summon on the portfolio but does not add any useful attributes until the ability of the archetype has selected a area for which the summon is called forth from. It starts as a CR 5 creature and need to make the script allow proper addition of HP when higher CRs are selected. I have also tried a few different timings with the fields rHPstart, cHP, cHPBonus, and others related to them. Here is my current script: Post-Attributes 11000 Quote:
Last edited by DeltaMasterMind; July 2nd, 2017 at 06:30 AM. |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
If trying to affect the BaseRace and have those changes apply to the Hero you need to be REALLY early in timing. Like I would start at First/50 and go sooner if the changes didn't work.
Also can't you stream line your code to remove all the elseif logic and just do: Code:
~ Increase CR and Hit Dice focus.field[rCR].value += field[usrIndex].value focus.field[rHitDice].value += field[usrIndex].value Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
There is a herofield for bonus hp (tBonusHP) you could add to at a later timing, if you like.
|
#3 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Quote:
|
|
#4 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Seems the editor may not like the area I am building this chooser. I choose to use the augmentation tab under races. Although I am fairly certain that when using a focus that it shouldn't be an issue. Any links that may shed light on this matter for me?
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
herofield[tBonusHP].value += WHATEVER BONUS HP Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#6 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
|
#7 |
|
|