Staredit Network

Staredit Network -> UMS Assistance -> random units to be created
Report, edit, etc...Posted by VizuaL on 2005-05-03 at 18:16:33
i want 6 random units to be made at 6 locations
between a marine,ghost,and firebat
i know switches, can u plz explain to me how i do this? helpsmilie.gif helpsmilie.gif helpsmilie.gif helpsmilie.gif helpsmilie.gif
Report, edit, etc...Posted by KaboomHahahein on 2005-05-03 at 18:19:07
You made so many topics...

Anyways here is a tutorial on how to make things random.
http://www.staredit.net/index.php?tutorial=61

ADDITION:
Try looking in the tutorials before asking a question.
Report, edit, etc...Posted by VizuaL on 2005-05-03 at 18:36:12
lol i know, but u guys are really teaching me stuff. biggrin.gif ty

ADDITION:
tutorial is puzzling, like randomizing a switch, can u explain in a diffway?
Report, edit, etc...Posted by LegacyWeapon on 2005-05-03 at 18:49:55
There are three different ways listed in that tutorial.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-05-03 at 19:01:30
WOW That Tutorial Really Makes Me Wanna Add Random Unit Spawn To My Maps!!!
w00t
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-04 at 00:32:32
QUOTE(SiLeNt-SwiFt @ May 3 2005, 05:36 PM)
ADDITION:
tutorial is puzzling, like randomizing a switch, can u explain in a diffway?
[right][snapback]200391[/snapback][/right]


No i wrote it (the switch part anyways), I don't think i can explain it in a better way and hope for you to understand it.

The only "better" i could make it would be to explain how to do your situation specifically. And that is pointless.
Report, edit, etc...Posted by chuiu on 2005-05-04 at 09:19:43
Just want to clarify something. Do you want the six units to randomly be created in any of the locations or do you want the six units all to have their own location that they are created in and randomize that? Because one method requires about 8 triggers while the other requires about 38.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-04 at 10:24:44
The way i understand it each of the 6 locations would receave a random unit out of those 3.
Report, edit, etc...Posted by chuiu on 2005-05-04 at 11:37:59
Oh I misread his post. Let me try to explain randomization using switches a different way.

First, just think of a switch as a light switch. It can be ON (set) or OFF (cleared). By default it is OFF (cleared). Since Starcraft lets us randomize switches, we can randomize them then do actions based off the outcome of the randomization. So to randomize what unit you would use, would you use 1 switch? (Two possible outcomes, ON or OFF) Or 2 switches? (Four possibly outcomes, OFF OFF, OFF ON, ON OFF, or ON ON). It would have to be 2 switches, since you're using 3 units.

So let's take 3 switches right now so we can use 1 switch to control the randomization.

Switch 1 renamed to RandomOn
Switch 2 renamed to UnitSpawn1
Switch 3 renamed to UnitSpawn2

When you are ready to create the units, just turn on (set) RandomOn.

C:
RandomOn is set. (ON)
A:
Randomize UnitSpawn1.
Randomize UnitSpawn2.
Preserve trigger.

Now that they are randomized (they each can be ON or OFF right now) you would make the outcome triggers.

C:
UnitSpawn1 is cleared. (OFF)
UnitSpawn2 is cleared. (OFF)
A:
Create 1 'Unit1' at "Holding box" for Player.
Preserve trigger.

Then you would make OFF ON create Unit2, and ON OFF create unit 3. Then you would have a trigger that says something like:

C:
Player brings at least 6 any unit to "Holding Box".
A:
Clear RandomOn. (Turn it OFF)
Preserve trigger.

Then you would continue the same process but with the locations. And you would simply move 1 unit from the holding box to the locations.
Report, edit, etc...Posted by VizuaL on 2005-05-04 at 18:22:34
6 diff locations 6 random units
Report, edit, etc...Posted by sckor on 2005-05-05 at 04:36:21
this is getting confusing.

so each location spawns 6 different unit
or each location creats 1 random unit

or its neither.

Which one is it?
Report, edit, etc...Posted by VizuaL on 2005-05-05 at 13:00:16
1 location creates ONE random unit (6 locations)
Report, edit, etc...Posted by O)FaRTy1billion on 2005-05-05 at 17:54:29
so you have 6 units, and 6 locations and it just randomly puts any one of the 6 units at any one of the 6 locations? so you always end up with each different unit, so like one time it would have Unit1 at location3, Unit2 at location1, Unit3 at location5, Unit4 at location2, Unit5 at location6, Unit6 at location4?
Report, edit, etc...Posted by (U)Bolt_Head on 2005-05-05 at 18:07:55
Ok so you want to have one of those 3 units selected at random and to be created at each one of those 6 locations?

Ok So i'm joking. But there really are alot of differant ways you could randomize that.

Say for and example you wanted 2 of each unit one to be placed at each of the 6 locations at random. That would be quite differant than randomizing between the 3 units for each location.

Then you always have the question "do you want a unit at EACH location?" Or do you want it to vary depending on how many players you have in the game?

Do you want the units spawned at the same 6 locations every time? or 6 Random places among a larger preselected area.

I guess my point is exactly what is randomized changes the outcome alot. You want to randomly choose from those 3 units. You want to do it 6 times and place the units one at each of the 6 locations.
[/End Rant]

Anyways the triggers Chu listed will do what your intending on doing.
Next Page (1)