HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Melee AI Scripts in Custom Maps

03-15-2004, 10:05 AM#1
Negative Creep
Hi.
Is there any way of letting the computer player execute the default melee ai scripts in a custom map? Even with town hall and peons given, gold mine nearby and starting resources set, he won't do a thing.
03-15-2004, 10:55 AM#2
Crossblade_XX
As long as you dont mess with the map initialization triggers, the melee ai scripts should run.

if you have messed with them, load up a new map and copy initialization folder into your map.

if you want to be selective, use the trigger

event - map init.
action - melee game-run melee ai scripts (for computer players)
03-15-2004, 11:15 AM#3
Negative Creep
Quote:
Originally Posted by Crossblade_XX
As long as you dont mess with the map initialization triggers, the melee ai scripts should run.

if you have messed with them, load up a new map and copy initialization folder into your map.

if you want to be selective, use the trigger

event - map init.
action - melee game-run melee ai scripts (for computer players)
I just deleted some actions from the Melee Initialization trigger. Now there are only these actions left:
Melee Game - Create Human starting units for Player 5 (Yellow) at (Player 5 (Yellow) start location) (Include Heroes)
Melee Game - Set starting resources (for all players)
Melee Game - Run melee AI scripts (for computer players)


Player 5 has a gold mine located near to his start location. The units appear, but they don't do anything.
03-15-2004, 11:29 AM#4
Crossblade_XX
gotta be a stupid question but i have to ask.

are you setting player 5 to a computer player, either in the player options in the editor or in the game launch screen?

id double and triple check that, and make sure once again that your Event for those triggers is map initialization.

if that still doesnt work, there are known bugs with the event map init so try modifying the event to time elapsed equal to 1 second and see if that helps.
03-15-2004, 03:05 PM#5
Negative Creep
Quote:
Originally Posted by Crossblade_XX
gotta be a stupid question but i have to ask.

are you setting player 5 to a computer player, either in the player options in the editor or in the game launch screen?

id double and triple check that, and make sure once again that your Event for those triggers is map initialization.

if that still doesnt work, there are known bugs with the event map init so try modifying the event to time elapsed equal to 1 second and see if that helps.
Player 5 definitely is computer controlled (except the Player Properties are ignored when launching the map via ctrl+f9). If the Map Init event doesn't work, why are the other actions executed (as the units do appear)?

-- edit:
Okay, sorry - it was the Player Properties. When launching the map in Frozen Throne (Custom Game) it works. Thx again :)