try something like this
perform assignstr["PolyAllow." & eachpick.idstring]
where you are assigning the PolyAllow to whatever has the polymorph gizmo on it.
You can also simplify your loop by the following:
foreach pick in gizmo where "AbilType.Extra & HasAbility.?"
However, I am not sure if "foreach pick" or "foreach thing" would be the way to go here. Try both and see if either works.
Last edited by frumple; March 2nd, 2018 at 08:26 AM.
|