Sry for posting last twice iPod got messed up
noedit
I know the feel.
Start the guy with the simples
There's a and there's b, he wants to do something is he has a and b set to 1
What he was requesting would be lacking a lot of steps that would not have created a full VCE system. But I can write what is wanted:
[0] [Onactivate] [Player] [VCE_IfVariable] [A] [==] [4] [1 1]
[1] [OnVariableTrue] [Player] [VCE_IfVariable] [B] [==] [7] [2 2]
[2] [OnVariableTrue] [Player] [Addvelocity] [100] [100] [100]
Now, in the above, if your A variable is 4 AND your B variable is 7, the player gets launched. Notice the last fields on lines 0 and 1, the range that is given. Range [1 1] triggers only line 1, if line one uses OnVariableTrue/False, which it does. After line 1 is triggered, another IfVariable check is run, and as specified in the final field on that line, it triggers line 2.
That example was just a random example and doesn't allow for showing the usefulness of this VCE system. The following example is more complex, but would be extremely useful in many situations:
[0] [Onactivate] [Player] [VCE_Modvariable] [Count] [Random]
[1] [Onactivate] [Player] [VCE_IfVariable] [Count] [<=] [.25] [2 3]
[2] [Onvariabletrue] [Player] [Addvelocity] [100] [0] [0]
[3] [Onvariablefalse] [Player] [VCE_Ifvariable] [Count] [<=] [.50] [4 5]
[4] [Onvariabletrue] [Player] [Addvelocity] [0] [100] [0]
[5] [Onvariablefalse] [Player] [VCE_Ifvariable] [Count] [<=] [.75] [6 7]
[6] [Onvariabletrue] [Player] [Addvelocity] [0] [0] [100]
[7] [Onvariablefalse] [Player] [Kill]
What this does is essentially creates a random number generator that sets a variable to a random number, then runs checks on the variable, and results occurring based on what the number was. This would be for if you have four options you want chosen randomly. Also, note that when the [Random] operation is used with blank fields, it chooses a random number between 0.0000 and 1.0000. Also, look at that last line. Had I continued with the pattern I used for events 1-5, that last line would be an IfVariable check followed by another event similar to the other events. But, because we already covered 3/4 of the 1.0000, we don't need to include that extra check.