DeltaMasterMind
Well-known member
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?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var arc as number
foreach pick in hero from BaseArmor where "Hero.EqpArmor"
arc = eachpick.parent.tagvalue[ArmorArcFl.?]
nexteach
I am not near HL but the "parent" looks wrong because only a Gizmo has a parent to work from.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:
var arc as number
foreach pick in hero from BaseArmor where "Hero.EqpArmor"
arc = eachpick.tagvalue[ArmorArcFl.?]
nexteach
~ 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.?]
This way even if the player sets up a feat to drop the Arcane spell failure below the Armor Spell Failure chance they won't get an additional bonus.Post-Levels / timing: 10000
foreach pick in hero where "EquipType.Armor"
if (eachpick.field[gIsEquip].value <> 0) then
field[abValue2].value = maximum(eachpick.field[arArcFail].value,0)
endif
nexteach
field[abValue2].value += 75