Staredit Network

Staredit Network -> UMS Assistance -> Question
Report, edit, etc...Posted by PeaceMetroid on 2004-11-14 at 13:18:09
Pardon my stupidity here, if it is easy, but how does one make a map where units wander randomly? For example, take the Final Fantasy III map, at the end of the RPG list. The monsters and stuff will randomly wander with no means or destination. I would like to know how to do that, because I plan to do an RPG for Starcraft, but I don't know how. Once again, if it is simple, excuse my stupidity.
Report, edit, etc...Posted by Kow on 2004-11-14 at 13:33:19
AI Script At Location: Junkyard Dog (Units Roam Around)

You might need to preserve it...
Report, edit, etc...Posted by Staredit.Net Essence on 2004-11-14 at 13:46:28
No. I dont think you should preserve it. Preserving it would prolly make the map lag more. Plus theres no need. It will work fine without preserve.
Report, edit, etc...Posted by PeaceMetroid on 2004-11-14 at 13:56:52
Actually I probably would need to, if I were to make new units as old ones die, right?

Also, this might be stupid too, but how do I make it so that they randomly spawn inside a random spot of Location A.
Report, edit, etc...Posted by Kow on 2004-11-14 at 14:04:58
Only way is to center a location on say an obs and preserve, and everyso often or whatever the condition is, spawn the unit u want..
Or have several units in several locations, 1 unit per location.. or have separate units in 1 location ... idk
Report, edit, etc...Posted by Staredit.Net Essence on 2004-11-14 at 14:08:16
QUOTE
actually I probably would need to, if I were to make new units as old ones die, right?


If youre creating the units with triggers add the run ai script at the end of the trigger that creates the unit.

-Also, this might be stupid too, but how do I make it so that they randomly spawn inside a random spot of Location A.-

You have to use randomized switches. I think theres a tutorial in the tuturials database.

QUOTE
Only way is to center a location on say an obs and preserve, and everyso often or whatever the condition is, spawn the unit u want..


Wouldnt you have to move the unit back to the location every time.
Report, edit, etc...Posted by Kow on 2004-11-14 at 14:18:19
Why?
Report, edit, etc...Posted by PeaceMetroid on 2004-11-14 at 14:19:20
QUOTE(Gradius @ Nov 14 2004, 03:08 PM)
If youre creating the units with triggers add the run ai script at the end of the trigger that creates the unit.

-Also, this might be stupid too, but how do I make it so that they randomly spawn inside a random spot of Location A.-

You have to use randomized switches.  I think theres a tutorial in the tuturials database.
Wouldnt you have to move the unit back to the location every time.
[right][snapback]98680[/snapback][/right]


Alright, I'll look into it, thanks.
Report, edit, etc...Posted by .Coko[CK] on 2004-11-14 at 17:14:49
Just have a trigger like this

Computer Player
Conditions;
Computer Player suffers Exactly 1 death of SetYard
Actions;
Set all units owned by Current Player to JunkYardDog at 'Anywhere'(OR LOCATION)
Set Deaths for SetYard owned by Current Player to 0
Preserve Trigger

Therefore each it will set all units to JunkYard, at an location each time it is activated and close afterwards.
Report, edit, etc...Posted by PeaceMetroid on 2004-11-14 at 21:43:52
Hmmm...Ill check that out too Coko.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-11-15 at 00:02:02
That's a very good idea because if you just have it always preserve, they will just stutter around in circles and be all scewed up.
Next Page (1)