Yizzy
New Member
- Reaction score
- 20
What's the diffenace between the four natural players?
Is there anything you can't remove by triggers?
Is there anything you can't remove by triggers?
Thank you, how about the differance between passive and a player that is set to none.
Units owned by passive seem to respone to attack while a none player's dosen't, can I change that?
Convert it to a custom script and use Player(12), Player(13), Player(14) and Player(15), I think those are the different neutrals.
you can use neutral passive and make sure
Can flee {} as in not checked then they should fight
function Trig_TreatAsEnemy_Actions takes nothing returns nothing
local integer i = 0
loop
exitwhen i > 11
call SetPlayerAllianceStateBJ( Player(12), Player(i), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(13), Player(i), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(14), Player(i), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(15), Player(i), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(i), Player(12), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(i), Player(13), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(i), Player(14), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(i), Player(15), bj_ALLIANCE_UNALLIED )
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_TreatAsEnemy takes nothing returns nothing
set gg_trg_TreatAsEnemy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_TreatAsEnemy, .5 )
call TriggerAddAction( gg_trg_TreatAsEnemy, function Trig_TreatAsEnemy_Actions )
endfunction