Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,337
|
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> ANy help or suggestions? Thanks! TC Working on - |
#1 |
Thread Tools | |
Display Modes | |
|
|