I did read this 5 times now, and still I have no idea, what you are talking about.
What exactly is the purpose of this trigger? Is this a tutorial or is it a question? What does the ability do? What is the Hero Veterancy you use in your condition? What behavior are you talking about?
Self Cast is a flag for every ability, under the Execute fields (where the Default Button is placed), there is an array of flags, one of which is "Allow Self Cast".
Edit: Ok I misunderstood, you want to replicate DotA style double taps. I do not know what the "Self Cast Hotkey" that the tooltip for the flag references, I will do further research.
With data, you would want an ability that when you press the hotkey it would swap the ability with a second one which uses it on your hero.
Then you either select the target for the first ability, or push the hotkey again to use the second swapped ability.
You're on the right track, but I don't think you can "swap" an ability... and in any case, just swapping the ability wouldn't work. To make something like this work, you need to add both abilities to the unit via the Data Editor and use a buff & requirements system to show/hide the proper buttons (or triggers.) One button would be for the targeted ability, and another would be for the self-cast ability. You might be able to accomplish the same effect using scripts as well but... that's not my field of expertise ;)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Since someone wonders if Self Cast Ability is possible through Data?
A: Probably.
But its also possible through Trigger with some mechanics to use.
1 Hotkey. 2 Which Behavior to Cast Upon.
So here are the Triggers
First Search Event Key Pressed then choose your desired Hotkey , I chose "Q"
then Actions Tab - Pick Each Unit in Regions Matching Condition
If then else
If Condition is Hero Veterancy , Lets just say you have one or whatever enabled in your Hero , You can do this as many as possible.
Then after this
Add Behavior to Unit(Picked Unit) from Caster(PickedUnit) A Little Note I chose Chrono Boost for this.
and viola. :) Heres your Self-Cast
I did read this 5 times now, and still I have no idea, what you are talking about.
What exactly is the purpose of this trigger? Is this a tutorial or is it a question? What does the ability do? What is the Hero Veterancy you use in your condition? What behavior are you talking about?
@Kueken531: Go
Its a Tutorial for the Spellcast with Double Tap Q or Bloodrage
heres the Schematics
Event - Key Pressed Hotkey "Q"
Conditions - Either a Boolean for Initiate or Integer
Actions - Pick each unit in Region Matching Conditions / Set Unit Filter to Heroic
If - Hero Veterancy is Enabled
Then - Add BloodRage Buff of Behavior to Unit (Picked Unit) from Caster (Picked Unit)
Else - Do Nothing
It is relevant to what Dota2 is currently using right now , It may be Data Driven ' But this is the only way I could think of right now.
Self Cast is a flag for every ability, under the Execute fields (where the Default Button is placed), there is an array of flags, one of which is "Allow Self Cast".
Edit: Ok I misunderstood, you want to replicate DotA style double taps. I do not know what the "Self Cast Hotkey" that the tooltip for the flag references, I will do further research.
With data, you would want an ability that when you press the hotkey it would swap the ability with a second one which uses it on your hero. Then you either select the target for the first ability, or push the hotkey again to use the second swapped ability.
@AstralCV: Go
You're on the right track, but I don't think you can "swap" an ability... and in any case, just swapping the ability wouldn't work. To make something like this work, you need to add both abilities to the unit via the Data Editor and use a buff & requirements system to show/hide the proper buttons (or triggers.) One button would be for the targeted ability, and another would be for the self-cast ability. You might be able to accomplish the same effect using scripts as well but... that's not my field of expertise ;)