Staredit Network

Staredit Network -> UMS Assistance -> Random Unit
Report, edit, etc...Posted by Prophet on 2004-06-12 at 18:10:17
Is there a trigger that allows you to create a random unit when you bring 4 civs to specific spot. I got the conditions, but i need the action trigger. If is possible please post the correct trigger or how to accomplish this.
Report, edit, etc...Posted by Yoshi da Sniper on 2004-06-12 at 18:40:07
What are the chances of getting a speicifc unit?
Report, edit, etc...Posted by Clokr_ on 2004-06-12 at 18:41:55
Switches. Is the only thing that can be random.
Report, edit, etc...Posted by Prophet on 2004-06-12 at 19:01:04
Ok but what if you are using switches for other things. It could activate a different trigger by accident, correct?
Report, edit, etc...Posted by Mini Moose 2707 on 2004-06-12 at 19:03:17
That's why you have 255 of them. tongue.gif

» To Mapping Assistance .
Report, edit, etc...Posted by Prophet on 2004-06-12 at 19:08:14
You have 255 but when you activate the switch couldnt it activate a switch that didn't give out units? Is there a way to make is only activate one of the switches that deals with the units?
Report, edit, etc...Posted by Vindexus on 2004-06-12 at 19:33:27
At the beginning of the game, randomize the switches you will be using for randomness. Make sure you are only using these switches for randomizing. The amount of randomizing switches you have, the more options there will be.

Correct me if i'm wrong
1 Switch = 2 Options
2 Switches = 4 Options
3 Switches = 8 Options
4 Switches = 16 Options
5 Switches = 32 Options
etc. etc.

Now for your trigger use these conditions

Conditions
- Current Player brings at least 4 civilians to "! Buy Rnd Hero"
- Random Switch 1 is cleared
- Random Switch 2 is cleared

Actions
- Create 1 Marine at "create hero"
- Randomize Random Switch 1
- Randomize Random Switch 2
- Preserve Trigger

Example of second trigger

Conditions
- Current Player brings at least 4 civilians to "! Buy Rnd Hero"
- Random Switch 1 is set
- Random Switch 2 is cleared

Actions
- Create 1 Zealot at "create hero"
- Randomize Random Switch 1
- Randomize Random Switch 2
- Preserve Trigger

You would have to copy that for each random hero you would want. Like if both switches were set.
Report, edit, etc...Posted by KckKryptonite on 2004-06-12 at 19:38:43
QUOTE(Clokr_ @ Jun 12 2004, 05:41 PM)
Switches. Is the only thing that can be random.

You could also use a roaming unit with locations.
Report, edit, etc...Posted by Locke on 2004-06-12 at 19:41:05
Whats with all the Japornime sig's. I WANT ONE!
Report, edit, etc...Posted by Staredit.Net Essence on 2004-06-12 at 19:49:06
I havent tested this yet so it probably doesnt work but go to starforge and make your trigger in there and when it asks you what unit you want to create put in "any unit".
Report, edit, etc...Posted by Clokr_ on 2004-06-12 at 20:21:36
That creates 1 unit of each type -.-"
Report, edit, etc...Posted by @:@ on 2004-06-12 at 20:55:47
QUOTE(Vindexus @ Jun 12 2004, 06:33 PM)
Correct me if i'm wrong
1 Switch = 2 Options
2 Switches = 4 Options
3 Switches = 8 Options
4 Switches = 16 Options
5 Switches = 32 Options
etc. etc.

Ok...


1 Switch = 2 Options
2 Switches = 4 Options
3 Switches = 9 Options
4 Switches = 16 Options
5 Switches = 25 Options
6 Switches = 36 Options
etc etc.

Follow the pattern, take how many switches you are going to use and square it to get how many options. that is --> ²
Report, edit, etc...Posted by DT_Battlekruser on 2004-06-12 at 23:27:26
Tsk Tsk Tsk.

Switches dont go as the square of the number. Those who understande this quuote will understand what im going to say.

QUOTE
"There are 10 people in the world.
Those who understand binary and those who don't."


Create a binary number using switches and say if switch this... etc then makje this unit. It takes usually between 33 and 129 triggers so have fun.

I made a scenario that deals cards (52 units moved randomly) I was making a card game, but I gave up as nobody knows it and there was too much to do. But it still deals your cards fine.

