Staredit Network

Staredit Network -> UMS Assistance -> HELP! AI SCRIPT
Report, edit, etc...Posted by Sandwichesaretasty on 2006-07-24 at 15:24:42
Hi, I know you're all probably thinking this is a stupid question, but ALL I really am looking to do is, to have the computer work as though it were MELEE settings. I can't seem to be able to just, put down a Command center, and a few SCV's for them, and have them build as if it were Melee. So basically, all I need help with is understanding in making the triggers to get them to do this.

I've tried doing what it says on the Map Editor help, by putting "Always" and then "Run AI Script at Location" and making the location ANYWHERE, and the script what they are (I've tried EXPANSION ZERG CUSTOM MAPS, EXPANSION ZERG CAMPAIGN DIFFICULT)... and they never work. Sometimes I've gotten the units to gather some resources, even have their 4 starting units ATTACK mine when they come at them, but they never build up, never do anything. I'm guessing it's more complex than I think it is, or maybe it's simple and i'm retarded, anyways, please help! thank you.
Report, edit, etc...Posted by DuRo on 2006-07-24 at 15:31:11
the only way i would know, is to make the map a melee map, but remove some units for a player to make it look like a UMS

if there's an AI script for it, then make sure you set it for player(X) only...

sry cry.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-07-24 at 15:40:57
The most common error associated with this is placing the starting units as a different race than the race they are assigned. If so, they will only mine. Make sure the computer player actually is Zerg when you have them do a Zerg AI script.
Report, edit, etc...Posted by -bilal92- on 2006-07-24 at 15:55:15
Try a seperate location. I don't know, say maybe 'Whole Map' this might work, im not sure though. If your doing everything else right then it should work.
Report, edit, etc...Posted by StarKraft on 2006-07-24 at 16:16:38
Ever tried Zerg campaign insane, terran campaign insane and for protoss protoss campaign insane at location 'base location of the current player'.

Make a location as big as the base should be for each computer player. This worked for me and they do get minerals and build buildings and units.
Report, edit, etc...Posted by Sandwichesaretasty on 2006-07-24 at 16:45:56
So, you suggest building an "AREA" to put under location instead of using ANYWHERE? and No I haven't tried insane, but difficult they did, and I always assign the correct race... HOWEVER, once I actually assigned TERRAN to a TERRAN thing, which was Player 1, and I assigned player 1 a script, but for some reason I started it up, and player 3... a protoss group followed the AI script for it... it was messed up.

ADDITION:
Okay okay, I did what you said. And I got things to move, and things to build but the odd ting is, they aren't following it... some are giong to other bases and what not... like the way they are SET in the thing (Blue player TERRAN) is player 2 on the MAP EDITING, but it's not following through when I load the game? It's like... they aren't staying the same PLAYER NUMBER they were when I edited it. Me and my friend are player 7 and 8 on map settings, is that what messes it up possibly? Should we always be 1 and 2?
Report, edit, etc...Posted by TheHappyHobo on 2006-07-24 at 17:16:58
QUOTE(Sandwichesaretasty @ Jul 24 2006, 03:45 PM)
Okay okay, I did what you said. And I got things to move, and things to build but the odd ting is, they aren't following it... some are giong to other bases and what not... like the way they are SET in the thing (Blue player TERRAN) is player 2 on the MAP EDITING, but it's not following through when I load the game? It's like... they aren't staying the same PLAYER NUMBER they were when I edited it. Me and my friend are player 7 and 8 on map settings, is that what messes it up possibly? Should we always be 1 and 2?
[right][snapback]530525[/snapback][/right]


I assume what you mean is that when you open the map, you and your friend are players 7 and 8 (white and yellow) and players 1 and 2 (red and blue) are the computers, but when you play, the computers are different colors and so are you and your friend.
This is a common problem, and the solution would be to go under the "Scenario" drop down menu and select "Forces...". Once there, uncheck the boxes marked "Random Start Location." This should solve your problem.
Report, edit, etc...Posted by Sandwichesaretasty on 2006-07-24 at 17:17:41
Okay. I added "LOCATIONS" near their resources, so they would build, and now they do, and they attack... but not very well. Their setting is at EXPANSION ZERG CAMPAIGN DIFFICULT (I would think this would make them hard, seeing as though INSANE is the last set after it...) however, the bases they build aren't that complex, and they attack in small tiny groups rarely, some didn't even attack... about 12-15 mins into the game... Should I use a different AI setting? Don't use the Campaign setting? or use INSANE instead? If difficult is that stupid and easy... I'm not really afraid of insane.............
Report, edit, etc...Posted by TheHappyHobo on 2006-07-24 at 17:24:12
QUOTE(Sandwichesaretasty @ Jul 24 2006, 04:17 PM)
Should I use a different AI setting? Don't use the Campaign setting? or use INSANE instead? If difficult is that stupid and easy... I'm not really afraid of insane.............
[right][snapback]530548[/snapback][/right]


