Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 16th, 2020, 08:33 PM
Phase Pre-attributes, priority 10000
Code:
field[abValue].value += maximum(hero.childfound[aINT].field[aBonus].value,2)

field[abSumm].text = field[abValue].value
Entered value of 16 for hero's Intelligence, but abValue still reporting value of 2. Don't know why. Please tell me why.

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 16th, 2020, 09:30 PM
Quote:
Originally Posted by Bob G View Post
Phase Pre-attributes, priority 10000
Code:
field[abValue].value += maximum(hero.childfound[aINT].field[aBonus].value,2)

field[abSumm].text = field[abValue].value
Entered value of 16 for hero's Intelligence, but abValue still reporting value of 2. Don't know why. Please tell me why.
You are running the script before attributes have been calculated so hero.childfound[aINT].field[aBonus].value is 0 and 2 is greater than 0.

For stuff like this add debug statements:
Code:
field[abValue].value += maximum(hero.childfound[aINT].field[aBonus].value,2)
debug hero.childfound[aINT].field[aBonus].value
field[abSumm].text = field[abValue].value

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 17th, 2020, 01:32 PM
Sure enough, that was the issue. It's strange because originally I had the timing at Post Attributes 10000, but it wasn't working, which is why I changed it. But it works now, so all good. Thanks SC!

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 01:30 PM.


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