GetTriggerUnit-
DogEntrepreneur
- Reaction score
- 129
I've understood Azlier's one, but J4L, is complicated because I'm still learning method and thistype.
I also know what fire means, I'll try to build my own and edit this post when I'm done..
Edit:
____________________________________
Marry me Jesus4Lyf!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
With the trigger above, I added those triggers ->
It displayed "Yay!"
It also casted thunder clap
Are you gonna marry me? <3
I also know what fire means, I'll try to build my own and edit this post when I'm done..
Edit:
JASS:
// Based off Azlier's one.
library Hotkeys initializer Init
globals
private Event ev
endglobals
private function Hook takes string s returns nothing
call FireEvent(ev)
endfunction
hook ForceUIKey Hook
function TriggerRegisterUIKeyCalled takes trigger t returns nothing
call TriggerRegisterEvent(t,ev)
endfunction
private function Init takes nothing returns nothing
set ev = CreateEvent()
endfunction
endlibrary
____________________________________
Marry me Jesus4Lyf!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
With the trigger above, I added those triggers ->
JASS:
function Trig_Test_Actions takes nothing returns boolean
call BJDebugMsg("Yay!")
return false
endfunction
//===========================================================================
function InitTrig_Test takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterUIKeyCalled(t)
call TriggerAddCondition(t, Condition(function Trig_Test_Actions))
endfunction
JASS:
function Trig_Test_2_Actions takes nothing returns nothing
call ForceUIKey("c")
endfunction
//===========================================================================
function InitTrig_Test_2 takes nothing returns nothing
set gg_trg_Test_2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Test_2, 8.00 )
call TriggerAddAction( gg_trg_Test_2, function Trig_Test_2_Actions )
endfunction
It displayed "Yay!"
It also casted thunder clap
Are you gonna marry me? <3