Blockland Forums > General Discussion
An Eventing Question
<< < (2/3) > >>
Conan:
event to set a brick's item is default.
Night Fox:

--- Quote from: Conan on April 05, 2013, 11:12:53 PM ---event to set a brick's item is default.

--- End quote ---
ah, thanks. I get confused, because I always have so many event mods installed lol
Evar678:
For reference on how to correctly get a random number:
(Considering it's not extremely obvious)

--- Quote from: Evar678 on December 15, 2012, 02:34:37 PM ---Look, to randomize vce:

Don't ever forget to set the variable you're trying to 0 first, it acts as the minimum number. If you don't set it, it gives you a number between null and whatever number you put into the other box. This normally returns something like 0.123847523

Here's the correct way to get a random number

--- Code: ---OnActivate -> self -> vce_modvariable var set 0   //This sets the minimum to 0
OnActivate -> self -> vce_modvariable var rand 10    //This generates a number between the value of 'var' and 10, setting the result to the variable 'var'
OnActivate -> client -> centerprint  <var:br:var>

--- End code ---



--- End quote ---
AromaniaFTW:
oh lol
random dice is gay anyway this sounds much better
The Resonte!:

--- Quote from: Fastlex on April 05, 2013, 11:02:42 PM ---You could make a projectile randomizer.
Here is a nice example.
http://www.youtube.com/watch?v=6DGqdg5v48c&list=UU6PB2OvVe4Lr9pPScJsPivw&index=5

--- End quote ---

--- Quote from: Conan on April 05, 2013, 11:04:44 PM ---have a setup where there are 4 plates in a line, each evented to spawn a key at one of each different location

above the plates, have a brick evented to release a pong projectile with a spread wide enough so that it can fire a projectile that could end up hitting any one of those 4 plates. Or, have it have a 100% random spread (on the same plane as the plates) and bound the setup with bricks so the pong projectile will eventually hit one of the evented plates.

have the pong brick fire one projectile every time the minigame resets.

EDIT: goddamnit fastlex

--- End quote ---
^^^
do this
Navigation
Message Index
Next page
Previous page

Go to full version