Senior Member
Join Date: Jul 2006
Posts: 380
|
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 |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
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. |
#2 |
Senior Member
Join Date: Jul 2006
Posts: 380
|
Quote:
|
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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:
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) 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:
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) 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:
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 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 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. |
|||
#4 |
Senior Member
Join Date: Jul 2006
Posts: 380
|
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
|
#5 |
Senior Member
Join Date: Jul 2006
Posts: 380
|
I think i got it thanks this should make things easier
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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) Code:
#applybonus[tACArmor,hero.child[ArmorClass],field[pAdjust].value] |
#7 |
|
|