Okay I'm stumped.
I have one trigger that adds the events to a second trigger at map initialization.
However the second trigger is never firing like I want it to.
The conditions arent even being checked.
Uploaded the whole map too, if you need to see the rest of the triggers.
I have one trigger that adds the events to a second trigger at map initialization.
JASS:
function Trig_Initialization_Actions takes nothing returns nothing
local integer index
local player indexPlayer
local location indexStartLoc
local real copX
local real copY
// enec = nightelf runner
// ncop = circle of power
set index = 0
loop
set indexPlayer = Player(index)
if (GetPlayerSlotState(indexPlayer) == PLAYER_SLOT_STATE_PLAYING) then
set indexStartLoc = GetStartLocationLoc(GetPlayerStartLocation(indexPlayer))
// Create initial CTF starting units
set copX = GetLocationX(indexStartLoc)
set copY = GetLocationY(indexStartLoc) - 400.00
call CreateUnit(indexPlayer, 'ncop', copX, copY, bj_UNIT_FACING)
set udg_cops[index] = GetLastCreatedUnit()
set udg_copArea[index] = RectFromCenterSizeBJ( GetUnitLoc(GetLastCreatedUnit()), 100.00, 100.00 )
call TriggerRegisterEnterRectSimple( gg_trg_Taken, udg_copArea[index] )
call TriggerRegisterEnterRectSimple( gg_trg_Capture, udg_copArea[index] )
call CreateUnit(indexPlayer, 'enec', copX, copY, bj_UNIT_FACING)
endif
set index = index + 1
exitwhen index == bj_MAX_PLAYERS
endloop
endfunction
However the second trigger is never firing like I want it to.
The conditions arent even being checked.
JASS:
//===========================================================================
function InitTrig_Taken takes nothing returns nothing
set gg_trg_Taken = CreateTrigger( )
call TriggerAddCondition( gg_trg_Taken, Condition( function Trig_Taken_Conditions ) )
call TriggerAddAction( gg_trg_Taken, function Trig_Taken_Actions )
endfunction
Uploaded the whole map too, if you need to see the rest of the triggers.
Attachments
Last edited: