Blockland Forums > General Discussion

Help with VCE please! *STILL need help!*

Pages: (1/2) > >>

Acerblock:

Ok, so I've been having trouble with VCE. I'm trying to make it so when a player touches a certain brick, they get a random item out of 3 choices.



But it just doesn't work. No one gets any weapon and the Too many events message shows up, even when the scheduler is set to 10,000. What am I doing wrong?

Wrapperup:

You are using the random event wrong, here is how to use it:


--- Code: ---onPlayerTouch > self > VCE_ModVariable > [Wep] [Set] [3]
onPlayerTouch > self > VCE_ModVariable > [Wep] [Random] [1]
--- End code ---
(This grabs a random number between 0 and 3)

First, you set the maximum the randomizer can go to,
the next line sets in any number of what division it randomly grabs.

also, event line 3:

--- Code: ---OnPlayerTouch > self > VCE_ifVariable > [Web] [==] [1] []
--- End code ---
The last box you need to put the range of events, so for example, if you only wanted it to check if event 4 has variabletrue:

--- Code: ---OnPlayerTouch > self > VCE_ifVariable > [Web] [==] [1] [4 4]
--- End code ---

RTB me on blockland if you need any more help.

Acerblock:

Oh my gosh, thank you so much!

CheeseDragon:

You can also just do
VceModVariable - [asdf] - set - [1]
VceModVariable - [asdf] - random [3]
Which will get a random number between 1 - 3 (including those) with the division of the number always at 1

Acerblock:

Um, it's kinda working now but it's giving me all 3 items twice now.



What is going on?

Pages: (1/2) > >>

Go to full version