HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Having Neutral Players run AI Script

03-18-2007, 04:35 AM#1
The__Prophet
I was wondering if its even possible to have neutral players Victim and Extra (Players 13, and 14 respectivly) run a computer ai.
03-19-2007, 04:02 AM#2
botanic
yes you just need to set the player to use the custom ai script
03-19-2007, 04:33 AM#3
Av3n
Check this tut it would help you, but triggering A.I for player 13,14 is an better chocie

-Av3n
03-20-2007, 12:30 AM#4
The__Prophet
Ok, well nothing I do seems to work. I created an AI file using the AI editor. Nothing fancy really. The race is custum, and everything seems to be in order. I export the AI file into my map, and run this trigger:
Collapse JASS:
    call StartMeleeAI( Player(13), "war3mapImported\\AllianceAI.ai") 

Did I honestly miss somthing? There has to be me to setting up an AI than this, becuase at this moment, the AI just sits there.

Edit: So I tried running the AI script, but with a normal player instead, and it works! This is not good news for me, becuase my map utilizes all 12 player slots, and I was banking on allowing the neutral players to cover the computers I need. Any Suggestions?
03-20-2007, 12:47 AM#5
FatalError
Eh...Blizzard.j does a bunch of stuff on those slots that make them...well, neutral. I'm not really sure what you can do about it. Best thing I can advise is use triggers to move them instead of an AI script. =/
03-20-2007, 01:07 AM#6
The__Prophet
Well... I was planning on using the AI script to do ALOT more than just move units. My plans were to make the AI build bases, train units, and all that jazz. I initially started triggering the AI but I soon realized how time consuming creating a custum AI using triggers (that would in a sense mirror how the wc3 AI works). HMMmmm...