//===========================================================================
// Trigger: Anti Cheat 2
//
// There is no way that I am aware of that gives me the ability to block players from using cheat codes in single player. What is the fun of playing a map when you can kill everyone in one hit and then save that now overpowered hero to slaughter people on battle.net when the player had maybe 30 minutes on the map? Therefore we have altered how the single player version saves. This trigger detects that only one player is playing and switches to the game cache instead of the Save Code generator.
//===========================================================================
function Trig_Anti_Cheat_2_Func001C takes nothing returns boolean
if ( not ( udg_Multiplayer == true ) ) then
return false
endif
return true
endfunction
function Trig_Anti_Cheat_2_Actions takes nothing returns nothing
if ( Trig_Anti_Cheat_2_Func001C() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_9033" )
else
call DisableTrigger( gg_trg_NPS_Save )
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_499" )
call EnableTrigger( gg_trg_SP_Load_Hero )
call EnableTrigger( gg_trg_SP_Save_hero_before_Victory )
endif
endfunction
so i added "call EnableTrigger( gg_trg_SP_Load_Hero )" and "call EnableTrigger( gg_trg_SP_Save_hero_before_Victory )"
under "call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_6816" )"