Author Topic: VCE - Is this necessary?  (Read 399 times)

Hey, I'm Modern. I host the BTS: Endless Zombies server.
I've been working on making a "Reset Minigame" option for 2500 points. I tried to use VCE's onVariableTrue twice, however it didn't work. So I added another retroCheck. This is what it looks like now:

onActivate > Self > VCE_retroCheck > ifPlayerScore > >= 2500 [blank]
onVariable True > Client > incScore > [-2500]
onActivate > Client > CenterPrint > no need to worry here
onActivate > Self > VCE_retroCheck > ifPlayerScore > >= 2500 [blank]
onVariableTrue > Teleport(Brick) > setPlayerTransform
onVariableFalse > Client > CenterPrint > no need to worry here

Is this the best you can do, or is there a much more simplified version?

VCE checks for every OnVariableTrue/False on that brick.
If you want to check for multiple variables you need to use the [blank] textbox

So to clean up your code, just delete the second retroCheck, otherwise you execute everything twice:

onActivate > Self > VCE_retroCheck > ifPlayerScore > >= 2500 [blank]
onVariable True > Client > incScore > [-2500]
onActivate > Client > CenterPrint > no need to worry here
onVariableTrue > Teleport(Brick) > setPlayerTransform
onVariableFalse > Client > CenterPrint > no need to worry here