Senior Member
|
I have a thing (Fighter class).
When the user selects the fighter class, a few items are bootstrapped, but there's a couple that I don't want on the class until they reach a certain level. Code:
<eval value="1" phase="PreTraits" priority="5000"> <before name="Calc trtFinal"/> <![CDATA[ herofield[acCashNet].value = 24000 herofield[acHPMax].value = 10 #traitprisec[attrStr] = 1 if (hero.child[resLevel].field[resMax].value >= 4) then perform assign[ClassAbil.abComDom] perform forward[ClassAbil.abExtAtt] elseif (hero.child[resLevel].field[resMax].value >= 10) then perform assign[ClassAbil.abExtAtt] perform forward[ClassAbil.abExtAtt] endif ]]> </eval> I also find it strange that I have to assign it, then forward. Truthfully, I have limited understanding of the perform assign/forward commands. Hope this make some sense, it's driving me crazy. BoomerET Castles & Crusades Ruleset for Hero Lab Hero Lab (5E D&D) -> Fantasy Grounds Character Converter |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
d20/pathfinder handles their class abilities by having them always be present, but each one has a tag to record what level it comes active at - each one checks the class it was added to, and if that tag's value is > the class' currently level, the ability disables and hides itself.
Last edited by Mathias; November 25th, 2013 at 02:18 PM. Reason: This way is a better way of accomplishing this than my original post |
#2 |
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. |
|
#3 |
Senior Member
|
Thanks Mathias, it's working beautifully now.
BoomerET Castles & Crusades Ruleset for Hero Lab Hero Lab (5E D&D) -> Fantasy Grounds Character Converter |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
|
#5 |
|
|