For the mathematically brain dead, (which Vindexus obviously isn't) heres the numnber of binary numbers swithces create:

2x where x is the number of siwtches. So:

1 switch = 2 numbers
2 switches = 4 numbers
3 switches = 8 numbers
4 switches = 16 numbers
5 switches = 32 numbers
6 switches = 64 numbers
7 switches = 128 numbers
Report, edit, etc...Posted by KckKryptonite on 2004-06-13 at 05:15:46
Yes, Vindexus had it right the first time I believe... man, I wish I could spell as good as you.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-06-13 at 05:29:18
QUOTE(@:@ @ Jun 12 2004, 07:55 PM)

Ok...


1 Switch = 2 Options
2 Switches = 4 Options
3 Switches = 9 Options
4 Switches = 16 Options
5 Switches = 25 Options
6 Switches = 36 Options
etc etc.

Follow the pattern, take how many switches you are going to use and square it to get how many options.  that is -->  ²

Swap you dope. It just doubles every time you add a switch.
Report, edit, etc...Posted by Clokr_ on 2004-06-13 at 07:18:22
If you want to know why it doubles, it is because when you add a switch you have all the old combinations + SET and all the old combinatios + CLEAR, so it is the double happy.gif
Report, edit, etc...Posted by EzDay281 on 2004-06-13 at 07:25:28
My God this is sad... a discussion about the number of additional options switches add...
Report, edit, etc...Posted by Clokr_ on 2004-06-13 at 07:38:20
Maths rocks! tongue.gif
Report, edit, etc...Posted by Mini Moose 2707 on 2004-06-13 at 09:00:41
Okay, I'm going to make this easy to see and list all possibilities for a number of switches so you can see how this works.
1 = Switch Set, 2 = Switch Cleared

One Switch.
0, 1

Two Switches..
00, 01, 10, 11

Three Switches...
000, 001, 010, 011
100, 110, 111, 101

Four Switches....
0000, 0001, 0010, 0011
0100, 0110, 0111, 0101
1000, 1001, 1010, 1011
1100, 1110, 1111, 1101

Five Switches.....
00000, 00001, 00010, 00011
00100, 00110, 00111, 00101
01000, 01001, 01010, 01011
01100, 01110, 01111, 01101
10000, 10001, 10010, 10011
10100, 10110, 10111, 10101
11000, 11001, 11010, 11011
11100, 11110, 11111, 11101

If you didn't notice I started copy/pasting after three. Just pasted them twice and add a "0" at the start to half of them, and a "1" at the start of the other half. You can see the amount doubling each time. Using that method you could spell out all possibilities of 256 Switches, but that would take a long time. tongue.gif
Report, edit, etc...Posted by dashrike on 2004-06-13 at 10:54:39
The basic formula is 2^[the number of switches]. It will always be an even number.

I believe we had a discussion with this earlier. *goes to look for other switch thread*
Report, edit, etc...Posted by .Coko[CK] on 2004-06-13 at 13:07:52
QUOTE(DT_Battlekruser @ Jun 13 2004, 04:27 AM)
Tsk Tsk Tsk.

Switches dont go as the square of the number.  Those who understande this quuote will understand what im going to say.

QUOTE

"There are 10 people in the world.
Those who understand binary and those who don't."


Create a binary number using switches and say if switch this... etc then makje this unit. It takes usually between 33 and 129 triggers so have fun.

I made a scenario that deals cards (52 units moved randomly) I was making a card game, but I gave up as nobody knows it and there was too much to do. But it still deals your cards fine.

For the mathematically brain dead, (which Vindexus obviously isn't) heres the numnber of binary numbers swithces create:

2x where x is the number of siwtches. So:

1 switch = 2 numbers
2 switches = 4 numbers
3 switches = 8 numbers
4 switches = 16 numbers
5 switches = 32 numbers
6 switches = 64 numbers
7 switches = 128 numbers

Lets see, there are 10 which equals 2 in binary, very clever.
Report, edit, etc...Posted by dashrike on 2004-06-13 at 13:14:13
Bonary is fun. biggrin.gif

Edit: *Binary... stupid.gif
Report, edit, etc...Posted by .Coko[CK] on 2004-06-13 at 13:18:01
You are indeed with Stupid.
http://nickciske.com/tools/binary.php
OH YEAH!!!
Report, edit, etc...Posted by Xeno on 2004-06-14 at 00:52:11
QUOTE(dashrike @ Jun 13 2004, 12:14 PM)
Bonary is fun. biggrin.gif

laugh.gif laugh.gif laugh.gif

Got a Boner for Binary, huh?
Report, edit, etc...Posted by flipmonkey on 2004-06-14 at 11:08:09
what is this for
Next Page (1)