How to prevent Blink to a specific region?

SutinG

Member
Reaction score
1
Hi!,
Like the title says... I want to prevent that a Hero can Blink to a specific region.
Any Ideas? Thanks in advance!
 

fr0ggE

New Member
Reaction score
1
--Event
Hero is issued at order targeting a point
--Condition
Order Equal To NightElf - Blink
--Action
Set BlinkPoint = Event Response - Target Point
If
RegionX contain BlinkPoint
Then
Order Event Response Ordered Unit to Stop
Else
Nothing


Try something like that
 

SutinG

Member
Reaction score
1
Thanks!, I've got this at the moment...

Trigger:
  • Events
    • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Set Temp_POINT = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (AntiBlink <gen> contains Temp_POINT) Equal to True
        • Then - Actions
        • Else - Actions


But I don't find any action... :S
 

SutinG

Member
Reaction score
1
The action should be called something like this "Issue order a unit with no target."

Thanks, I found it, but it don't work... I think that maybe is because the order Stop make reference to the movement and not to the ability being cast... Can be that?

Trigger:
  • Untitled Trigger 003
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Set Temp_POINT = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (AntiBlink <gen> contains Temp_POINT) Equal to True
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
 

fr0ggE

New Member
Reaction score
1
if you change event, how will it detect the point?

just change the condition from "ability being cast" to "issued order" = "blink"

and i think it will work

EDIT: nm
 

SutinG

Member
Reaction score
1
What type of conditon is taht? I don't found it :S
EDIT: Found it..
EDIT2: Sorry I don't know how to set that :S...
 

Yoshii

New Member
Reaction score
74
There is different way to go about it
4 region region north, south,west,east(along the map boundaries)
make region north of the outside of the map(the blackbord)
make a trigger like
event: a unit enter Region north
action: unit move to position of triggering unit offset by 0,-400 (try a number it must be negative for north)

the above trigger is for "outside map" at the north
south would look the same except
enter region South
offset by 0,400(positive)
east would be
enter region East
offset by 400,0(positive)
west
Enter Region West
offset by -400,0(negative)
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Trigger:
  • Stop Blink
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Issued order) Equal to (Order(blink))
    • Actions
      • Set tempPoint = (Target point of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Region 000 <gen> contains tempPoint) Equal to True
        • Then - Actions
          • Game - Display to (Player group((Owner of (Triggering unit)))) the text: You cannot blink he...
          • Unit - Pause (Triggering unit)
          • Unit - Order (Triggering unit) to Stop
          • Unit - Unpause (Triggering unit)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_tempPoint)


Tested in-game and worked perfectly.
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Why do that?

The mana ends up being consumed and the ability goes into cooldown. Also, this will just make the blinking units move to a different area other than the point targetted. If you use "begins casting an ability," the special effect of the blink still shows.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top