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.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: l)ark_ssj9kevin