Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Having quiz game problems!
Having quiz game problems!
Jul 17 2009, 5:59 am
By: m.0.n.3.y  

Jul 18 2009, 9:50 pm m.0.n.3.y Post #21



Well guys, let me try to put an end to this little debate.

At first yes, there was too much information, because all I wanted to know was why my text wasn't appearing to all the players. My randomize system was fine, however, it did need some minor adjustments, so in that aspect, it is good that we discussed it. And yes, I did ask for some help in explaining to me the powers randomization system to me, even though it has no effect on my map, I just wanted to know how to do it.

As of currently, my problem is solved, thanks to NudeRaider and r00k and CecilSunkure. Thank you guys so much for helping me through this. So far, I have 31/1000 questions done...ugh :dontgetit:. That means I have like 70 more to go to complete my sports section. I am running out of ideas though, but I am trying to incorperate a wide range of sports including olympics, boxing, football, soccer, golf, baseball, basketball, rugby, lacross, tennis. The hardest part is finding information about the sports I do not know about. I am using a combination of Free Answer, True/False, and Multiple Choice questions throughout my game. If anyone has any suggestions or would like to post your questions, I would apreciate it if you did it here X.

Also, idk if anyone cares, but I'll just post the map, in case anyone wants to look at it (maybe r00k?).

Thanks guys for all your help!

Attachments:
The Quiz BU.scx
Hits: 0 Size: 46.06kb

Post has been edited 1 time(s), last time on Jul 18 2009, 9:55 pm by m.0.n.3.y.



None.

Jul 18 2009, 10:05 pm NudeRaider Post #22

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

Rook, cool down, money said he has a working system now, but would like to learn more about the switch randomization.

All I can say about it right now is that you have to view the switches as a binary number.
With 10 switches you got 10 digits ranging from 00 0000 0000 (= 0 decimal) to 11 1111 1111 (= 1024 decimal).
When you want to convert an arbitrary binary number (= some cleared and set switches, where cleared = 0 and set = 1) it works like this:
Lets take 10 0011 1101
You start with the rightmost digit and multiply its value by 2^0:
1 * 2^0 = 1 * 1* = 1
Then you add the outer product of the value of the 2nd digit and 2^1:
0 * 2^1 = 0 * 2 = 0
Then you add the outer product of the value of the 3rd digit and 2^2:
1 * 2^2 = 1 * 4 = 4
...and so fourth until you add the leftmost digits value multiplied by 2^9:
1 * 2^9 = 1 * 512 = 512
So in the end you got 1 + 0 + 4 + 8 + 16 + 32 + 0 + 0 + 0 + 512 = 583

In the Starcraft world this means that when Switch 0 is set, Switch 1 is cleared, Switch 2 set, 3 set, 4 set, 5 set, 6 clear, 7 clear, 8 clear, 9 set (= 10 0011 1101) you assign values to the switches which are just 2 power <nr. of the switch> and only add this value if the switch is set. That way you can assign a truly random number in only 1 trigger loop with the minimal amount of triggers.

I hope that sheds some light, but you still have to either learn binary properties or accept the fact that they're working that way.

In any case tomorrow I will not have Internet anymore, so someone else has to continue explaining it.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
Please log in to shout.


Members Online: Degon760, Roy, 1milae19100eh9