• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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