Increasing Reach
Anyone know of a way to create a custom ability that increases reach by 5 feet? So when the class ability is active, the character reach increases by 5.
WHat i currently have, in class special: foreach pick in hero from BaseWep where "wCategory.Melee" eachpick.field[wReach].value = maximum(eachpick.field[wReach].value,5) nexteach |
Anyone have thoughts on this?
|
Quote:
Code:
foreach pick in hero from BaseWep where "wCategory.Melee" |
I created this, using pre-levels 10000
if (field[abilActive].value <> 0) then foreach pick in hero from BaseWep where "wCategory.Melee" eachpick.field[wReach].value += 5 nexteach endif Not working. 5e fyi. It's a class special (GIant Growth). |
TLDR:
Probably need to sacrifice something to a script god like ShadowChemosh to get the correct answer, I understand scripting but not enough for this one. My Experience Long Read Version: It works for me in 5e. I created a test class and gave it the custom ability as you have it coded at level 1. When I activate the ability on the In-Play tab, the weapons all gain 5 feet reach when I look at the statblock. What doesn't update is the reach in the basics pane - but then again you're not changing the reach of the base race or any of the basic stats - you're changing the reach of each weapon with the script you're using and the only way to see weapon reach stats reliably is in the File -> Output statblock or the debug fields on the weapon, it doesn't show the reach stat anywhere else that I can tell, not even the tactical console. Only other way to change the size/reach would be to manipulate the base race statistics somehow. The debug info on the size/reach on the Abilities tab doesn't even show a global reach field or tag - it must be baked in the basic info somewhere and I'm not sure how to grab that information. |
I assume you are trying to modify the value you see in the Summary tab "Basic" correct? These type of fields are stored on the "hero" level container which in HL is the highest most container.
In HL go to "Develop->Floating Info Windows->Show Hero Fields" and in the little search box type in "reach". You will now see two fields one with a value and one that holds text. To access a Hero field you use this type of transition script: Code:
herofield[FIELD_NAME].value += 5 |
Ow, slapping forehead - I forgot about that. :eek:
|
Quote:
|
Now why would you assume that armed with knowledge i can get this stuff done? :(
Pre-levels, 10000 if (field[abilActive].value <> 0) then herofield[tReach].value += 5 endif Did nothing for me. |
Another way i tried (no go)
if (field[abilActive].value <> 0) then hero.childfound[Reach].field[tReach].value += 5 endif |
All times are GMT -8. The time now is 11:25 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.