Blockland Forums > Help

Random variables and items

Pages: (1/2) > >>

Zenthrox:

What I want is to have it so when the minigame resets, a random number is generated. (From 1 to 3)

When a player activates the brick, a different item is given to them depending on the number generated.

Does anyone know how to do this?

Zenthrox:

Now I have a different problem. I got the random number generator to work, but now it seems to almost always put up 3, while I sometimes see 1, and almost never see 2 at all. Here are my events:



Does anyone know why this is happening? Is it just bad luck?

Zenthrox:

Bump

Destiny/Zack0Wack0:

First line, the last parameter should be 1 not 0, if you're trying to get a number between 1 and 3.

Loopyla1:

eww mac

Pages: (1/2) > >>

Go to full version