Actually, i want to set a boolean when somone presses build <-- finished
and i want to set it false when they press the esc thing in the build menu <-- need help
You would need one more triggers for that because you can only detect when player presses ESC not if player presses the icon
make
channel ability - put its time to 0.01 and put hotkey "
X" (I MEAN RELLY
X not x as and hotkey you want)
put his base order id to raiseddeadoff
ok so....
you should make one more trigger
FORCE PLAYERS -initially on = false
EVENTS
every 0.0X seconds of game
CONDITIONS...
ACTIONS
pick every player in all player and do action
-game- force picked player to press a key X
unit clicks on fake building (wind walk ability)
replace (unit) with (your unit that has real building ability)...
turn on FORCE PLAYERS
--------------------------------
now if someone presses ESC key or presses the button he will active channel ability with hotkey X
---------------------------------
PLAYER PRESSED ESC OR LEFT CLICK ON ESC BUTTON
EVENT
unit is ordered with no target
CONDITION
issued order equal to raiseddeadoff
ACTIONS
replace triggering unit with (your unit with fake build ability)
...
PLAYER DESELECTS A (your unit with real build ability)
EVENT
player 1 deselects a unit
...
CONDITION
unit type of triggering unit equal to unit of type (your unit with real build ability)
ACTION
replace triggering unit with unit of type (unit with fake building)
pick every unit of type (fake builder)
IF
if random unit from unit group is alive
THAN...
ELSE
turn off FORCE PLAYERS
so here is what you do
you make a channel ability that will not be casted while your building "screen" is opened
than if you close it the FORCE PLAYER trigger will force you to cast channel
---> channel casting is detecting the closed building "screen"