View Single Post
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old August 24th, 2017, 09:39 AM
Quote:
Originally Posted by Aaron View Post
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.

Last edited by dungeonguru; August 24th, 2017 at 09:43 AM. Reason: corrected grammar
dungeonguru is offline   #5 Reply With Quote