• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Tome of Magic - Max Utterances Issue

TobyFox2002

Well-known member
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.
 

Attachments

  • truenamer utterances-max known trouble.gif
    truenamer utterances-max known trouble.gif
    300.1 KB · Views: 3
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]'.
 
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.
 
Back
Top