• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

ability target allowed trigger changed?

Status
Not open for further replies.
Level 6
Joined
Nov 3, 2018
Messages
79
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
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
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:
Level 6
Joined
Nov 3, 2018
Messages
79
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
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
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.
Top