Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Help
»
Random variables and items
« previous
next »
Print
Pages: [
1
]
Author
Topic: Random variables and items (Read 1070 times)
Zenthrox
March 22, 2010, 01:49:23 PM
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?
Ad Bot
Advertisement
Zenthrox
March 22, 2010, 02:18:44 PM
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
March 22, 2010, 05:25:16 PM
Bump
Destiny/Zack0Wack0
March 22, 2010, 05:54:13 PM
First line, the last parameter should be 1 not 0, if you're trying to get a number between 1 and 3.
Loopyla1
March 22, 2010, 06:02:22 PM
eww mac
Zenthrox
March 22, 2010, 06:02:48 PM
Quote from: Loopyla1 on March 22, 2010, 06:02:22 PM
eww mac
Sue me, it's the way I was born.
Zenthrox
March 22, 2010, 06:05:16 PM
No edit: Right, also, thanks Destiny! This would explain why I don't get a weapon sometimes.
phflack
March 22, 2010, 08:23:56 PM
Quote from: Zenthrox on March 22, 2010, 06:05:16 PM
No edit: Right, also, thanks Destiny! This would explain why I don't get a weapon sometimes.
ya, the range of it starts at the first value, and ends at the last
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Help
»
Random variables and items