Lone Wolf Development Forums  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old March 6th, 2020, 03:02 PM
Hi all!

I'm playing around with a custom dataset that has a "Mental Initiative" stat.

1) I created this and it appears to be under the Miscellaneous Stats on the Abilities Tab, even though it's not visibe (see Misc Stat.jpg; the gap after Initiative is the MentalInit)
Code:
  <thing
    id="MentalInit"
    name="Mental Initiative"
    compset="Initiative">

    <!-- Automatically add the resource to every actor -->
    <tag group="explicit" tag="11"/>
	
    <!-- Use the starting ability slots as our initial maximum -->
    <eval index="1" phase="PostAttr" priority="1000"><![CDATA[
      if ( #attrmod[aINT] > #attrmod[aCHA] ) then
		field[tInitAttr].value = #attrmod[aINT]
	  else
		field[tInitAttr].value = #attrmod[aCHA]
		endif
      ]]></eval>
	<eval index="2" phase="Render" priority="15000"><![CDATA[
      if ( #attrmod[aINT] > #attrmod[aCHA] ) then
		field[tInitAtNm].value = hero.childfound[aINT].field[name].text
	  else
		field[tInitAtNm].value = hero.childfound[aCHA].field[name].text
		endif
      ]]></eval>
    </thing>
2) it appears that no matter the timing, the second script doesn't change the "Dexterity" which appears in the tInitAtNm field to either other stat Name.

ANy help or suggestions?

Thanks!
TC
Attached Images
File Type: jpg Misc Stat.JPG (22.2 KB, 8 views)

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
 

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 07:34 AM.


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