willuwontu
Well-known member
One of my classes has an ability that grants blindsight equal to the hero's threatened area when they are in a defensive stance.
The problem I have no idea how to reference the reach of different size characters. I could recreate the system in the eval script but I'd rather just be able to reference the already shown reach range on the hero basics tab in HL. Right now I have it as an activated ability with an incrementer to set the basic threatened area. Any idea how to reference a hero's reach area in HL?
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
if (hero.tagis[Hero.Defending] <> 0) then
field[abValue].value = field[actUser].value
if (#hasfeat[fComPatrol] = 1) then
field[abValue].value += hero.child[fComPatrol].field[abValue].value
endif
hero.child[rBlindSi].field[abRange].value += field[abValue].value
field[abText].text = "Blindsight " & field[abValue].value & "ft."
endif
The problem I have no idea how to reference the reach of different size characters. I could recreate the system in the eval script but I'd rather just be able to reference the already shown reach range on the hero basics tab in HL. Right now I have it as an activated ability with an incrementer to set the basic threatened area. Any idea how to reference a hero's reach area in HL?