Hiya, I've stumbled upon a mystery of some sorts.
This function should work, should it not?
If I switch the > and < the trigger works perfectly, doing it the other way doesn't... explanations appreciated...
(Please note that I just until recently learned JASS, so I'm still fairly new at it )
EDIT: Eh, remove post please, I realised how to do it.
This function should work, should it not?
If I switch the > and < the trigger works perfectly, doing it the other way doesn't... explanations appreciated...
JASS:
function CheckMainBools takes nothing returns boolean
if ( GetTimeOfDay() > 6.00) then
return true
endif
if ( GetTimeOfDay() < 7.00) then
return true
endif
return false
endfunction
function ActionFunc takes nothing returns nothing
if ( CheckMainBools()) then
call DisplayTextToForce(GetPlayersAll(), "Past 6 AM, Before 7 AM")
endif
endfunction
//===========================================================================
function InitTrig_TestTrigger takes nothing returns nothing
set gg_trg_TestTrigger = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_TestTrigger, 0.10)
call TriggerAddAction( gg_trg_TestTrigger, function ActionFunc )
endfunction
(Please note that I just until recently learned JASS, so I'm still fairly new at it )
EDIT: Eh, remove post please, I realised how to do it.