Blockland Forums > Help
Need help with VCE
(1/2) > >>
xxrumaroxx:
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.
Big Brother:
hopefully this doesn't make me seem too full of myself, but: http://forum.blockland.us/index.php?topic=166428.0
Kill All:

--- Quote from: Big Brother on November 11, 2011, 01:01:36 PM ---hopefully this doesn't make me seem too full of myself, but: http://forum.blockland.us/index.php?topic=166428.0

--- End quote ---
It's actually a good guide, very helpful to players who want tomlearn about VCE
Orthone:
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".
Reshiram:
Or you could use
Player > Ifvariable > Score
But IfValue is more reliable.
Navigation
Message Index
Next page

Go to full version