Blockland Forums > Help

VCE_ifVariable doesn't seem to work right

Pages: (1/3) > >>

Teneksi:

First brick:
onActivate => self => VCE_modVariable => [Player] test [Add] 1
onActivate => client => centerprint => "Your variable is now <var:player:test>"


Second brick:
onActivate => self => VCE_ifVariable => <var:player:test> [>=] 10
onVariableTrue => player => kill
onVariableFalse => player => doemote => alarm



When I click the first brick and it shows that variable is somewhere between 1 and 10, and I click the second brick, I do the alarm emote. Once it gets past 10, nothing different happens. When I change the argument to anything other than not equal to, I do the emote, and if I set it not equal to 10, it kills me, and it doesn't matter what value the variable is at. It seems like it can't figure out how to do these arguments or something.

Am I doing something wrong here? Is there an add-on that may interfere with variables?

Teneksi:

Bump :[

DaSord213:

1 problem I have is if I leave 1 part of the var un-capitalized. That could be it but I don't know.

Teneksi:


--- Quote from: DaSord213 on October 20, 2009, 10:08:07 AM ---1 problem I have is if I leave 1 part of the var un-capitalized. That could be it but I don't know.

--- End quote ---
Maybe... I was pretty careful to be consistent with that, though..

Destiny/Zack0Wack0:

Use vce_ifvalue for using replacers on the left side of the logic balancer.

Pages: (1/3) > >>

Go to full version