Staredit Network

Staredit Network -> UMS Assistance -> Ai Script Help
Report, edit, etc...Posted by fritfrat(U) on 2006-01-23 at 19:09:56
Hello! Currently, I am working on an all-purpose recruitment map, and one of the options is of course a melee game. I added an option to create the bases and peons based on what side you bring a drone/scv/probe to, and the ability to place up to a total of two computers on these teams. These triggers actually work quite well.

However, the computers Ai scripts aren't working; they simply mine minerals and do not do anything with them, including not even building more peons or town halls. I have tried the following triggers.. all the races and trigger combinations are acting the same.

Move 4x3 location onto base, run Expansion Difficulty Insane at this location.
Move 4x3 location onto base, run Expansion Custom Difficulty at this location.
Run Expansion Difficulty Insane for current player at Anywhere.
Run Expansion Custom Difficulty for current player at Anywhere.

All these tests were 1 computer against another computer with me observing; I am positive they were enemies, as the map's ending triggers were messing up until I finally realized they were allied smile.gif

I move the 4x3 location (3x4? the size of a base) because I made it so the bases go to a random starting location, therefore not allowing me to pre-place the location. They seem to do the same mining-only precedure whether the bases are created 10 seconds after the game started or minutes; however, starting it right as the game starts is not an option. Also, the peons begin mining the second they and their bases are made.


Any help on why these computers are mining minerals and not doing anything with them would be greatly appreciated. I tried to be as specific as I could about the map's details, but if you have any further questions I will provide. Thanks for any help smile.gif
Report, edit, etc...Posted by n0b0dy- on 2006-01-23 at 19:15:42
You know... you can make your own aI scripts if you have to...
Report, edit, etc...Posted by fritfrat(U) on 2006-01-23 at 19:31:16
They are melee scripts.. I would probably want to try to get the game's built-in melee scripts working rather than try to make something myself, seeing that I am not that great at melee and all.
Report, edit, etc...Posted by PCFredZ on 2006-01-23 at 19:57:05
AI scripts are just like the United States government: they spend without regard to actual money amount in possession, they're as reliable as a GPS system in the Stone Age, and overall they just don't do what they're supposed to.
Report, edit, etc...Posted by fritfrat(U) on 2006-01-23 at 20:01:37
Where would I find an AI script editor? I had not even realized I could make my own scripts..

In reality, what I would be interested in is looking at the scripts from a very, very old recruitment map I made which worked and comparing them to the ones in my new one. The triggers are the same, but I am curious if the scripts themselves are actually the same.. I really have no experience whatsoever in actually using AI scripts.
Report, edit, etc...Posted by cop29 on 2006-01-23 at 20:07:41
The locations u center on each computer comand center, make the location 1x1. Also, do NOT preserve those triggers. Also, try starting the computer player with about 5000 Ore and Gas.
~Nick
Report, edit, etc...Posted by Kenoli on 2006-01-23 at 20:27:57
From the StarEdit help file
QUOTE
With the exception of Area Town scripts, only one Campaign AI script should be run for each player.  Each Campaign AI Script is associated with a Location. This Location must be centered near a source of Minerals and a source of Vespene Gas.

Campaign AI scripts are designed to start with an advantage over the player in initial resources and units. They will attempt to wear down players over time. They do not expand aggressively and perform best if supplied with enough starting resources to build through the technology tree (roughly 6000 each of gas and minerals).

Custom AI scripts are designed to start with the same resources as other players. They expand to gain new resources and attack players aggressively. Only one Custom AI script should be run for each player. They should not be used with Campaign AI scripts.
Make sure that you have only one AI script running for the computer player.
Don't use a preserved trigger, that will keep restarting the script.

If you want the computer to act like a melee player, you'll want to use the "Custom" AI script, not any of the "Campaign" AI scripts.

If you want to use a Campaign script anyway, make sure to give the computer ample starting resrouces and possibly some extra starting units. (Otherwise he will perform extremely poorly)
Next Page (1)