Blockland Forums > Help
VCE_ifVariable doesn't seem to work right
phflack:
--- Quote from: Destiny/Zack0Wack0 on October 20, 2009, 08:55:19 PM ---Use vce_ifvalue for using replacers on the left side of the logic balancer.
--- End quote ---
aha, thanks
White Tiger (6224):
--- Quote from: xC on October 19, 2009, 10:26:49 PM ---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?
--- End quote ---
For that first brick part i;''m having the same Problem.
Teneksi:
--- Quote from: Destiny/Zack0Wack0 on October 20, 2009, 08:55:19 PM ---Use vce_ifvalue for using replacers on the left side of the logic balancer.
--- End quote ---
...OH! :D
So, what is VCE_ifVariable used for..?
phflack:
--- Quote from: xC on October 20, 2009, 11:20:00 PM ---...OH! :D
So, what is VCE_ifVariable used for..?
--- End quote ---
just another way i think, because you can ask the variable of something, or do it through replacers, which i'm not sure is fool proof...
Space Guy:
--- Quote from: Space Guy on October 21, 2009, 06:05:44 AM ---ifVariable = the object you're doing the event on only. onActivate -> Self -> VCE_ifVariable ["Test"] will check the brick's "test" variable, onActivate -> Player -> VCE_ifVariable ["Test"] will check the player's.
ifValue = any object but uses a more complex setup. onActivate -> Self -> VCE_ifValue ["<var:brick:test>"] checks the brick, onActivate -> Self -> VCE_ifValue ["<var:player:test>"] checks the player's.
--- End quote ---