Hello all,
I am still working on warhammer quest framework, adding macros as the characters develop. Currently I would like to have some AOE effects in place, that affects all "enemy" tokens adjacent to token initiating the effect. And honestly I am stuck on how to make it work: select all tokens in range (either PC or NPC but not both). And then deal damage. Damage is working but I need to manualy chose tokens and then run damage from tokens that initiate it and sometimeas it takes longer than its worth it.
Damage part:
[h: ignoreArmor = 1]
[h: ignoreT = 1]
[h: ignoreIP = 1]
[h: dmgRoll = 1d6]
<br>
[r, foreach( id, getSelected(), "<br>"), code: {
[h, if( isNumber(dmgRoll)): dmg=dmgRoll; dmg = eval(dmgRoll)]
<b>[r: getName(id)]</b> took [r:dmg] pts of Tomb Rot damage, resulting in <b>[r: damage(id, dmg, ignoreArmor,ignoreT, ignoreIP)] wounds</b>.
}]
Anyone can help with this, please?