Blockland

Blockland

View Stats:
VCE Not working properly
This is really, really strange. I have everything set up right, but its just not working correctly.

Basically, VCE lets me create my own variables, but it won't read or edit the variable replacers that come with VCE. For instance, while I can create and manipulate my own variable, I can't edit the player's score. Additionally, I can't even use the player's score as a variable in my events (i.e. can't have something different happen depending on their score.)

I've decided to take some screenshots to describe this best.

First, I made a brick that, on activation, sets custom variable "Tacos" to 1.
http://steamcommunity.com/sharedfiles/filedetails/?id=280234710

Then, I made a brick that, on activation, checks what "Tacos" is and displays a message based on it.
http://steamcommunity.com/sharedfiles/filedetails/?id=280234733

Afterward, I made a brick that sets the player's score to 100.
http://steamcommunity.com/sharedfiles/filedetails/?id=280234748

Finally, I made a brick that checks the score and displays a message depending on what it is.
http://steamcommunity.com/sharedfiles/filedetails/?id=280234766

The result: The "Tacos" bricks work perfectly. I can manipulate the variable and the messages display correctly. However, my score bricks don't work at all. Activating the first score brick doesn't change my score at all, and even after changing my score through other means, the second brick ALWAYS says "Your score is 100". No matter what I do.

Is this a mod conflict? Stupidity on my part? Something else?

Thanks in advance.
< >
Showing 1-4 of 4 comments
Greek2me Jul 2, 2014 @ 9:11pm 
The "variable replacers" are read-only by design.

To change the score, use the default Client -> setScore/incScore events.

As for the second brick always saying that your score is 100... You are using <var:cl:score> in the VCE_ifVariable event. VCE_ifVariable takes a variable name, not a full <var:whatever> tag. So you would do "Client -> VCE_ifVariable score". Alternatively, you could do "Self -> VCE_ifValue <var:cl:score>".

For a detailed rundown on VCE, read the VCE manual. I also like the BETC, here: http://scatteredspace.com/forum/index.php?topic=346.0
Last edited by Greek2me; Jul 2, 2014 @ 9:16pm
Scirocco Sauce Jul 2, 2014 @ 9:13pm 
Completely read only? As in, I'm not supposed to be able to use them in if branches either?

Thanks for the help either way, though. Its good to know my game isn't just borked.
Greek2me Jul 2, 2014 @ 9:17pm 
I edited my post while you were typing. Please re-read it. They're quite usable in "if" statements. You just cannot use modVariable on them.
Last edited by Greek2me; Jul 2, 2014 @ 9:33pm
Scirocco Sauce Jul 2, 2014 @ 9:32pm 
Ah, thanks man! I figured it was probably user error on my part. This helps a ton!
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jul 2, 2014 @ 6:42pm
Posts: 4