Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,212

Old August 20th, 2018, 12:02 PM
Is there a way to have a trigger action force a script to be run or a calculate/finalize script on a field to process?

I have a Levelhelper component with levHP, levBaseHP and levBonusHP fields. Each level advanced for the hero adds a Levelhelper pick. On the Levelhelper component, I have a script running at Traits/3500 to do a
Code:
field[levHP].value = field[levBaseHP].value + field[levBonusHP].value
On the Dynamic table displaying the component, I have a action button where it sets
Code:
field[levBaseHP].value = 1 + random(6)
However, after the random number is generated, the script to calculate the field[levHP].value doesn’t run to update the overall HP gained for that level.

Is there anything I can do to force recalculation of the Field after the BaseHP value is determined?

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,212

Old August 29th, 2018, 07:20 AM
Anyone have any thoughts on this?

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #2 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 616

Old September 5th, 2018, 07:43 AM
I don't know of a way to force recalculation.
There is a table flag:
alwaysupdate="yes"
Which requires things to be retested when things change? Have you tried it?
risner is offline   #3 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 04:09 AM.


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