HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bear with a newbie (Question)

02-01-2003, 11:13 PM#1
Guest
Alright, I'm sure this has been asked before, but I've checked numerous threads and read the FAQ several times. I can make AI through triggers okay, but here's my question: Where in the map is what AI scripts it contains defined? They're obviously not separate files entirely, since maps can contain AI scripts and be sent only as the maps. I've gone through the editor and checked every corner, but found nothing.

I'd really really appreciate an answer to this.
02-01-2003, 11:40 PM#2
Guest
Ok, I don't know exactly what your asking but, Do you mean where in the map are the scripts located? If that is what your asking then you here's the answer to that to the best of my knowledge the Blizzard Ai scripts at least are located in War3.mpq to look at them you will need winmpq/other mpq extractor...

Edit: Oh and you can add you own Ai to maps and the script will just be saved in the map file... but if you open the world editor after it will erase your ai script...
02-02-2003, 12:28 AM#3
Guest
Quote:
Originally posted by Chill_88
Ok, I don't know exactly what your asking but, Do you mean where in the map are the scripts located? If that is what your asking then you here's the answer to that to the best of my knowledge the Blizzard Ai scripts at least are located in War3.mpq to look at them you will need winmpq/other mpq extractor...

Edit: Oh and you can add you own Ai to maps and the script will just be saved in the map file... but if you open the world editor after it will erase your ai script...


Yeah... but how do I load a script into the map?
02-02-2003, 09:48 AM#4
PitzerMike
You need WinMPQ or another MPQ-Prog,

open your map with WinMPQ,
klick the Add-Button
choose your Ai-File
As Folder you need Scripts\
Then the script shlould be added to your map (Scripts\whatever.ai)

Extract Scripts from the war3.mpq (common.ai, human.ai, orc.ai) to see how they are written.
02-02-2003, 03:06 PM#5
spekkio
PitzerMike:

after adding the ai file, how can you initialize or run it?

if it would be using the trigger run ai, what should be in the line? does it contain the path too or just the ai file?
02-02-2003, 03:36 PM#6
PitzerMike
You will start it on Map initialization (or whatever you want) with the command:

Start Melee AI Script for Player XXX: yourname.ai (without the path)

but remember to add the script again everytime you save changes to your map in the editor, because saving it deletes all added files.
02-02-2003, 07:29 PM#7
Guest
Got it working fine. Now to improve the undead AI, the default file really sucks. :p