Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Mjolnirh
Member
 
Join Date: Oct 2016
Posts: 31

Old October 12th, 2018, 11:28 AM
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.
Mjolnirh is offline   #1 Reply With Quote
Mjolnirh
Member
 
Join Date: Oct 2016
Posts: 31

Old October 12th, 2018, 12:10 PM
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
Mjolnirh is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,444

Old October 12th, 2018, 12:44 PM
Quote:
Originally Posted by Mjolnirh View Post
i have tried herofield[tHP].value =5, but that does not seem to work
Code:
herofield[tHP].value -= 5
or
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.
ShadowChemosh is offline   #3 Reply With Quote
Mjolnirh
Member
 
Join Date: Oct 2016
Posts: 31

Old October 12th, 2018, 01:40 PM
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
Mjolnirh is offline   #4 Reply With Quote
Mjolnirh
Member
 
Join Date: Oct 2016
Posts: 31

Old October 12th, 2018, 01:51 PM


Mjolnirh is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,444

Old October 12th, 2018, 02:18 PM
Quote:
Originally Posted by Mjolnirh View Post
hmmm neither of those worked, however
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.
ShadowChemosh is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:06 PM.


Powered by vBulletin® - Copyright ©2000 - 2018, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.