Home > Tutorials > RPG Maker VX > Variable Meter
Variable Meter 
If you have read my Fable Style Good and Evil System, you know that i mentioned something about a variable meter. I will know show you how to create one of those. Here is my example:
Fat
Thin
Create 2 New Variable
Fat
Thin
Create a Restaurant Event or a Seat in a Restaurant
Would you like to eat here?
- Yes
-- You ordered from the restaurant and got fatter.
-- Variable Fat +5
-- Variable Thin -5
-- Thank you for eating here, sir.
- No
-- You decide not to eat those fatty foods and become slightly thinner.
-- Variable Thin +5
-- Variable Fat -5
Now you have a variable starter. To make the bar, make the limit of the variable 50. Now you have created a bar. If you want a physical bar, sorry. Now lets add a checker in the shape of a person.
Create a Person Event
If Variable Thin is equal to or more than 25 then
-- Hello, You are a very in shape man.
If Variable Fat equal to or more than 25 then
-- Hello, You should eat a salad or exercise.
Now you have a fat and thin system with a fitness checker.
---------------------------------------------------------
SIMPLIFIED:
Make 1 new Variable:
Fitness: Limit 100
Now instead of two variables you have one with the same effect. Now to simplify your events try.
The Restaurant Event:
Would you like to eat here?
- Yes
-- You ordered from the restaurant and got fatter.
-- Variable Fitness -10
-- Thank you for eating here, sir.
- No
-- You decide not to eat those fatty foods and become slightly thinner.
-- Variable Fitness +10
Now you just add the Fitness and for the checker event.
The Checker Event
If Variable Fitness is equal to or less than 49 then
-- Hello, You are a very in shape man.
If Variable Fitness is equal to or more than 50 then
-- Hello, You should eat a salad or exercise.
Now if You are less then 49, you are qualified as a thin person, if you exceed 50 then you are considered fat.
---------------------------------------------------------
Additional Methods and Addons:
You could make a fatter sprite for the fatter you are. I do not know much about spriting and such, but I'm sure that someone does and you could ask them. You could stretch the middle of your player by 10 percent until you get a maximum of 50. Now for every 10 after 50 you add the more fatter one.
---------------------------------------------------------
I will see if I can find out how to make a physical bar that the player can see from the menu screen. So if I do look for a tutorial.
|
|
Details
|
|
Tutorial:
|
Variable Meter |
|
Date Listed:
|
Fri, 01 Jan 2010 14:19:37 -0500 |
|
Author:
|
JJDOMER45
|
|
Total Hits:
|
2336 |
|
|