Well, your problem is more than obvious. Locals are visible (can be used) only in the function in which you declare them, not trigger. Conclusion? Your code should look like this:
function Trig_Untitled_Trigger_003_Actions
takes nothing returns nothinglocal string a
set a =
( a +
"1" )call DisplayTextToForce
( GetPlayersAll
(), a
)endfunction//===========================================================================function InitTrig_Untitled_Trigger_003
takes nothing returns nothingset gg_trg_Untitled_Trigger_003 = CreateTrigger
( )call TriggerRegisterTimerEventPeriodic
( gg_trg_Untitled_Trigger_003, 1.00
)call TriggerAddAction
( gg_trg_Untitled_Trigger_003,
function Trig_Untitled_Trigger_003_Actions
)endfunction
Oh, and be careful, you must declare locals in a function BEFORE doing anything else. For example, in your section function you did this:
set gg_trg_Untitled_Trigger_003 = CreateTrigger( )
local string a
INCORRECT! Setting a value to a variable is also an action. This is correct:
local string a
set gg_trg_Untitled_Trigger_003 = CreateTrigger( )
Hope this helped!
~Daelin