Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Vallaki
Junior Member
 
Join Date: Sep 2014
Location: Chicago, IL
Posts: 14

Old September 15th, 2014, 08:47 AM
All,

I'm relatively new to HeroLab Scripting, but have a lot of experience with computer scripting in general.

I'm trying to implement a prestige class feature that:

"adds their Wisdom modifier, if positive, to their attack and damage rolls."

I've been looking though the explorer and everything I have found swaps the normal attack stat (STR or DEX) for WIS, but nothing that adds it as an untyped bonus.

Any direction/assistance is greatly appreciated! Thanks in advance.
Vallaki 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 September 15th, 2014, 10:22 AM
Quote:
Originally Posted by Vallaki View Post
I've been looking though the explorer and everything I have found swaps the normal attack stat (STR or DEX) for WIS, but nothing that adds it as an untyped bonus.
What do you mean untyped? All ability score bonuses are untyped. So if you found the tags to change to WIS then your good to go. That or I am totally confused by what you are asking.

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
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old September 15th, 2014, 10:40 AM
I think he is asking about adding the wisdom modifier as an untyped bonus to attack and damage in addition to normal attribute modifiers.

Post-Attr 10000
Code:
hero.childfound[Attack].field[Bonus].value += #attrmod[aWIS]
hero.childfound[Damage].field[Bonus].value += #attrmod[aWIS]

Last edited by Aaron; September 15th, 2014 at 12:10 PM.
Aaron is offline   #3 Reply With Quote
Vallaki
Junior Member
 
Join Date: Sep 2014
Location: Chicago, IL
Posts: 14

Old September 15th, 2014, 12:14 PM
Thank you Aaron!

Thats exactly what I needed. I wasn't sure if I need to loop through each weapon/attack and add the bonus or if there was a global field that was used in their calculations.

Seems to be working perfectly.
Vallaki is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 15th, 2014, 03:41 PM
Quote:
Originally Posted by Aaron View Post
I think he is asking about adding the wisdom modifier as an untyped bonus to attack and damage in addition to normal attribute modifiers.
Duh! Yea I read too fast sometimes....

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   #5 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 03:23 AM.


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