Author Topic: (Tutorial) Variable Conditional Events - An RPG Variable Tree  (Read 7281 times)

stuff no edit button, But this could also be used as an experience based thing, where if you get like 50 exp, you will level your skill.
Anyone know if you could use percents with this, so when fishing, there is a 25% chance you catch a fish?

Random Dice.

Random Dice.
Thanks, that was really helpful.
Can you by chance explain how to use "Random Dice"

Thanks, that was really helpful.
Can you by chance explain how to use "Random Dice"

Even I'm still learning that.
I feel like an idiot when i use VCE sometimes. I'm learning functions. I get the idea, but i haven't really tried to use them.

Bump. This was really useful to me. I don't care how big of a bump it is. A lot of people need this.

I agree. Good tutorial and a great help getting started.

this didnt work for me, i did everything it said and still nothing.

then you probably didn't have requirement 2.

blockland doesn't work on my laptop so it will be wile before i can test this, but so can you change log to a certain ore. and does this make the tree disapear after you chopped the 20logs?

I have a question, when your using Onvariablevalse/Onvariabletrue
How does it know which Input its talking about.

I have a question, when your using Onvariablevalse/Onvariabletrue
How does it know which Input its talking about.

You see the last box for event
  • ? That is where you specify what OnVariableX's are triggered. You need two numbers, a start and a end. 1 5 would execute all of the onVariableX's events through 1 and 5.
Thanks, that was really helpful.
Can you by chance explain how to use "Random Dice"

[]    onActivate -> Self -> VCE_modVariable -> Brick -> Chance -> Set -> 1
[33] onActivate -> Self -> VCE_modVariable -> Brick -> Chance -> randomNum -> 20
[66] onActivate -> Self -> VCE_ifVariable -> Chance -> greaterEquals -> 5
[]    onVariableTrue -> Client -> centerPrnt -> Hurrah! Your chance is greater than 5!

What this does is sets the beginning number of chance to 1. It then generates a random number from that variable to 20. Then it does a simple check to see if it was greater than 5 and outputs you a message saying it was.

NoEdit: Sorry, for your question Hectic, after I say 'You see the last box for event' it is suppost to be [ 0 ].. Putting to brackets and a 0 without spaces seems to make a list.

Now you're thinking with events.
Lolportalreference.

But this is a good tutorial that can't get the idea for the new VCE.
And thanks for the effects idea. C:

Le Bump for decent tutorial.

Nice one, Skill. This'll come in handy.
Oh, so true. I love this. Bookmarking now.

NoEdit: Sorry, for your question Hectic, after I say 'You see the last box for event' it is suppost to be [ 0 ].. Putting to brackets and a 0 without spaces seems to make a list.

Code: [Select]
[X] 0 [0] onActivate > Self > VCE_modVariable > [Brick] [Chance] Set [1]
[X] 1 [0] onActivate > Self > VCE_modVariable > [Brick] [Chance] RandomNum [4]
[X] 2 [0] onActivate > Self > VCE_ifVariable > [Chance] == [2] [3 4]
[X] 3 [0] onVariableTrue > Client > centerPrint > [<color:00FF00>Success! <color:FFFFFF> You are now fishing!]
[X] 4 [0] onVariableFalse > Client > centerPrint > [<color:FF0000>Failure! <color:FFFFFF> Try again!]

[ 0 ] works in code.