Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
I've Working on Truenamer from Tome of Magic on and off for the past few months and there is one issue I've been having that I cant get past. Its a small and critical problem with how hero labs handles Primary and Secondary Custom Abilities.
The problem is that the truenamer has three sets of special abilities: Utterances of the Evolving Mind -- User.EvolveMind Utterances of the Perfected Map -- User.PerfMap Utterances of the Crafted Tool -- User.CraftTool These function very simililarly to Invocations, but have a different progression for each and a different maximum number of each per Truenamer level. When I try to restrict the character it causes error the MOMENT the character has selected the proper number. Both graying out the selection and turning everything the player has already chosen RED even if they are at the correct number of each selected. (See image). The way I have been counting each is by using an eval script Post-Levels/100 to: perform forward[User.CraftTool] And then a eval rule: ~Check truenamer level var maxUtter as number var bonUtter as number var curUtter as number ~ Get number of Utterances on hero curUtter = tagcount[User.CraftTool] ~ Add script to count the number of bonus utterance feats. bonUtter = 0 if (#levelcount[Truenamer] >= 19) then maxUtter = 5 + bonUtter validif (curUtter <= maxUtter) elseif (#levelcount[Truenamer] >= 15) then maxUtter = 4 + bonUtter validif (curUtter <= maxUtter) elseif (#levelcount[Truenamer] >= 11) then maxUtter = 3 + bonUtter validif (curUtter <= maxUtter) elseif (#levelcount[Truenamer] >= 7) then maxUtter = 2 + bonUtter validif (curUtter <= maxUtter) elseif (#levelcount[Truenamer] >= 4) then maxUtter = 1 + bonUtter validif (curUtter <= maxUtter) else maxUtter = 0 endif I'll eventually need to change some the #levelcount[Truenamer] to something else to allow for prestige classes and adjustment scripts that alter the effective level of the true-naming ability, but I can get that to work after I fix this annoying problem. |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Where is this eval script?
I'm wondering if you don't need to change 'curUtter = tagcount[User.CraftTool]' to 'curUtter = hero.tagcount[User.CraftTool]'. |
#2 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
The Eval script is on the Custom Ability itself.
hero.tagcount or just tagcount doesnt matter. The problem is I need a way to tell the code. You have this many of xx type of utterances you can pick once you hit that number print a red message in the selection area but DO NOT mark the ones you have as red. The problem that I am running into is just that. No matter what I do it gives that problem. And if I change the values to say, allow for say, max + 1 to get rid of the red in the display, it then says you can take +1 more than you are allowed to take. If that makes any sense. |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Yea, but unfortunately I'll probably need to see it in action to fully wrap my head around it.
|
#4 |
|
|