Arcane
You can change this now in User CP.
- Reaction score
- 87
Neutral extra still attacks everybody, and neutral victim still attacks nobody...
JASS:
function NeutralUnally takes nothing returns nothing
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_VICTIM), Player(bj_PLAYER_NEUTRAL_EXTRA), ALLIANCE_PASSIVE, false)
endfunction
JASS:
function BlackCircleAlly takes nothing returns nothing
//Ally neutral extra with Black Circle
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_EXTRA), GetEnumPlayer(), ALLIANCE_PASSIVE, true)
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_EXTRA), GetEnumPlayer(), ALLIANCE_SHARED_VISION, true)
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_EXTRA), GetEnumPlayer(), ALLIANCE_SHARED_XP, true)
//vice versa
call SetPlayerAlliance(GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_EXTRA), ALLIANCE_PASSIVE, true)
//Neutral Victim enemy with Black Circle
call SetPlayerAlliance( Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), ALLIANCE_PASSIVE, false)
//vice versa
call SetPlayerAlliance( GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_VICTIM), ALLIANCE_PASSIVE, false)
endfunction
JASS:
function WhiteHandAlly takes nothing returns nothing
//Ally neutral victim with White Hand
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), ALLIANCE_PASSIVE, true)
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), ALLIANCE_SHARED_VISION, true)
call SetPlayerAlliance(Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), ALLIANCE_SHARED_XP, true)
//Ally White Hand with neutral victim
call SetPlayerAlliance(GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_VICTIM), ALLIANCE_PASSIVE, true)
//Neutral Extra enemy with White Hand
call SetPlayerAlliance( Player(bj_PLAYER_NEUTRAL_EXTRA), GetEnumPlayer(), ALLIANCE_PASSIVE, false)
//vice versa
call SetPlayerAlliance( GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_EXTRA), ALLIANCE_PASSIVE, false)
endfunction
JASS:
//ALLY AND COLOR
set udg_TheWhiteHand = GetPlayersAllies(Player(0))
set udg_TheBlackCircle = GetPlayersAllies(Player(6))
call SetPlayerColor( Player(bj_PLAYER_NEUTRAL_EXTRA), PLAYER_COLOR_BROWN)
call SetPlayerColor( Player(bj_PLAYER_NEUTRAL_VICTIM), PLAYER_COLOR_AQUA)
call ForForce(udg_TheBlackCircle, function BlackCircleAlly)
call ForForce(udg_TheWhiteHand, function WhiteHandAlly)
endfunction
JASS:
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Initialization = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Initialization, 0.00 )
call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
call ExecuteFunc("NeutralUnally")
endfunction