After several complaints about people not understanding the simple events of VCE, I've decided to make this tutorial that you can smack in someone who doesn't understand VCE's face.
Also, Yes. I am very aware that there's a manual. This is just an easy step by step instruction. Rather then reading, you have pictures.
What will you need?- VCE Variables - Uh, Duh?
- A sense of logic - Without it, You're doomed.
The TutorialYou should start by spawning a Tree. I don't care what color it is, As long as it's a tree. Now, wrench your tree and go to events. You'll start by placing this event on the first line:
OnActivate > Self > VCE_IfVariable > Chops [=>] 20 [ ]
It should look like this:
That wasn't such a challenge, Wasn't it? Basically what this event means is that when you click it, It'll check if it has 20 or more of the variable 'Chops'. If it doesn't, it'll process the event VariableFalse, if it does, it'll process the event VariableTrue.
Now for the next event: VariableFalse.
You'll have several of these events in this one tree. Don't worry, I'll guarantee you it wont be over 10 of these.
The event you are going to add on the second line is:
OnVariableFalse > Self > VCE_ModVariable > [Brick] Chops [Add] 1
Your event should look like this now:
What that event does is that it adds 1 variable 'Chops' to the brick. Why? Because apparently, you had under 20 total Chops variables, so you needed more. Now the tree is 1 step closer to finishing.
No, You're not finished with VariableFalse events. We still have a couple more to go. You next event is going to show how many chops are left till the tree's wood is collectible. But apparently, You want the event to be colorful like the other so called 'Professional' servers. Here is the event for the colored print:
OnVariableFalse > Client > BottomPrint > [<color:ffff00>Total Chops Left<color:ffffff> - <var:br:Chops>/20] [3]
Your event should look like this now:
You're probably mind bobbled by the awesomeness of the hex color. The colors that are used in that event are yellow (Hex: ffff00) and white (Hex: ffffff). These hex codes will change the color of text that is followed after it, not before.
You've probably also noticed the ending part which has <var:br:Chops>. What in gods name could this monstrosity be? Nothing much. What it is is part of the VCE Script that displays the variable in it. So the code [<var:br:Chops>/20] would translate to [3/20] if the brick had 3 'Chops' variable.
Good job. You have successfully conquered the first 3 events. We're now moving on to the VariableTrue events! Hooray!
The first VariableTrue event you'll be adding will add your precious Wooden Logs you've worked so hard for to either your Player or Client.
If you make the event add to your player, You have a chance of losing your precious variable if you die. If you add to your client, You keep it forever. Even after death.
The event you'll be adding is:
OnVariableTrue > Player/Client (Your Choice) > VCE_ModVariable > Wooden Logs [Add] 3
Your event should look like this now:
Each tree you chop down will add 3 Wooden Logs to your Player/Client.
Your next event will restart the tree as it is about to re-spawn. The event is:
OnVariableTrue > Self > VCE_ModVariable > [Brick] Chops [Set] 0
Your event should look like this now:
My god that was harder then giving birth to a panda. By now you're probably wondering what does it matter if the chops isn't set to 0? Well, i don't know about you but in an RPG It'd be much better to have to chop a tree down again from 0 rather then being Chuck Norris and 1 hitting a tree and getting 3 wooden logs, Wouldn't it?
Now for the next event. What this event will do is display your total Wooden Logs to you one the tree is fully chopped down. The event is:
OnVariableTrue > Client > BottomPrint > [<color:ffff00>Total Wooden Logs<color:ffffff>: <var:cl:Wooden Logs>] [3]
OROnVariableTrue > Client > BottomPrint > [<color:ffff00>Total Wooden Logs<color:ffffff>: <var:pl:Wooden Logs>] [3]
What's the difference?- First one is for people using Client Wood
- Second is for people using Player Wood
Your event should look like this now:
Now you're thinking with events. The last VariableTrue event you need to do is this:
OnVariableTrue > Self > FakeKill
Pretty self explanatory. You chopped down the brick, It wont grow back for 45 seconds.
Your event should look like this now:
Hooray. You have made a tree. But wait, This tree is dull. We need to add some pizazz to it. The super duper event you'll be adding is this:
OnVariableFalse > Self > SpawnExplosion > Sword Slice ---1.00---
This will make the tree explode when you hit it. As if it's being hit by the force of Chuck Norris with his fist.
For all those bastards who don't feel like reading, This is what the whole event should look like at the end:
And that about explains it for the RPG Tree. If you have a decent IQ, You should know how to rearrange that to make it into a mining variable. Thank you for reading this tutorial (If you did read) and i hope it helps you with your experiences of events on Blockland :D!