Author Topic: Help with VCE please! *STILL need help!*  (Read 434 times)

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?
« Last Edit: June 09, 2013, 09:52:30 PM by Acerblock »

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

Code: [Select]
onPlayerTouch > self > VCE_ModVariable > [Wep] [Set] [3]
onPlayerTouch > self > VCE_ModVariable > [Wep] [Random] [1]
(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: [Select]
OnPlayerTouch > self > VCE_ifVariable > [Web] [==] [1] []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: [Select]
OnPlayerTouch > self > VCE_ifVariable > [Web] [==] [1] [4 4]
RTB me on blockland if you need any more help.

Oh my gosh, thank you so much!

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

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



What is going on?

line #4 should read in the last box, "5 5"
line #6 should read "7 7"
and so forth. the first number is the first in the range, the last is the last in the range. you always have to have two seperate items even if you only have one line

each ifVariable needs to know what VariableTrues/Falses are relevant to itself.

Ohhhhh, now I see what that last box means! Thank you!

But, it's only calling one variable now. I'm only getting C4 explosives. What the hell?

change the two lines that say "onVariableFalse" to say "onPlayerFirstTouch"

that will fix it.

That's probably it, thank you!