• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Default AI as editable ?

Status
Not open for further replies.
Level 29
Joined
Sep 26, 2009
Messages
2,595
Hard to say what you consider default ai.
All .ai files are stored in game files under /scripts folder. You will need some program to open them. For example CascViewer works for Refoged.

As far as I know, the melee AI for each race is called elf.ia, human.ai, orc.ai and undead.ai. Those are JASS scripts and there is no way to display them in AI editor due to all the custom logic each of them contains.

So what I believe could work for you is to:
  • export the .ai script from the game files
  • modify it using text editor or something better that highlights JASS syntax
  • import the .ai file into your map, set path of the imported script to same path as the original .ai script
    • alternatively, you would need to remove the 'Melee Game - Run melee AI scripts (for computer players)' line from you script and initialize each player's .ai separately via 'AI - Start melee AI script for some_player: script_name'
 
Level 28
Joined
Dec 3, 2020
Messages
970
You can extract the melee ai files of RoC and TfT from the mpq files with Ladik's MPQ Editor.
Note about editing them:
I have tried editing the orc ai for a custom melee map with functional custom ai but it wasn't really working as intended...
Things I changed:
  • Replaced burrows with pig farms
  • Replaced headhunters with forest trolls
  • Replaced wyverns with red drakes
  • Replaced kodo beasts with goblin shredders
  • Replaced shamans with orc warlocks
  • Replaced troll witch doctors with ogre magi
  • Made it not build the tauren totem and any tauren
  • Made it only train 2 heroes instead of 3 (through object editor -> removed tauren chieftain; and in ai script too)
  • Also replaced some other unit or added a goblin sappers? I'm unsure about this one
For example:
  • It never built a spirit lodge and idk why...
  • Sometimes it would build like 4 barracks in the early game before even upgrading their great hall to a stronghold

So after that I just moved on to a different project.
 
Status
Not open for further replies.
Top