View Single Post
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