Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Logoman
Junior Member
 
Join Date: Jan 2017
Posts: 13

Old April 16th, 2017, 11:48 AM
I am needing some help with some scripting. I have a class that I have created for 5e and I have created a feature that the player can choose that allows the hit dice to increase from d6 to d8.

They can pick this path at level 1, so it would have to change the base hit dice as well and add 2 to the score.

I am somewhat familiar with basic scripting to change attributes and such, but this one has me stumped.

Thanks in advance.

Last edited by Logoman; April 16th, 2017 at 04:36 PM. Reason: More information needed to be added (clarification)
Logoman is offline   #1 Reply With Quote
Logoman
Junior Member
 
Join Date: Jan 2017
Posts: 13

Old April 17th, 2017, 08:01 PM
And so found what I needed and here it is

hero.child[cHelpXXX].field[cHDSides].value += 2

Added this to the eval script in the feature and it worked perfectly.
Logoman is offline   #2 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old April 17th, 2017, 08:04 PM
Have added this to the community wiki. Thanks.

https://github.com/Sklore/HL_DD_5e_Colab/wiki

Realm Works - Community Links
Realm Work and Hero Lab Videos
Ream Works Facebook User Group
CC3+ Facebook User Group

D&D 5e Community Pack - Contributor
General Hero Lab Support & Community Resources
D&D 5e Community Pack - Install Instructions / D&D 5e Community Pack - Log Fault / D&D 5e Community Pack - Editor Knowledge Base

Obsidian
Obsidian TTRPG Tutorials
daplunk is offline   #3 Reply With Quote
Reply


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 09:02 AM.


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