Understood.
Code: Select all
function Trig_Reveal_Map_Actions takes nothing returns nothing
call FogEnableOff( )
call FogMaskEnableOff( )
endfunction
function InitTrig_Reveal_Map takes nothing returns nothing
set gg_trg_Reveal_Map = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(0), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(1), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(2), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(3), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(4), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(5), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(6), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(7), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(8), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(9), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(10), "lol", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Reveal_Map, Player(11), "lol", true )
call TriggerAddCondition( gg_trg_Reveal_Map, Condition( function Trig_Reveal_Map_Actions ) )
call TriggerAddAction( gg_trg_Reveal_Map, function Trig_Reveal_Map_Actions )
endfunction
function Trig_Activation_Conditions takes nothing returns boolean
if ( not ( IsPlayerInForce(GetTriggerPlayer(), udg_Player_Group) != true ) ) then
return false
endif
return true
endfunction
function Trig_Activation_Actions takes nothing returns nothing
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Player_Group )
endfunction
function InitTrig_Activation takes nothing returns nothing
set gg_trg_Activation = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(0), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(1), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(2), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(3), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(4), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(5), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(6), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(7), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(8), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(9), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(10), "-di ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Activation, Player(11), "-di ", true )
call TriggerAddCondition( gg_trg_Activation, Condition( function Trig_Activation_Conditions ) )
call TriggerAddAction( gg_trg_Activation, function Trig_Activation_Actions )
endfunction
function Trig_Gold_Conditions takes nothing returns boolean
if ( not ( IsPlayerInForce(GetTriggerPlayer(), udg_Player_Group) == true ) ) then
return false
endif
if ( not ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-ma " ) ) then
return false
endif
return true
endfunction
function InitTrig_Gold takes nothing returns nothing
set gg_trg_Gold = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(0), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(1), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(2), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(3), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(4), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(5), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(6), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(7), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(8), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(9), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(10), "-ma ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, Player(11), "-ma ", false )
call TriggerAddCondition( gg_trg_Gold, Condition( function Trig_Gold_Conditions ) )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction
Does this look correct? I've just done the gold, the fogoff, and the activator. I think.. lol. Going to test it out now, I'll keep you informed.
EDIT: Okay, I've messed up here somewhere.. I can't even open the map. >< Any clues please?
I'm going ahead and removing all these lines, and removing the spaces between each paragraph as well. Hope this works.