AI editor - changing worker unit

Status
Not open for further replies.
Level 2
Joined
Dec 19, 2014
Messages
8
AI Editor question:

How can I change default Gold Worker unit (Peasant) to be custom unit (High Elf Engineer)?
I imported the custom unit to AI editor, but I cant change Gold & Lumber Worker.

:goblin_cry:
 
I'm not sure I understand the question but,

You could do that, however at the start of the game you wouldn't have any units unless you made another trigger to create the units you wanted.

If you are going to use standard melee AI then just you could just edit the peasant unit with whatever changes the custom one had.
 
Still I cant change in AI editor/Building:
-Base Building
-Mine Building
-Gold Worker
-Lumber Worker

Drop down menus beside these are blured and so i cant change them.
 
I have one more question:
wich trigger should I use to make Game run my (custom) AI?
Should I erase this trigger:
Melee Game - Run AI
 
Yes, remove that action.

Export your ai in ai editor as a script (.ai), and import it in import manager. Then, call following function for all players in initialization trigger:
  • AI - Start melee AI script for (PlayerN): X.ai
For your own race, X is war3mapImported/<filename>.
For default races, X is human/orc/undead/nightelf.
 
Status
Not open for further replies.
Back
Top