|
|
Thread Tools | Display Modes |
Senior Member
Join Date: Jul 2010
Posts: 149
|
I have a custom ability for which the user selects a type of natural attack, and which subsequently increases the damage die for any attack of that type that comes from a transmutation spell effect. This is tricky for two reasons:
1) It cares where the attack comes from, which isn't always easy to pinpoint in easily referable ways with Hero Lab. 2) Spell effects in Hero Lab are granted by adjustments, and not from the spells themselves. These adjustments don't know any details about the spell, just its effect. Here's my first attempt:http://forums.wolflair.com/editpost....tpost&p=264010 Code:
var favattack as string var spellid as string favattack = field[usrChosen1].chosen.tagids[IsWeapon.?,"|"] foreach pick in hero from BaseNatWep where "favattack" if (eachpick.root.tagis[Helper.AdjSpell] <> 0) then spellid = eachpick.root.idstring foreach thing from BaseSpell where "spellid" if (eachthing.tagis[sSchool.Transmutat] <> 0) then perform eachpick.assign[Helper.DamageUp] endif nexteach endif nexteach |
#1 |
|
|