Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old January 9th, 2015, 01:09 PM
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.
Attached Images
File Type: gif truenamer utterances-max known trouble.gif (300.1 KB, 3 views)
TobyFox2002 is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old January 9th, 2015, 03:06 PM
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]'.
Sendric is online now   #2 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old January 9th, 2015, 03:31 PM
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.
TobyFox2002 is offline   #3 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old January 9th, 2015, 04:32 PM
Yea, but unfortunately I'll probably need to see it in action to fully wrap my head around it.
Sendric is online now   #4 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:33 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.