![]() |
|
Senior Member
Join Date: Jul 2014
Posts: 412
|
I seem to be having trouble calling from this field (basically I can't find the proer reference info). Anyone know what I need to use to pull this value into a script?
|
![]() |
![]() |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Can someone explain the best way to acquire the Arcane Spell Failure total?
I am currently doing attempting it within a class special via script and I am lost. I am using this: Quote:
Last edited by DeltaMasterMind; December 13th, 2016 at 02:28 PM. |
|
![]() |
![]() |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,730
|
Quote:
I think the value by the way is stored as a field on armor. But to use the tag: Code:
var arc as number foreach pick in hero from BaseArmor where "Hero.EqpArmor" arc = eachpick.tagvalue[ArmorArcFl.?] nexteach If too early the Hero.EqpArmor tag will not be present on the armor. Code:
~ If we are not wearing anymore get out now! doneif (hero.tagis[Hero.EqpArmor] = 0) ~ Set our focus pointer to the currently equipped armor perform hero.findchild[BaseArmor,"Hero.EqpArmor"].setfocus ~ if we don't have an equipped armor, there's nothing we can do doneif (state.isfocus = 0) ~ Get the tag value field[abValue].value += focus.tagvalue[ArmorArcFl.?] 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. |
|
![]() |
![]() |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Perfect! That did it and I decided to follow your latter example.
|
![]() |
![]() |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,170
|
Take another look at the fields on armor - that tag only stores the original arcane failure chance, not the current value. For example, test your script with the Arcane Armor Training feat present and turned on - the tag doesn't change, because that only stores the base value for that type of armor, but there's a failure chance field that does change when that feat is turned on.
|
![]() |
![]() |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Thanks for the advice on this problem Mathias! You definitely nailed that on the head and glad you did otherwise that would be trouble later on. The script I am running creates a percentage of failure rate based on all arcane spell failure percents and reductions from certain skills and now that you brought that up those feats will help out in this endeavor. It is needed to because it isn't easy to get the numbers low enough that the players can feel at ease.
|
![]() |
![]() |
Senior Member
Join Date: Jul 2014
Posts: 412
|
This post is for anyone else who comes later to review this thread:
Quote:
Last edited by DeltaMasterMind; December 13th, 2016 at 04:39 PM. |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|