Author Topic: variables how do they work  (Read 626 times)

Hey is was wondering how do the variable events work cause i have no clue at all.

there is a manual for v5 variables (on RTB)
basicly, you can check the last message, if firing a weapon, and some other things like that (with VCE_ifvalue), then also you can assign variables with input>self>VCE_modvariable, and can check variables with input>target>ifvariable

Variables are things that can influence other things, like a very common event to do with variable events
Code: [Select]
ifBLID>Equals>8824>Player>Kill
But that is just one of the huge amount of variable events (You could even create a money system with them :O)

It requires logic to be able to create your own stuff using variables.

Variables are things that can influence other things, like a very common event to do with variable events
Code: [Select]
ifBLID>Equals>8824>Player>Kill
But that is just one of the huge amount of variable events (You could even create a money system with them :O)

You said you've been gone right? Variables V5 came out, and they're completely different. All this <VCE:variable> stuff and all that. I don't really like it, so I don't use it :/

You said you've been gone right? Variables V5 came out, and they're completely different. All this <VCE:variable> stuff and all that. I don't really like it, so I don't use it :/

Seriously... I just learned how before I left...

Variables are things that can influence other things, like a very common event to do with variable events
Code: [Select]
ifBLID>Equals>8824>Player>Kill
But that is just one of the huge amount of variable events (You could even create a money system with them :O)
ahaha, fail...
for V4, it's
input>self>ifBLID[equals]"8824"
variabletrue>player>kill

for the much better unspammy easier to use V5,
input>self>VCE_ifvalue"<var:cl:bl_id>"[equals]"8825"[1 1]
onvariabletrue>player>kill

i have a video about it, check it out if you dont get it...

crap, my internet wont load youtube... just find it on my channel: http://www.youtube.com/gnomeproductions1/


Omfg, here's the kill code:
Code: [Select]
[X] 0 [0] onPlayerTouch > Self > VCE_ifValue > [var:client:BL_ID] [==] [8824] [1 2]
[X] 1 [0] onVariableTrue > Player > Kill
[X] 2 [0] onVariableTrue > Client > chatMessage > [You are not welcome here.]