• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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:
 
Level 11
Joined
Jun 2, 2013
Messages
613
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.
 
Level 2
Joined
Dec 19, 2014
Messages
8
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.
 
Level 2
Joined
Dec 19, 2014
Messages
8
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
 
Level 10
Joined
Jun 6, 2007
Messages
392
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.
Top