Author Topic: Problem with VCE and score  (Read 370 times)

Okay, so I evented this as follows:

onActivate > Client > VCE_ifVariable > <var:client:score> Greater/Equal to [______] [50]
onVariableTrue > *named brick* > setPlayerTransform
onVariableTrue > player > addItem > Gun
onVariableFalse > Client > CenterPrint [Not enough points!]

However, when clicked, it is always on "Variable True".  Any way to fix this?

Do you have VCE and Old Variables?

Okay, so I evented this as follows:

onActivate > Client > VCE_ifVariable > <var:client:score> Greater/Equal to [______] [50]
onVariableTrue > *named brick* > setPlayerTransform
onVariableTrue > player > addItem > Gun
onVariableFalse > Client > CenterPrint [Not enough points!]

However, when clicked, it is always on "Variable True".  Any way to fix this?
Found your problem.
You are using value syntax with ifVariable.
Either use "Self > VCE_ifValue", or "Client > VCE_ifVariable > score".