Autocast blink

Maarten

New Member
Reaction score
0
Hi everybody,


the autocast of the blink ability is what I try to accomplish for weeks now. But still cannot figure how to do it. I know this has to be done without the Autocast functions at the ability itself. Therefore I know to make a damage respons behaviour with a create persistant with an issue order effect that is ordering to cast the ability. After that I have to trigger the autocast functions to deactivate and activate the buff (so it looks like autocasting).

Further I just cannot accomplish it, I really dont know which parameters I have to modify to get what I want. I hope someone can get me through this, because I'm now stuck with this thing for weeks now.

I want the stalker to autocast the blink behind him (away from the enemy) when the stalker takes damage.

Thanks in advance!


Greetings,

Maarten
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
You could probably do it with data in some fancy way with some offsets and stuff. That might be a very good exercise.

However, it will probably be much easier to do with triggers.

Something like:
Trigger:
  • Blink Autocast
    • Events:
      • Unit takes damage
    • Conditions:
      • (Unit type of (Triggering Unit)) == Stalker
      • ((Triggering Unit)'s Shield (Current) <= 10
    • Actions:
      • Unit - Issue Blink order to ((Position of (Triggering Unit) offset by 2 towards ((Facing of (Triggering Unit) + 180.0)
 

Maarten

New Member
Reaction score
0
Sometimes some things can be so simple -.-'.

I made the following trigger (see image). For some reason they are blinking always to the south, no matter from what angle they r attacking. U have any idea what isn't right? As far as I know is this what it suppose to be.
 

Attachments

  • Blink.png
    Blink.png
    10.5 KB · Views: 520

Dave312

Censored for your safe viewing
Reaction score
269
It is because you have set the angle to 180 degrees. Try changing this value to (Facing of Triggering Unit) + 180
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
In addition to what Dave said, it seems like you're using the wrong function and towards a point instead of towards a direction. Make sure the point function is called Point with polar offset.
 

Maarten

New Member
Reaction score
0
Omg, this is really driving me crazy. For some reason I have the same action you discribe, but there isnt any parameter that alows me to add '+180' .. Instead of '+180' it says 'degrees' whereby I can fill in any parameter. Look at the attach image please for what I'm stil doing wrong. Pfff, I'm so glad when this is solved..
 

Attachments

  • OMG.png
    OMG.png
    18.2 KB · Views: 530

Dave312

Censored for your safe viewing
Reaction score
269
Select the Angle Parameter and change it to Arithmetic (under the math section). Then for the first value, set it to Facing Angle of (Triggering Unit), set the operator to + and second value to 180
 

Maarten

New Member
Reaction score
0
1000000000000000000x thanks!!! This reminds me how noobish I still am on triggering. Thanks for the kindess help!!! This thread can be closed!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top