Author Topic: VCE Help - Gambling Mechanics Not Working Properly  (Read 1393 times)

A friend and I recently got back into Blockland and decided to work on a build together. When trying to create a gambling "machine", I ran into some problems. The amount of cash is checked correctly, but the what happens afterward isn't right. When the player has enough money, the amount subtracted is correct, but that's as far as it goes. However, when the player doesn't have enough money, it displays that line, then runs the all of the random events, giving the player $113. I believe the problem is with the "onVariableTrue" statements, but I can't find where. Events pictured below.

change all ifValue events to ifVariable

change <val:br:chance> to chance

see if that works

Didn't help. I still have the same issue.

are you sure == checks if it's equal to any number separated by spaces? I'm pretty sure it's checking if the variable equals the whole thing with spaces
and you're missing a closing 20 on your less than 5 cash statement, which you could just make an onvariable false for instead for the first cash check

Uh yeah, VCE is broken.  I have stuff I've used in the past that just- doesn't work anymore.  Any values will still show up.  Such as <var:gl:simtime> and such.  So it's still useful for getting information.

Hell, it's even locked up as a private file on RTB. http://forum.returntoblockland.com/dlm/getFile.php?id=150

But hey, if I'm wrong and you get it working, please tell me.

are you sure == checks if it's equal to any number separated by spaces?
It does not.

are you sure == checks if it's equal to any number separated by spaces? I'm pretty sure it's checking if the variable equals the whole thing with spaces
and you're missing a closing 20 on your less than 5 cash statement, which you could just make an onvariable false for instead for the first cash check
It does not.
Fixed these.
The random events seem to be working now because the messages are popping up as they should. However, all the cash is still being given no matter what the outcome is.

NOTE:
In the events below, when a 1 is rolled, the player wins nothing. The message should be displayed without altering the cash variable, so that's why there's only one event that corresponds to the one on line 4. Also, I had to cut the picture in half due to size constraints.

Part 2 of the picture.

Line 33, missing end of range in last field.

Noedit

What's the point in event line 34 being there?  Move line 34 to one of the event lines following event line 0 and delete line 33.

Line 33, missing end of range in last field.
Seriously? That was the issue?
What's the point in event line 34 being there?
I forgot to add that it at the beginning before I put in all those other lines. I just got a mod that should let me move it without disrupting the rest.

Thanks for the help everyone. Hopefully, this build will be finished and in the gallery soon. Locking.