Lone Wolf Development Forums  

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

Notices

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

Old March 6th, 2020, 04: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, 6 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
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,219

Old March 10th, 2020, 02:46 PM
Anyone?

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
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 318

Old March 10th, 2020, 02:52 PM
Going to be honest...this is way above what most of our scripting does. One of the pros is going to have to take an interest for you to get any answer.

"Ooooooooh, he's tryin'!"
Fenris447 is offline   #3 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,219

Old March 19th, 2020, 09:09 PM
still hoping....

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   #4 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 590

Old March 20th, 2020, 07:26 AM
Have you tried adding debug statements to help evaluate your logic statements?

Create some variables to see what your #attrmod[] is actually returning and push it to your debug window. It might be something like those macros are both returning 0 values in this thing and you will have to figure out how to do it without a macro.

It might also be that the scripts just aren't running at all. Is there another place or file that needs to make sure this thing is loaded correctly? Like people have mentioned, we 5e guys don't have a ton of modification work under our belts - Pathfinder authors probably have the most knowledge. People like ShadowChemosh from the Pathfinder group sometimes bless us with greater wisdom but you have to sacrifice some cookies and milk, like for Santa....
dungeonguru is offline   #5 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,219

Old March 20th, 2020, 08:44 AM
The first script isn't having any issues at all, working fine. The second one, where trying to change the name of the attribute used for the Initiative doesn't work, and I confirmed that it also doesn't work for the standard Initiative (same in Pathfinder system too).

It would be fine if I could get it to appear on the Abilities tab...

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   #6 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,219

Old October 18th, 2020, 10:24 AM
Bump - Could still use help 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   #7 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 318

Old October 20th, 2020, 10:18 AM
Random thought, might be a dumb one, but have you tried changing field[tInitAtNm].value to field[tInitAtNm].text?

"Ooooooooh, he's tryin'!"
Fenris447 is offline   #8 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,219

Old October 30th, 2020, 05:11 PM
Quote:
Originally Posted by Fenris447 View Post
Random thought, might be a dumb one, but have you tried changing field[tInitAtNm].value to field[tInitAtNm].text?
Actually, I did. I got the error about accessing a value-based field as text..

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   #9 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,596

Old November 5th, 2020, 01:26 PM
To be honest I think you're running the script in post attr might be the problem. Switch it to Final and have it do it as late as possible in priority, 99999999

You have it set so early that something is likely overwriting it in Final that you are not catching...

Post Att 1000 is wayyyyyyyyyyyyyyyyy to early for a custom script dude.

RavenX

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #10 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 08:36 AM.


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