Quote:
Originally Posted by Aaron
Have you tried having an eval script set the field value? Haven't looked into it, just spitballing.
|
Most of the equipment manipulations need to generally be done in the Final to Render phase and the gSize field is easily manipulated in a script.
The following snippet (of working code for an activated "increase weapon size for longsword" ability) could be modified to run on any
trigger, like a menu drop or however you want to turn it on and off.
Code:
if (field[abilActive].value <> 0) then
foreach pick in hero from BaseWep where "thingid.wLongsword"
eachpick.field[gSize].value += 1
nexteach
endif
thingid.wLongsword could be replaced with anything that narrows down the weapon, like if "!wGroup.Natural" to affect all weapons that are NOT natural weapons, etc...
foreach pick loops are CPU hoggish, but they do get the job done.