Staredit Network

Staredit Network -> UMS Assistance -> Smart AI Spawning
Report, edit, etc...Posted by Ninebreaker on 2005-12-14 at 19:24:55
i need to know how to make a smart AI spawning system.

Like, wherever the enemy is attacking or moving towards they will spawn.

Limitations:
-Can have only 20 men at a time, cannot spawn with 20 on field
-There are 6 bases, each capturable (No X units spawning in Y base)
-Cannot spawn there if its overrun,but not captured,(spawns at the next checkpoint)
Report, edit, etc...Posted by Subrosian on 2005-12-14 at 19:31:33
And you are using an AI Script?

Be more descriptive, please.

QUOTE(Ninebreaker @ Dec 14 2005, 06:24 PM)
-Can have only 20 men at a time, cannot spawn with 20 on field
[right][snapback]378924[/snapback][/right]


What field? The entire map, or a large location?

ADDITION:
QUOTE(Ninebreaker @ Dec 14 2005, 06:24 PM)
-There are 6 bases, each capturable (No X units spawning in Y base)
[right][snapback]378924[/snapback][/right]


So there's going to be 1 type of unit for each base, and you don't want for example, to spawn marines at a ghost base?
Report, edit, etc...Posted by Ninebreaker on 2005-12-14 at 20:28:09
Not really...

2 computers Both fighting eachother

When 1 base is overrun by the other computer, but hasnt been captured, nothing should spawn there

Theres 20 men per side in a 64x64 map (amount may change)

No spawning in the enemy base (which should be easy)

AI Script... we shall see... ill have to learn a bit more about them to see which to use.

Its like the game 'tug of war' if u think about it but with more of a tactictal side to it as well as better terrain -.-
Report, edit, etc...Posted by HolySin on 2005-12-14 at 20:50:43
Well, if you a limit the amount of units to 20 in an area, then make it so that when you Bring at most 20 men to a location, you will create units. If it's the entire map, do something similar, but change it to command. To have it so that when a base is overran by the enemy but has not yet been capture and don't want it to spawn units, have it so that when the enemy player brings, let's say, 10 units, that units of that base will not be created. And to make a base capturable, have it so that when, let's say, 15 units, are brought to a location, the base is given to a person.
Report, edit, etc...Posted by Pauper on 2005-12-16 at 19:25:51
You can use locations like bring to here then create units here oreder units to here.
Report, edit, etc...Posted by Kumano on 2005-12-16 at 20:36:44
Well, to make them unable to spawn until they completely take over the place, you could simply have it normally set to a neutral player, whenever a player goes there they gain control of it. When they lose all their units there, it gets given back to the neutral player and then would get given to the other player since he has guys there. For the at most 20 units in a place, make the create unit have 'Command at most 19 Any Unit (or bring at most 19 to the map location, since you may have units somewhere that you wouldn't want to effect the max 20 units)' in it (20 will make it set off when they have 20 units since they still have at most 20 and they end up getting 21 each time).

The AI thing, I don't think it's really possible unless they are attacking by the 'Order' action. If using the order action then you would know where they are going so you could tell the others to go there.
Next Page (1)