Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Virtue
Senior Member
 
Join Date: Jul 2006
Posts: 380

Old June 19th, 2010, 01:39 PM
I posted this a long time ago and I lost the post but what I could really use is

In the section where you add things to the character from spells cast. I would like for it to be able to have a shield bonus an armor bonus and dodge bonus a natural bonus and any other types of AC bonus spells give you

Im not that great with the editor besided in making monsters

Thanks in advance
Virtue is offline   #1 Reply With Quote
blzbob
Senior Member
Volunteer Data File Contributor
 
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407

Old June 19th, 2010, 03:09 PM
Can't you just use temporary adjustments? You can have one for each. For example, if you cast Mage Armor, Shield, and drink a potion of barkskin, you would use three different temporary AC adjustments. You would just have to enter the source yourself.

So you would have:
Armor Class +4, Mage Armor (armor)
Armor Class +4, Shield (shield)
Armor Class +2, Barkskin (natural)

You would have to make sure the stacking rules apply but by writing the type of bonus in the source field, that would be very simple.
blzbob is offline   #2 Reply With Quote
Virtue
Senior Member
 
Join Date: Jul 2006
Posts: 380

Old June 19th, 2010, 04:11 PM
Quote:
Originally Posted by blzbob View Post
Can't you just use temporary adjustments? You can have one for each. For example, if you cast Mage Armor, Shield, and drink a potion of barkskin, you would use three different temporary AC adjustments. You would just have to enter the source yourself.

So you would have:
Armor Class +4, Mage Armor (armor)
Armor Class +4, Shield (shield)
Armor Class +2, Barkskin (natural)

You would have to make sure the stacking rules apply but by writing the type of bonus in the source field, that would be very simple.
Yeas thats what I want I dnt know how to make them all the differnt types of bonus right now i just add misc to ac
Virtue is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 20th, 2010, 09:21 AM
Below is the scripts for three different Adjustments(and conditions) that will apply a specific type of bonus to your AC. In HL the difference between a Condition or Adjustment is changed by placing a check mark next to "Is Condition?" in the editor. If it is a Condition you will need to reload the data set before you will see it. Either using Ctrl-R or exiting and starting HL again.

Quote:
Originally Posted by Virtue
Armor Class +4, Mage Armor (armor)
This script will only apply the highest Armor bonus to AC. So if wearing armor of +4 and applying a +4 Armor adjustment the final bonus will be +4.

as an Adjustment
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add to our armor class
      hero.child[ArmorClass].field[tACArmor].value = maximum(field[pAdjust].value,hero.child[ArmorClass].field[tACArmor].value)
as a Condition +4
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add +4 to our armor class
      hero.child[ArmorClass].field[tACArmor].value = maximum(4,hero.child[ArmorClass].field[tACArmor].value)
Quote:
Originally Posted by Virtue
Armor Class +4, Shield (shield)
This works the same as the armor script, but applies the highest Shield bonus to AC.
as an Adjustment
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add to our armor class
      hero.child[ArmorClass].field[tACShield].value = maximum(field[pAdjust].value,hero.child[ArmorClass].field[tACShield].value)
as a Condition +4
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add +4 to our armor class
      hero.child[ArmorClass].field[tACShield].value = maximum(4,hero.child[ArmorClass].field[tACShield].value)

Quote:
Originally Posted by Virtue
Armor Class +2, Barkskin (natural)
Natural is a little weird is most of the time it will stack. So this scripts will stack with other applied natural AC bonuses.

as an Adjustment
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add to our armor class
      hero.child[ArmorClass].field[tACNatural].value += field[pAdjust].value
as a Condition +2
Code:
~Pre-Levels 10,000
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add +2 to our armor class
      hero.child[ArmorClass].field[tACNatural].value += 2
Hope that helps.

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   #4 Reply With Quote
Virtue
Senior Member
 
Join Date: Jul 2006
Posts: 380

Old June 20th, 2010, 10:59 AM
Shadow I kinda understand I need to know where to open them up and dont want them a set plus four i want to be able to adjust them for like barkskin shield of faith and so forth
Virtue is offline   #5 Reply With Quote
Virtue
Senior Member
 
Join Date: Jul 2006
Posts: 380

Old June 20th, 2010, 11:53 AM
I think i got it thanks this should make things easier
Virtue is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 21st, 2010, 08:31 AM
Just as a note, the #applybonus[] macro works anytime you want to apply a non-stacking field, not just on the Modifiers:

Code:
 
hero.child[ArmorClass].field[tACArmor].value = maximum(field[pAdjust].value,hero.child[ArmorClass].field[tACArmor].value)
can be written as:

Code:
 
#applybonus[tACArmor,hero.child[ArmorClass],field[pAdjust].value]
Mathias is online now   #7 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 12:46 PM.


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