Volkof
Well-Known Member
- Reaction score
- 31
Hi all.
Im not good in Jass so I need all you guys' help.
I need to know how to allow only Players contolled by Computer and is Playing to be run by the default Melee AI. HOWEVER I do not want player 12 to be run by melee AI.
I searched and came across this jass script:
So now I would like someone to guide me on how to edit this script so that Player 12 will NOT be controlled by AI.
Thanks in advance.
Im not good in Jass so I need all you guys' help.
I need to know how to allow only Players contolled by Computer and is Playing to be run by the default Melee AI. HOWEVER I do not want player 12 to be run by melee AI.
I searched and came across this jass script:
JASS:
function MeleeStartingAI takes nothing returns nothing
local integer index
local player indexPlayer
local race indexRace
set index = 0
loop
set indexPlayer = Player(index)
if (GetPlayerSlotState(indexPlayer) == PLAYER_SLOT_STATE_PLAYING) then
set indexRace = GetPlayerRace(indexPlayer)
if (GetPlayerController(indexPlayer) == MAP_CONTROL_COMPUTER) then
// Run a race-specific melee AI script.
if (indexRace == RACE_HUMAN) then
call PickMeleeAI(indexPlayer, "human.ai", null, null)
elseif (indexRace == RACE_ORC) then
call PickMeleeAI(indexPlayer, "orc.ai", null, null)
elseif (indexRace == RACE_UNDEAD) then
call PickMeleeAI(indexPlayer, "undead.ai", null, null)
call RecycleGuardPosition(bj_ghoul[index])
elseif (indexRace == RACE_NIGHTELF) then
call PickMeleeAI(indexPlayer, "elf.ai", null, null)
else
// Unrecognized race.
endif
call ShareEverythingWithTeamAI(indexPlayer)
endif
endif
set index = index + 1
exitwhen index == bj_MAX_PLAYERS
endloop
endfunction
So now I would like someone to guide me on how to edit this script so that Player 12 will NOT be controlled by AI.
Thanks in advance.