Blockland Forums > General Discussion

Is it possible to remove variables from everyone with a single click?

Pages: << < (2/2)

CheeseDragon:

You could just make completely new variables instead of trying to clear the old ones. You might have to replace a lot of things in the events but it should work.

WALDO:

There is a simple way to do this. Make a baseplate that everyone stands on. When you want to clear the votes, enable the onPlayerTouch event that you have on the baseplate to clear the client's variable.

LeetZero:

Add a randomizer and add it to the voting name, this would be the best and perhaps easiest method:

Use the client value voting<var:br:random>. Do that on checks and everything too. Please note that this doesn't work as message or savevariable/loadvaraible, thus, you can't do <var:cl:voting<var:br:random>> or something alike. You'll have to do onActivate Client onVariable voting<var:br:random> if you want to do a check that way.
Make the brick use the next random method every time you set a new vote: set "random" value on the brick to 0 and then random it to something like 100000. Even better if you use decimals too.

Thus, all new voting will use the value "voting2436" "voting216" etc. at random, the chance of two random numbers colliding being very, very small.

Pages: << < (2/2)

Go to full version