Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Switch Randomization
Switch Randomization
Apr 26 2008, 3:36 pm
By: Impersonation  

Apr 26 2008, 3:36 pm Impersonation Post #1



I'm working on a map and it will be using randomized switches. I need to know how to figure out all the combinations of outcomes these switches will have. I think I need either three or four switches. What I would like is for someone to list the combinations please. :bleh:



Post has been edited 26 time(s), last time on Jun 12 2008, 11:40 am by Impersonation.



None.

Apr 26 2008, 3:39 pm Brontobyte Post #2



Three Switch Randomized Combinations

1-----2-----3
S-----S-----S--1
------------C--2
------C----S--3
------------C--4
C-----C----C--5
------------S--6
------S-----C--7
------------S--8

S=Set
C=Cleared (Not Set(Text Triggers))

Each switch can either be set or cleared. (excluding randomized, toggle ) So for each switch their are 2 outcomes. All you need to do is multiply the current outcomes by two to find out how many possible outcomes their are.

EX: 1 switch = 2
2 switches = 4
3 switches = 8
4 switches = 16
So on and so forth.



None.

Apr 26 2008, 4:38 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

3 switches, 8 Combinations:
000
001
010
011
100
101
110
111
0 = cleared, 1 = set
You can easily expand it to 4 switches by copying the 8 combinations above and add a 0's to one copy and add 1's to the other copy (=16 combinations)

But let me say this: YOU ARE LAZY!




Apr 26 2008, 6:37 pm rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

Number of combinations is 2^n, where n is the number of randomizations. Brontobyte's 2nd method is best (not the smallest, but we're talking like 3 more triggers).

Of course, the best way is to learn how binary works, and do it yourself.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 26 2008, 8:37 pm Falkoner Post #5



It's really not too difficult though, especially with three switches, maybe if you have like 7 or 8...



None.

Apr 27 2008, 4:35 am Brontobyte Post #6



This is all pretty much what I stated in my above post... :-_-:



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: NudeRaider, Ultraviolet