ability target allowed trigger changed?

Status
Not open for further replies.
Level 7
Joined
Nov 3, 2018
Messages
102
Is it possible to change this field with triggers? i know that you can change allowed targets for attacks but can't find the one for spells
1709063332654.png
 
It can be modified in version 1.31+ but it may be a pain to get working since the function relies on an Integer. Look for the Set Ability Field actions.

There's existing threads which go into greater detail but I can't seem to find them.
 
Last edited:
It can be modified in version 1.31+ but it may be a pain to get working since the function relies on an Integer. Look for the Set Ability Field actions.

There's existing threads which go into greater detail but I can't seem to find them.
i can't seem to find the code that allows that unless i'm missing something obvious.
the field i need seems to be (raw) named atar which i couldn't find on integers or reals i even searched strings
 
i can't seem to find the code that allows that unless i'm missing something obvious.
the field i need seems to be (raw) named atar which i couldn't find on integers or reals i even searched strings
I made a mistake, I was thinking of Weapon - Targets Allowed:
  • Unit - Set Unit: (Triggering unit)'s Weapon Integer Field: Attack Targets Allowed ('ua1g')at Index:0 to Value: 1
Abilities don't have that option.

Why do you need to change the field with triggers? There's probably an easy alternative solution.
 
Status
Not open for further replies.
Back
Top