Senior Member
Join Date: Aug 2011
Posts: 363
|
so i am trying to make an activated ability max count to equal the character level times Con mod. if i run the script late enough to get the Con mod value, it will populate the actUserMax with the value i'm going for but the actUser value still keeps using the default +9 value.
looking at the tasks it seems that the Con mod value isn't getting set until Attributes 100001 and the user activation value (actUser) is set at Post-levels 900 (which is the phase before Atrributes). (if i'm reading the tasks right!) is there a way i can get the actUserMax set (using the con mod value in my equation) before the actUser value is set? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Quote:
RavenX Pronouns: She/Her 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. |
|
#2 |
Senior Member
Join Date: Aug 2011
Posts: 363
|
so is there anyway to overwrite the derived value of actUser then? it won't let me set a value because it is a derived value (being derived at post-levels 900).
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
From the first sentence "activated ability max count to equal the character level times Con mod." So you need to have a wide range of values. The "actUser" fields can ONLY hold a value from 0 to 9. That is it. So if this is character level times Con Mod you are going to get some high values quick. Meaning this value won't work. You are pretty much left with a tracker value then as it can go to like 99,999. Plus you can easily work at Post-Attributes to set the value correctly. So tell the ability to "Show in tracked resources list?" and then find a appropriate Usage Period tag to use or make a new one. Then use this script at Post-Attributes/1000: Code:
field[trkMax].value += #totallevelcount[] * #attrmod[aCON] Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
Senior Member
Join Date: Aug 2011
Posts: 363
|
oh i didn't realize the max was 9, i thought 9 was just the default max. that definitely wouldn't work with this Trait then (as you have already said).
the trait's ability is useable once a week, so i had the 1 time a week in the 'Show in tracked resources list?'. didn't see a way to have a second tracked list so was trying to use the activated ability for keeping track of the amount of converted hp (see below). the trait basically lets you once a week convert lethal damage to nonlethal damage (the amount of your char level * con mod). but you don't have to use all the available amount at one time. when you first use the ability, you have the whole week to use the full amount. so i have the tracker showing once per week. and since you don't have to use it all in one go was trying to get another tracker with the value amount that they could slowly 'convert' without having to remember how much they had done already (cuz the tracker was keeping track). guess i could use the tracker just for the hp amount and let the player remember when the 'week' started. or use the activated ability with just a max of 1 (for one week) instead.... if used the activated ability as the once a week, can i get the tracked resource to be greyed out (unusable) or hidden until the activated ability was actually activated? |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
For this one you should be able to use the "abilActive" field to do the bootstrap condition: Code:
fieldval:abilActive <> 0 Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
ShadowChemosh - the default values for minimum and maximum on actUser are -9 and +9, but there's no restriction on what values can be set for those fields.
|
#7 |
Senior Member
Join Date: Aug 2011
Posts: 363
|
that worked thanks!
first time i've bootstrapped too...haha |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Well I tried before to change them without any luck. Granted I have not tried in a long time but that is why I "assumed" they where hard-coded to only +-9 as I figured it could only hold a single digit.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
The "Bound actUser" script is at post-levels/900, so there's only a narrow window to change them based on class level, so they're usually only useful for fixed limits.
|
#10 |
|
|