Jass:ConfigureNeutralVictim
Aus Mappedia
| Funktion: ConfigureNeutralVictim | |
|---|---|
| Parameter: | nothing |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function ConfigureNeutralVictim takes nothing returns nothing local integer index local player indexPlayer local player neutralVictim = Player(bj_PLAYER_NEUTRAL_VICTIM) set index = 0 loop set indexPlayer = Player(index) call SetPlayerAlliance(neutralVictim, indexPlayer, ALLIANCE_PASSIVE, true) call SetPlayerAlliance(indexPlayer, neutralVictim, ALLIANCE_PASSIVE, false) set index = index + 1 exitwhen index == bj_MAX_PLAYERS endloop // Neutral Victim and Neutral Aggressive should not fight each other. set indexPlayer = Player(PLAYER_NEUTRAL_AGGRESSIVE) call SetPlayerAlliance(neutralVictim, indexPlayer, ALLIANCE_PASSIVE, true) call SetPlayerAlliance(indexPlayer, neutralVictim, ALLIANCE_PASSIVE, true) // Neutral Victim does not give bounties. call SetPlayerState(neutralVictim, PLAYER_STATE_GIVES_BOUNTY, 0) endfunction
