logic_random_outputs not so random

Avatar
Fracture
797 Posts
Posted May 25, 2012
I am using a logic_random_outputs in order to start a turn based game, as opposed to rock paper scissors. I have it set all set up, but it seems to not work as I was hoping. After all the testing on it, every single time I trigger the logic it will always fire the same output every single time. AND when i attempt to fire it again, it sometimes wont fire AT ALL

Here is the sample in question I am having trouble with.

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted May 25, 2012
Replied 11 minutes later
use a logic_case a nd use the output pickrandomshuffle.
Avatar
Fracture
797 Posts
Posted May 25, 2012
Replied 26 minutes later
okay...that seems to work....how do i prevent it from choosing all other cases
Avatar
msleeper
4,136 Posts
Admin
Posted May 25, 2012
Replied 1 hour later
Without having used this entity before, I wonder if it uses an unseeded randomization. Making the first firing not randomized. You could try testing by seeing what it picks the second firing each time you reload the map (or game, depending).

If you really have stumbled onto a glitch (and you are positive you're using the entity properly, which frankly I'm not, but again I haven't used it myself) I'd post something on the VDC Talk page for the entity.

Avatar
Fracture
797 Posts
Posted May 25, 2012
Replied 10 hours later
similair results. I copy and pasted the outputs for ALL cases. however when I activate it, half of the time nothing happens. The button spins the arrow and triggers the case, the case is supposed to stop it at one of two positions. Several times i pressed the button and it spins forever
Avatar
Brainstone
401 Posts
Posted May 25, 2012
Replied 26 minutes later
I have a logic_case somewhere in one of my maps, and I was pretty sure it was random.
I am 100% sure though that it does generate an output every time when it is triggered.
(what I did is: Having a cube be pushed through a tube. When it touches the end of the tube, it is killed and a logic_case is triggered via the "pickRandomCase" Input. Afterwards there are three possible cases, which either create a laser cube, a normal cube or a sphere cube template. The procedure lastet endless when tested)
I therefore think your problem is not with the random_case, but rather with your construction framework.
Avatar
Groxkiller585
652 Posts
Posted May 25, 2012
Replied 13 minutes later

Brainstone wrote:
I have a logic_case somewhere in one of my maps, and I was pretty sure it was random.
I am 100% sure though that it does generate an output every time when it is triggered.
(what I didi is: Having a cube be pushed through a cube. When it touches the end of the tube, it is killed and a logic_case is triggered via the "pickRandomCase" Input. Afterwards there are three possible cases, which either create a laser cube, a normal cube or a sphere cube template. The procedure lastet endless when tested)
I therefore think your problem is not with the random_case, but rather with your construction framework.

I can confirm that this works, I have an old map (I still haven't released...) that has a logic_case using random outputs and it works.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Fracture
797 Posts
Posted May 25, 2012
Replied 3 hours later
i must be doing something wrong then. I will just start from scratch and find a differant way of picking turns