Author Topic: How to use the V.4 Variable Events - Noob Guide -  (Read 1740 times)

Alright, Variables are the events that are needed for making an RPG. I would recommend V.6 but I'm not so good at it. So i will show you people who had trouble with V.4 Variables. Alright, today we are gonna use the variables Gold, Wood and Copper ore.

Now, this may require the RPG items if you want it to be a good RPG.

OnAxeHit -> Self -> IfRandomDice -> 30 [GreaterThan] 30
VariableFalse -> Client -> BottomPrint -> (You swing your Axe at the Tree . . .)
VariableTrue -> Player -> AddVariable -> Player -> [Wood] [1]
Now, the AddVariable part is easy. The first box will be the Variable, the second box tells the amount of how many you want to grant the player.

OnAxeHit -> Self -> IfRandomDice -> 30 [GreaterThan] 30
VariableFalse -> Client -> BottomPrint -> (You swing your Axe at the Tree . . .)
VariableTrue -> Player -> AddVariable -> Player -> [Wood] [1]
VariableTrue -> Client -> DisplayVariable -> CenterPrint -> [Wood]

Now, if you want EXP you will need to do this with the variable.

OnAxeHit -> Self -> IfRandomDice -> 30 [GreaterThan] 30
VariableFalse -> Client -> BottomPrint -> (You swing your Axe at the Tree . . .)
VariableTrue -> Player -> AddVariable -> Player -> [Wood] [1]
VariableTrue -> Client -> DisplayVariable -> CenterPrint -> [Wood]
VariableTrue -> Player -> AddVariable -> [Woodcutting EXP] [3]
VariableTrue -> Client -> DisplayVariable -> ChatMessage -> [Woodcutting EXP]

You can change this to Ore also if you plan on doing it. You must change it like this:

OnPickAxeHit -> Self -> IfRandomDice -> 30 [GreaterThan] 30
VariableFalse -> Client -> BottomPrint -> (You swing your PickaxeAxe at the Rock . . .)
VariableTrue -> Player -> AddVariable -> Player -> [Copper ore] [1]
VariableTrue -> Client -> DisplayVariable -> CenterPrint -> [Copper ore]
VariableTrue -> Player -> AddVariable -> [Mining EXP] [3]
VariableTrue -> Client -> DisplayVariable -> ChatMessage -> [Mining EXP EXP]



You may have a problem with the selling process.

OnActivate -> Client -> Prompt -> [Sell 1 Wood for 3 Gold?]
OnActivate -> Self -> IfVariable -> [Wood] -GreaterEquals- [1]
VariableFalse -> Client -> Prompt -> [You don't have any Wood.]
VariableFalse -> Client -> DisplayVariable -> [Wood]
VariableTrue -> Player -> AddVariable -> [Wood] [-1]
VariableTrue -> Player -> AddVariable -> [Gold] [3]
VariableTrue -> Client -> DisplayVariable -> CenterPrint -> [Gold]
VariableTrue -> Client -> DisplayVariable -> BottomPrint -> [Wood]

Hoped this help if your new. You may ask questions about Variables.

Download them here:
http://forum.blockland.us/index.php?topic=43084.0

Uhm, theres already VCE (the next version of varaibles) released.  Anyways I suppose this might help some newbies to learn the old variables...although there isn't much to learn.

Uhm, theres already VCE (the next version of varaibles) released.  Anyways I suppose this might help some newbies to learn the old variables...although there isn't much to learn.
I know VCE is out, but i use V.4 cause its faster and easier to learn. This should be able to help some newbies using them. There will be more to learn when they ask a question = Instant answer.

I know VCE is out, but i use V.4 cause its faster and easier to learn. This should be able to help some newbies using them. There will be more to learn when they ask a question = Instant answer.

VCE is simpler. I like this guide but then again, the odl variables didn't had proper features. It also spammed up the events list with lots of ifs. If people say VCE is harder, it means that A) They didn't try the manual and think it's too hard, B) They didn't try VCE due to complaints, C) They're to lazy to download the new one, or D) They didn't even know it was out.


In my opinion, I think it's mostly option A.

ok... i CANNOT find the ifrandomdice thing!!! plz tell me were to find it on the event list :cookie: :cookie:

http://wiki.returntoblockland.com/index.php?title=Variable/Conditional_Events

People should not post "Help" topics like this unless they do research because most of these topics already exist.

ok... i CANNOT find the ifrandomdice thing!!! plz tell me were to find it on the event list :cookie: :cookie:
try getting variables

http://wiki.returntoblockland.com/index.php?title=Variable/Conditional_Events

People should not post "Help" topics like this unless they do research because most of these topics already exist.
That's either V.5 or V.6. Not V.4.

Change the topic title to:

How to use the V.4 Variable Events - Newbie Guide -

Change the topic title to:

How to use the V.4 Variable Events - Newbie Guide -
Can't change -.-'