Author Topic: Need help with VCE  (Read 588 times)

I need help with VCE. To my understanding when using VCE to make it where a player must have a specific amount of points or more to be able to obtain an item you must set the event for the brick variable as (>=) , meaning greater than or equal to. For example this is the event that I put in:
---------------------------------------------------------------------------------onActivate>player>VCE_IfVariable>points>(>=)>30
onVariableTrue>Player>additem>Dual Handguns
onVariableFalse>Client>CenterPrint>cost: 30 points>3
---------------------------------------------------------------------------------
After putting this in I started a minigame and began to test my events. When I had 43 points I decided to test out the Dual handgun store brick, which was evented with the above event. When I clicked the brick, I got the client text that should only appear if my points are less than 30, but I had 43 points. Being that I had 43 points, which would be VariableTrue, on my activation of the brick I should have obtained the Dual handguns. From what I know this is what should have happened but its not working. Can some one let me know what the problem may be.

hopefully this doesn't make me seem too full of myself, but: http://forum.blockland.us/index.php?topic=166428.0

hopefully this doesn't make me seem too full of myself, but: http://forum.blockland.us/index.php?topic=166428.0
It's actually a good guide, very helpful to players who want tomlearn about VCE

And to directly fix the problem, you want to be using Self -> IfValue instead of Player -> IfVariable, and then <var:cl:score> instead of "points".

Or you could use
Player > Ifvariable > Score
But IfValue is more reliable.

wow thx a lot for every ones help I'm just now checking back because I didn't think that I would get a reply so soon. Special thx to big brother. the VCE guide really helped out with more than I expected.