Blockland
Scirocco Sauce 2014년 7월 2일 오후 6시 42분
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.
< >
전체 댓글 4개 중 1~4개 표시 중
Greek2me 2014년 7월 2일 오후 9시 11분 
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
Greek2me 님이 마지막으로 수정; 2014년 7월 2일 오후 9시 16분
Scirocco Sauce 2014년 7월 2일 오후 9시 13분 
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 2014년 7월 2일 오후 9시 17분 
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.
Greek2me 님이 마지막으로 수정; 2014년 7월 2일 오후 9시 33분
Scirocco Sauce 2014년 7월 2일 오후 9시 32분 
Ah, thanks man! I figured it was probably user error on my part. This helps a ton!
< >
전체 댓글 4개 중 1~4개 표시 중
페이지당 표시 개수: 1530 50

게시된 날짜: 2014년 7월 2일 오후 6시 42분
게시글: 4