Just making my first map, its actually done but i'm optimising it since i want it to run smoothly for 12 players. I didn't discover Jass untill 85% through, so i've been going through the triggers that might get hit more than once a second to reduce the calls in them and i've done myself in a bit on this one.
TLDR:
If either the IF statement or Forgroup is uncommented the map fails to load.
whats the problem? and why is it that in some cases statements that work fine in one triggers stop the map from loading in another.
TLDR:
If either the IF statement or Forgroup is uncommented the map fails to load.
JASS:
function gg_trg_PlayerDeadCheckLoop takes nothing returns nothing
local group g = CreateGroup()
// if (udg_Life[GetEnumPlayer() + 1] <= 0) then //bugged
call ForceRemovePlayer(udg_Players ,GetEnumPlayer())
call DisplayTimedTextToForce( bj_FORCE_ALL_PLAYERS, 15.00, ( GetPlayerName(GetEnumPlayer()) + " is a giant FAILURE" ) )
call GroupEnumUnitsOfPlayer(g,GetEnumPlayer(),null) //create group of the players units
// call ForGroup(g,RemoveUnit(GetEnumUnit())) //destroy them
call DestroyGroup(g)
// endif
endfunction
function Trig_PlayerDeadCheck_Actions takes nothing returns nothing
call ForForce(udg_Players, function gg_trg_PlayerDeadCheckLoop)
endfunction
//===========================================================================
function InitTrig_PlayerDeadCheck takes nothing returns nothing
set gg_trg_PlayerDeadCheck = CreateTrigger( )
call TriggerAddAction( gg_trg_PlayerDeadCheck, function Trig_PlayerDeadCheck_Actions )
endfunction
whats the problem? and why is it that in some cases statements that work fine in one triggers stop the map from loading in another.
Last edited: