Function ConfigureNeutralVictim
- Line
- 5326
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- nothing
- Returns
- nothing
| 5326 | function ConfigureNeutralVictim takes nothing returns nothing |
| 5327 | local integer index |
| 5328 | local player indexPlayer |
| 5329 | local player neutralVictim = Player(bj_PLAYER_NEUTRAL_VICTIM) |
| 5330 | |
| 5331 | set index = 0 |
| 5332 | loop
|
| 5333 | set indexPlayer = Player(index) |
| 5334 | |
| 5335 | call SetPlayerAlliance(neutralVictim, indexPlayer, ALLIANCE_PASSIVE, true) |
| 5336 | call SetPlayerAlliance(indexPlayer, neutralVictim, ALLIANCE_PASSIVE, false) |
| 5337 | |
| 5338 | set index = index + 1 |
| 5339 | exitwhen index == bj_MAX_PLAYERS |
| 5340 | endloop
|
| 5341 | |
| 5342 | // Neutral Victim and Neutral Aggressive should not fight each other.
|
| 5343 | set indexPlayer = Player(PLAYER_NEUTRAL_AGGRESSIVE) |
| 5344 | call SetPlayerAlliance(neutralVictim, indexPlayer, ALLIANCE_PASSIVE, true) |
| 5345 | call SetPlayerAlliance(indexPlayer, neutralVictim, ALLIANCE_PASSIVE, true) |
| 5346 | |
| 5347 | // Neutral Victim does not give bounties.
|
| 5348 | call SetPlayerState(neutralVictim, PLAYER_STATE_GIVES_BOUNTY, 0) |
| 5349 | endfunction
|