View Single Post
Dami
Senior Member
 
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,101

Old March 7th, 2023, 09:53 PM
Where are you assigning a value to skRanks? The code above will be subtracting 0 (zero) from Sanity unless something else is giving a value to skRanks.
You need a line something like:
skRanks = #skillranks[skKnoMyth]

or try leaving out the var line entirely, and using:
herofield[tSanity].value -= #skillranks[skKnoMyth]

Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew).
HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP).

DM and player of D&D since 1980.
Dami is offline   #5 Reply With Quote