- Joined
- Dec 12, 2019
- Messages
- 3
My object is to display a text for testing, but when I create new trigger files and add some codes, the text won't display in the game
But if I add a new function in Melee Initialization, it runs.
I can't debug about this by myself because in my editor does not throw the errors when the game's running.
Any tips for fixing this problem? (I'm not using plugins.)
Code:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call BJDebugMsg("Hii")
call BJDebugMsg("Hii") // I want to display the text for testing.
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
// This entire code won't run even the editor doesn't throw the errors.
But if I add a new function in Melee Initialization, it runs.
Code:
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
call BJDebugMsg("Hii") // added new function in Meele Initialization
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
I can't debug about this by myself because in my editor does not throw the errors when the game's running.
Any tips for fixing this problem? (I'm not using plugins.)
Last edited: