|
发表于 2010-8-14 10:50:16
|
显示全部楼层
- function MeleeStartingAI_CJ takes nothing returns nothing
- local integer index=0
- local player indexPlayer
- local race indexRace
- loop
- set indexPlayer = Player(index)
- if (GetPlayerSlotState(indexPlayer) == PLAYER_SLOT_STATE_PLAYING) then
- set indexRace = GetPlayerRace(indexPlayer)
- if (GetPlayerController(indexPlayer) == MAP_CONTROL_COMPUTER) then
- if (indexRace == RACE_HUMAN) then
- call StartMeleeAI(indexPlayer, "humanA.ai")
- elseif (indexRace == RACE_ORC) then
- call StartMeleeAI(indexPlayer, "orc.ai")
- elseif (indexRace == RACE_UNDEAD) then
- call StartMeleeAI(indexPlayer, "undead.ai")
- call RecycleGuardPosition(bj_ghoul[index])
- elseif (indexRace == RACE_NIGHTELF) then
- call StartMeleeAI(indexPlayer, "elf.ai")
- endif
- call ShareEverythingWithTeamAI(indexPlayer)
- endif
- endif
- set index = index + 1
- exitwhen index == 2
- endloop
- endfunction
复制代码
AMAI2.50文件! |
|