Blockland Forums > Suggestions & Requests
Random Teleports
<< < (2/5) > >>
The Corporation:
wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?
Evar678:

--- Quote from: The Corporation on December 15, 2012, 02:20:48 PM ---wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?

--- End quote ---
No it teleports you to a midpoint between the instances


--- Quote from: Sami2ss on December 15, 2012, 03:48:39 AM ---VCE is broken or something, I've always tried to use VCE to make something randomize and it never works.

--- End quote ---
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 ---

Mr.Noßody:

--- Quote from: Evar678 on December 15, 2012, 02:34:37 PM ---
--- 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 ---
If only VCE was intuitive..
hodototman:

--- Quote from: The Corporation on December 15, 2012, 02:20:48 PM ---wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?

--- End quote ---

no, only the last placed brick
Evar678:

--- Quote from: hodototman on December 15, 2012, 04:03:36 PM ---no, only the last placed brick

--- End quote ---

--- Quote from: Evar678 on December 15, 2012, 02:34:37 PM ---No it teleports you to a midpoint between the instances

--- End quote ---
Navigation
Message Index
Next page
Previous page

Go to full version