- Joined
- Jun 27, 2010
- Messages
- 3,253
Hey guys I have some thoughts about can you make a trigger that will stop the unit from blinking if the blink point is on a upper level of trrrain?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Blink Down

Events


Unit - A unit Is issued an order targeting a point

Conditions


(Issued order) Equal to (==) (Order(blink))

Actions


Set TempRealA = 0.00


Set TempRealB = 0.00


Set TempPointA = (Position of (Triggering unit))


Custom script: set udg_TempRealA = GetLocationZ(udg_TempPointA)


Custom script: call RemoveLocation(udg_TempPointA)


Set TempPointA = (Target point of issued order)


Custom script: set udg_TempRealB = GetLocationZ(udg_TempPointA)


Custom script: call RemoveLocation(udg_TempPointA)


Game - Display to (All players) the text: (String(TempRealA))


Game - Display to (All players) the text: (String(TempRealB))



Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)




If - Conditions





(TempRealB - TempRealA) Greater than or equal to (>=) 90.00




Then - Actions





Set TempPointA = (Position of (Triggering unit))





Unit - Order (Triggering unit) to Move To TempPointA





Custom script: call RemoveLocation(udg_TempPointA)





Game - Display to (All players) the text: Noooooooo




Else - Actions
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
Untitled Trigger 001

Events


Map initialization

Conditions

Actions


Melee Game - Use melee time of day (for all players)


Melee Game - Limit Heroes to 1 per Hero-type (for all players)


Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)


Melee Game - Set starting resources (for all players)


Melee Game - Remove creeps and critters from used start locations (for all players)


Melee Game - Create starting units (for all players)


Melee Game - Run melee AI scripts (for computer players)


Melee Game - Enforce victory/defeat conditions (for all players)
You can actually check the level of the cliff.
i've found out something
actually you can detect if the casting point is on an upper cliff terrain,

