Sui-cookie
You can change this now in User CP.
- Reaction score
- 49
in:
It splits the possibilities by the boolean returned in
"Trig_Untitled_Trigger_004_Func002C"
but in the next function, it uses the if:
i don't quite understand that line... how is it determining which return it came up with?
JASS:
function Trig_Untitled_Trigger_004_Func002C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_004_Actions takes nothing returns nothing
if ( Trig_Untitled_Trigger_004_Func002C() ) then
call DisplayTextToForce( GetPlayersAll(), "p?" )
else
call DisplayTextToForce( GetPlayersAll(), "C?" )
endif
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_004 takes nothing returns nothing
set gg_trg_Untitled_Trigger_004 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_004, function Trig_Untitled_Trigger_004_Actions )
endfunction
It splits the possibilities by the boolean returned in
"Trig_Untitled_Trigger_004_Func002C"
but in the next function, it uses the if:
JASS:
if ( Trig_Untitled_Trigger_004_Func002C() ) then
i don't quite understand that line... how is it determining which return it came up with?