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.
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
Please log in to shout.


Members Online: Sie_Sayoka