I think there's a tutorial explaining what insane is like, lemme find it for you...
Ah!
Check here.
If you want it to be difficult, insane probably is the best way to go.
Report, edit, etc...Posted by StarKraft on 2006-07-24 at 18:29:18
QUOTE(TheHappyHobo @ Jul 24 2006, 10:23 PM)
I think there's a tutorial explaining what insane is like, lemme find it for you...
Ah!
Check here.
If you want it to be difficult, insane probably is the best way to go.
[right][snapback]530553[/snapback][/right]


For sure it is the best way to go. You can get pretty cool results with this ai setting w00t.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-07-24 at 21:53:23
Turning off random start locations and having the correct race will make it work right, most likely. From my experience, the location you use doesn't matter too much, even though I've always had a location over the base where I run the AI script.
Report, edit, etc...Posted by Desperado on 2006-07-24 at 22:00:16
Looking at Blizzard's Endurance map... the size of the location shouldn't matter.
Report, edit, etc...Posted by L-inspecteur_Chocolat on 2006-07-25 at 00:50:39
The insane computers are horrible cheaters. I suggest not using them. Try a combination of Custom, and a give unit/resource sharing system to control what the computer makes and when.
Report, edit, etc...Posted by Mp)EnderDouble on 2006-07-25 at 01:58:54
I have made ums maps where the computer builds just like in melee. There are many AI scripts, make sure you pick the right one.

CAMPAIGN = the computer will build, but will never attack an enemy base, these are SUPPOSED to lose.
The Normal AI script is what is usually set on a melee map when you start. The computer will mine, build, and attack the enemy depending on the actions the player takes.

To set an AI script, first put down the computer player. If it it terran, make sure you use the terran AI scripts, and zerg for zerg, ect...

Place a location over the computers command center.

Tell the ai to run at that location.

If you want to make the computer a random race.

Make a trigger that detects what units it has
For instance:

Conditions:
Computer Owns 1 Hatchery
Actions:
Set AI Script Zerg Normal

ADDITION:
For more info on AI scripts, go to this tutorial, it explains a whole lot and its easy to understand. AI SCRIPT TUTORIAL

ADDITION:
If the player does not have a base, the computer will probably stop building/attacking, unless the AI is set on campaign.
Report, edit, etc...Posted by StarKraft on 2006-07-25 at 12:58:27
QUOTE(L-inspecteur_Chocolat @ Jul 25 2006, 05:50 AM)
The insane computers are horrible cheaters. I suggest not using them. Try a combination of Custom, and a give unit/resource sharing system to control what the computer makes and when.
[right][snapback]530802[/snapback][/right]


Have you ever seen an AI that doesn't cheat in a game? I mean just the computer always knowing where you are and practically having 'black sheep wall' on in all those strategy games is like cheating but well, as far as it isn't even hard as in Starcraft it doesn't matter. (I would always pick hardest AI for Starcraft imho).

If you want a badass hard lame cheating AI then go play Heroes of Might and Magic 5 (without the community AI fix) and you'll see how lame it can get with true cheating AI's.
Report, edit, etc...Posted by Richan on 2006-07-25 at 14:06:58
In my humble opinion, I think we're misleading him a bit. What you want is the AI Script which makes the computer act as if it was a melee map, right? Try the following:

- Create a location which only covers the principal building of the player (CC if Terran, Nexus if Protoss, Hatchery if Zerg).
- Make sure the computer has workers (4 is preferrable), some resources (let's say 50 minerals) and resources more or less near the building.
- Creat this trigger:

PLAYER:
- Player which you want the AI Script to run.

CONDITIONS:
- Always

ACTIONS:
- Execute AI Script '(Race) Expansion Custom Level' at 'Location'

- The race must be the same as the building's.
- Initiate your map with UMS...

...And it should work.

Probably the problems you had were related to the buildings your opponent had. Custom Level AI makes the computer build a base with only the building and a few workers, whereas the other AI's (Easy, Medium, Difficult, Insane) NEED the buildings to produce the units in order to attack you.

Hope I solved your problem.

See ya! wink.gif

Richan
Report, edit, etc...Posted by Mp)EnderDouble on 2006-07-26 at 08:27:12
QUOTE(Richan @ Jul 25 2006, 12:06 PM)
In my humble opinion, I think we're misleading him a bit. What you want is the AI Script which makes the computer act as if it was a melee map, right? Try the following:

- Create a location which only covers the principal building of the player (CC if Terran, Nexus if Protoss, Hatchery if Zerg).
- Make sure the computer has workers (4 is preferrable), some resources (let's say 50 minerals) and resources more or less near the building.
- Creat this trigger:

PLAYER:
- Player which you want the AI Script to run.

CONDITIONS:
- Always

ACTIONS:
- Execute AI Script '(Race) Expansion Custom Level' at 'Location'

- The race must be the same as the building's.
- Initiate your map with UMS...

...And it should work.

Probably the problems you had were related to the buildings your opponent had. Custom Level AI makes the computer build a base with only the building and a few workers, whereas the other AI's (Easy, Medium, Difficult, Insane) NEED the buildings to produce the units in order to attack you.

Hope I solved your problem.

See ya! wink.gif

Richan
[right][snapback]531135[/snapback][/right]


Thats exactly what i just told him -.-
Next Page (1)