Member
Join Date: Oct 2016
Posts: 39
|
these lines work just fine
perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Medium0] perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Large1] perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Huge2] however perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Small-1] does not work. i'm guessing its because it sees the - as an operator and how would i change the hit points from lets say 35 (any value) to 5 i have tried herofield[tHP].value =5, but that does not seem to work Last edited by Mjolnirh; October 12th, 2018 at 11:30 AM. |
#1 |
Member
Join Date: Oct 2016
Posts: 39
|
ok found it!!
perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Small11] perform hero.findchild[BaseRace].tagreplace[RaceSize.?,RaceSize.Tiny12] still struggling with the Hit point thing though this is for adding druid shapes as activated abilities. I got everything to change except the hp points, so essentially it works |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
herofield[tHP].value -= 5 Code:
herofield[tHP].value = 5 - herofield[tHP].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. |
|
#3 |
Member
Join Date: Oct 2016
Posts: 39
|
hmmm neither of those worked, however
I was inspired I came up with this var minuses as number minuses = herofield[tHP].value - 5 herofield[tHP].value -= minuses applied to final phase and it changed the current hit points to 5, which works for my purposes if your a mastiff you take 5 HP you revert back to your original form w00t |
#4 |
Member
Join Date: Oct 2016
Posts: 39
|
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
They work... but if you are at the wrong timing then your final value gets overridden.
Trying to mess with HP require a very specific timing. 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 |
|
|