Staredit Network

Staredit Network -> UMS Assistance -> A NEW "Wandering Units" Question
Report, edit, etc...Posted by Drakiel on 2004-09-26 at 20:16:19
Common Question:
How do I Junkyard Dog AI Human Players?

Situation:
I'm making an RPG with 6 human players (when bored of working on other maps). I have one neutral comp (non p12, so I can give him actions/triggers), and one enemy comp (monsters/etc).

Player buys Militia, have Militia wander around randomly within the city walls.
Good and Bad HUman Players, 3players each side, each have their own city. I can't designate 1comp per good/bad city, since only 8 players are allowed.

I don't know how trigger actions for comp 9, 10, 11+ work, if that's even possible.


(unless you can tell me a way to make P9+ can be triggered. I DLed the trigger script thingie and loaded it, but didn't understand it).

Assuming Only Players 1-8
Is there any way to Junk Yard Dog militia given for each player?

Here are my ideas, but won't work in a sense:

Create 3 militia men for neutral comp
Run AI Script junk yard dog
Give 3 militia men to player 1 human
-----The human player men will wander junk yard style, BUT the player can just stop it at any time.

I want it to be constant, like the "magnets" you see in bounds. (Order/move)

Also just have designated locations militia patrol around. Set switches signifying whether men have hit that location, if not constantly force him to order/move there - until switch is set - then set next destination.
^
|
Nice, but it's not random wander through the city.

ANY ADVICE/INPUT WOULD BE SUFFICIENT!
Thanks

-Drakiel
Report, edit, etc...Posted by BeeR_KeG on 2004-09-26 at 20:19:51
You write too much for just one question. It would be better to get to the point.

Use the Patrol order to anywhere for the Human units you want to act as junkyard dog.
In Starforge you can pretty much make a trigger for 255 players, you just put PX(X is player number).
Report, edit, etc...Posted by CheeZe on 2004-09-26 at 20:21:11
I think he wants to stop a human player from ordering a unit while it's running through the AI script. if so, then just give the unit back and forth from one player to another, the human can't select it while the unit is still being ordered and stuff tongue.gif
Report, edit, etc...Posted by Drakiel on 2004-09-26 at 20:26:00
QUOTE(BeeR_KeG[eM)
,Sep 27 2004, 12:19 AM]You write too much for just one question. It would be better to get to the point.

Use the Patrol order to anywhere for the Human units you want to act as junkyard dog.
In Starforge you can pretty much make a trigger for 255 players, you just put PX(X is player number).
[right][snapback]79391[/snapback][/right]


Yes and no?
I havn't tried that yet, sounds like an awesome solution.
However, isn't "Anywhere" designated the CENTER of the MAP?
(when units are created anywhere, they create in center, etc)
(center of map and all areas on the map, that is)
So if you patrol to anywhere, they will try to get to the center?

If not, AWESOME, just wanted to confirm that.
-Drakiel
Report, edit, etc...Posted by BeeR_KeG on 2004-09-26 at 20:31:25
I don't remember my units in the map I was making going to the center of a location. I never used Anywhere before.

If the units do go to the center if you put anywhere then make a location as big as you want and use that.
If you use the location I guarantee it will work.
Report, edit, etc...Posted by Drakiel on 2004-09-26 at 20:36:09
QUOTE(BeeR_KeG[eM] @ Sep 27 2004, 12:31 AM)
I don't remember my units in the map I was making going to the center of a location. I never used Anywhere before.

If the units do go to the center if you put anywhere then make a location as big as you want and use that.
If you use the location I guarantee it will work.
[right][snapback]79408[/snapback][/right]

Cool, thanks a bunch man!
I'll try that later tonight and keep this thing posted.
If it works, I won't post, if it doesn't I will.
Thanks again
-Drakiel
Report, edit, etc...Posted by LegacyWeapon on 2004-09-26 at 20:37:28
Anywhere is the whole map which when you patrol to it, will make you patrol to the center.
Give it back and forth to p12 or something so it retains its color.

And also any size location will make the unit goto the center of the location with patrol...
Report, edit, etc...Posted by FaZ- on 2004-09-26 at 22:06:59
If its a small area you could simply put 8 locations around the edges and corners. Every 1000 milliseconds or so you could randomize and order him to one of those locations. Its not quite junkyard but it should suffice.
Report, edit, etc...Posted by Revelade on 2004-09-27 at 02:07:53
OR you could have the player patrol from a kakaru to a another junkyarded air unit... Or you could have 5 junkyarded air units and patrol each unit to go somewhere depending on triggers...

It's all preference.
Report, edit, etc...Posted by IsolatedPurity on 2004-09-27 at 14:37:04
There's a big problem, I believe, with having the units switch back and forth between the player and p12... the units would be worthless for defensive purposes. P12 units don't attack.

QUOTE(FaZ)
If its a small area you could simply put 8 locations around the edges and corners. Every 1000 milliseconds or so you could randomize and order him to one of those locations. Its not quite junkyard but it should suffice.

I think you should go with his idea. It almost sounds like the simplest to do. Except... I'm thinking, instead of move, have it patrol.

Drakiel, these militia are like pure defensive men only, right? Sounds like a pretty sweet concept. Instead of just your regular old defensive cannons and what not, have men run around your city smile.gif Nice.
Next Page (1)