View Single Post
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old August 3rd, 2022, 08:08 PM
It looks like the level and amount of starting gold are being calculated based on the number of Classes.? tags present at Pre-levels:5000, in a script on the Totals component called "Component Totals: Eval Script #40".

They are stored in herofield[tEqvGrLev].value and herofield[tSCROver].value, if you want to calculate them yourself and set them at Pre-levels:5001.

Or you can bootstrap another helper to the Gestalt cHelp thing, with an eval script at Pre-levels:4999 to pull all the Classes.? tags and then delete them from the hero and replace them with the correct number of Classes.? tags, and then a second script at Pre-levels:5001 to delete the temporary Classes.? tags and push the previous tags back to the hero.


The mouseinfo for the total gear value also uses the count of the Classes.? tags to determine the character level and wealth, but unfortunately it does it outside of the normal evaluation loop and doesn't have a stored value anywhere to change.

Technically, you could fix that by deleting all the Classes.? tags and replacing them with the correct number of tags again at Render:9999999... But theoretically it would also break any code that counts class tags to evaluate pre-reqs when a user is adding new feats/etc, since that happens outside the normal evaluation loop too.

Last edited by ploturo; August 3rd, 2022 at 08:10 PM.
ploturo is offline   #8 Reply With Quote