xWhiteGodx
Member
Hello all,
I'm trying to set up some chain-type things within HeroLab for a custom class. I'll keep it as to the point as possible:
Custom Ability is Telekinetic Blast [cTelekinWildTal]
Requirement for Custom Ability is the Custom Ability "Aether" [cTelekinet]
Next step progression is the Custom Ability "Aether" (It's the 2nd tier) [cEE1AetherKinet]
Final step progression is the Custom Ability "Aether" (It's the final tier) [cEE2AetherKinet]
I need[cTelekinWildTal] to be selectable within a Configure tab if either [cTelekinet] and [cEE1AetherKinet] are on the hero, or just [cTelekinet] or just [cEE1AetherKinet], or just [cEE2AetherKinet]
I suck at understanding and working the code system, and thus resort to finding alike things that I'm going for and copy/pasting until everything works as intended. This is what I have, and I don't think it's entirely right:
EDIT: Also, is there a way to make an eval script give an error in a panel if a per-requisite wasn't met?
EDIT2: How to set level requirements with an Eval Script?
I appreciate any and all help, thanks!
I'm trying to set up some chain-type things within HeroLab for a custom class. I'll keep it as to the point as possible:
Custom Ability is Telekinetic Blast [cTelekinWildTal]
Requirement for Custom Ability is the Custom Ability "Aether" [cTelekinet]
Next step progression is the Custom Ability "Aether" (It's the 2nd tier) [cEE1AetherKinet]
Final step progression is the Custom Ability "Aether" (It's the final tier) [cEE2AetherKinet]
I need[cTelekinWildTal] to be selectable within a Configure tab if either [cTelekinet] and [cEE1AetherKinet] are on the hero, or just [cTelekinet] or just [cEE1AetherKinet], or just [cEE2AetherKinet]
I suck at understanding and working the code system, and thus resort to finding alike things that I'm going for and copy/pasting until everything works as intended. This is what I have, and I don't think it's entirely right:
Code:
~ define a work variable of Valid Count
var ValidCnt as number
~ Set to initially a value of zero
ValidCnt = 0
~ If level 7+ and Expanded Element then we are valid
If (herofield[xTotalLev].value >= 7) Then
~ we also need Expanded Element to be valid
If (#hasability[cEE1AetherKinet] <> 0) Then
ValidCnt += 1
Endif
Endif
~ If Elemental Focus and Expanded Element then we are also valid
If (#hasability[cTelekinet] + #hasability[cEE1AetherKinet] <> 0) Then
ValidCnt += 1
Endif
~ If either test conditions above are VALID then we are valid
validif (ValidCnt > 0)
EDIT: Also, is there a way to make an eval script give an error in a panel if a per-requisite wasn't met?
EDIT2: How to set level requirements with an Eval Script?
I appreciate any and all help, thanks!
Last edited: