Staredit Network

Staredit Network -> UMS Assistance -> Random Unit Trigger
Report, edit, etc...Posted by Razell on 2004-10-23 at 16:15:52
Does anyone know how to do a Random Unit Trigger cause I have no clue how to do one, if you know how please tell me.

-Razell
Report, edit, etc...Posted by TheOddAngel on 2004-10-23 at 16:40:08
What do you mean?

Randomized Switches?
Report, edit, etc...Posted by Razell on 2004-10-23 at 16:41:47
I mean to create random units at a location.
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 16:46:16
Randomize 6 switches; then use the binary combonations to create a unit. Bolt_Head had a great tutorial on this somewhere.
Report, edit, etc...Posted by Razell on 2004-10-23 at 16:54:07
Wow that went over my head.
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 16:57:15
Errrgh.

Trigger
Conditions:
¤ deaths is 1 (tiem to start random unit making)
Actions:
¤ Randomize Switch 1
¤ Randomize Switch 2
¤ Randomize Switch 3
¤ Randomize Switch 4
¤ Randomize Switch 5
¤ Randomize Switch 6
¤ set deaths to 2


Trigger
Conditions:
¤ Deaths is 2
¤ Switch 1 is clear
¤ Switch 2 is clear
¤ Switch 3 is clear
¤ Switch 4 is clear
¤ Switch 5 is clear
¤ Switch 6 is clear
Actions:
¤ Make marine
¤ set deaths to 1


Trigger
Conditions:
¤ Deaths is 2
¤ Switch 1 is clear
¤ Switch 2 is clear
¤ Switch 3 is clear
¤ Switch 4 is clear
¤ Switch 5 is clear
¤ Switch 6 is set
Actions:
¤ Make firebat
¤ set deaths to 1


Trigger
Conditions:
¤ Deaths is 2
¤ Switch 1 is clear
¤ Switch 2 is clear
¤ Switch 3 is clear
¤ Switch 4 is clear
¤ Switch 5 is set
¤ Switch 6 is clear
Actions:
¤ Make ghost
¤ set deaths to 1


... and so on for all combinations of set/cleared switches. Using 6 switches give you 2^6 = 64 options. Use 7 switches and you get 128 choices.-
Report, edit, etc...Posted by Razell on 2004-10-23 at 16:59:18
I only need the random units for 13 units maybe I shoulda said that earlier that is if that changes nething...I'm sorry I don't normally ask for help but this trigger makes no sense to me at all.
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 17:00:43
If you only need 13 random units andomize 4 switches and have triggers for those.

God here's a card dealer.
Report, edit, etc...Posted by Razell on 2004-10-23 at 17:15:01
Ok I think I got it but I want the units to go between 4 players with one unit that only goes to one player. My map is Spades Defense and I got what you said in your post but I don't know to trigger it to start.
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 17:19:55
Wait, so in your map you have a group of units, one of which always goes to a cretain player, and the others are randomized?
Report, edit, etc...Posted by Razell on 2004-10-23 at 17:21:29
I want it so the 13 units are spread out evenly 3 to each of the 4 players and 1 unit that goes to one random player.
Report, edit, etc...Posted by RexyRex on 2004-10-23 at 17:23:36
Thats an entirly different story.
Now you need death counters for the players, then do the switch trick.
Report, edit, etc...Posted by Razell on 2004-10-23 at 17:24:39
Omg I hate myself I'm sorry for not explaining fully earlier sad.gif
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 17:27:36
Actually all you need is to run the randomazation trigger to do this:

-Randomize
-Pick unit from random and give it to player 1
-Randommize
-Pick unit from random and give it to player 2

Essentially do what the card dealer does except trigger it so that it stops when 1 unit left and random gives out that unit. I'm a little too tred to write out triggers in full; someone else can do that.
Report, edit, etc...Posted by Razell on 2004-10-23 at 17:37:23
Thanks for all the help I'll figure it out I hope...



ADDITION: DT do I use those same triggers you posted earlier or do I need new ones? And do I need locations at all. Also what does the death counter do?
Report, edit, etc...Posted by DT_Battlekruser on 2004-10-23 at 18:09:36
The death counter functions as a multi-position switch. THe same randomazation triggers should work.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-10-23 at 21:30:14
QUOTE(DT_Battlekruser @ Oct 23 2004, 03:46 PM)
Randomize 6 switches; then use the binary combonations to create a unit.  Bolt_Head had a great tutorial on this somewhere.
[right][snapback]88719[/snapback][/right]


Funny you mentioned it but never spent the minute to find it. Well here it is
http://www.staredit.net/index.php?showtopic=2851
Report, edit, etc...Posted by Razell on 2004-10-26 at 21:23:26
Oh Thanks Bolt_Head that was a real help I think I can implement that into my map I'm working on once again thanks for the assistance
Next Page (1)