Blockland Forums > Help
(Tutorial) Variable Conditional Events - An RPG Variable Tree
eastonch:
this didnt work for me, i did everything it said and still nothing.
Hectic:
then you probably didn't have requirement 2.
chills58:
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?
Hectic:
I have a question, when your using Onvariablevalse/Onvariabletrue
How does it know which Input its talking about.
Orthone:
--- Quote from: Hectic on January 09, 2010, 12:37:53 AM ---I have a question, when your using Onvariablevalse/Onvariabletrue
How does it know which Input its talking about.
--- End quote ---
You see the last box for event [0]? 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.
--- Quote from: LeftFourLife on November 20, 2009, 10:44:08 PM ---Thanks, that was really helpful.
Can you by chance explain how to use "Random Dice"
--- End quote ---
[] 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.