Home > Tutorials > RPG Maker VX > How to make skills!
How to make skills! 
++++++++++
Welcome!
++++++++++
Tutorial: Skills.
++++++++++
Writter: Omegas7.
++++++++++
Rpg Maker: Basically Any.
++++++++++
Tutorial Version: 1.0.
++++++++++
Previous knowledge requiremets:
-Variables.
-Conditions.
++++++++++
Explanation:
Basically you want to make skills which have their own levels, and as you use them more, they level up.
Yep, I made this great tutorial for this.
First, you need to know how are you going to make a skill, let's say... Fishing, mining wood cutting...
To learn how to do those kind of events go to this tutorial of mine:
Easy fishing/mining/woodcutting events.
Ok, so now you should know how to make a skill, but not it's level.
Simple.
First, you need a variable to work as the level of the skill, at the start of your game, the variable is 1 because, the skill is level 1, right?
Next, you need another variable for the amount of exp of the skill, every time you use the skill, an amount of exp increases in that variable.
And, finally, the next level variable, this is a little harder:
When the variable EXP is equal or higher than the exp limit then the variable level will obviously increase by one... THEN you should add some more value to the exp limit in order to continue leveling up, so every time it levels up, you increase the exp limit by 10.
Hard? Well well, here is the easy way, carefully read this easy to understand piece of code:
Code:
You need 3 variables:
Variable: LEVEL.
Variable: EXP.
VARIABLE: NEXT (The exp needed for next level).
(HERE GOES THE SKILL EVENTS AS LEARNT IN MY SKILLS TUTORIAL).
Then...
Once the player has sucesfully done the skill, do this:
Increase EXP by 1.
If EXP is equal or higher than NEXT, then:
Congratulations! You leveled uup your... Umm... Fishing skill!
Increase LEVEL by 1.
Increase NEXT by 10 (means you need another 10 exp for next level).
See? Not hard, and now, for a little more advanced:
You want a level limit?
You want the player to unlock new things depending in level? (Duh)
Well, here is the full code:
Code:
For fishing skill.
+++++
Start of game you have to create those variables:
-LEVEL.
-EXP.
-NEXT.
+++++
Ok, now you have to create the fishing event:
+++++
Trigger: Action button.
Random number: 1-3.
If random number is equal to 1 then
Player got a fish!
Increase items: Fish by 1.
(If the number isn't 1 then obviously the player got not fish).
So, now that the player got the fish, he gets exp...
BUT, remember we have a level limit of... 100.
If LEVEL is equal to 100 then
Message: Dude, you are already a master fisher!
Else...
Increase EXP by 1.
If EXP is equal to NEXT then...
Increase LEVEL by 1.
Message: You leveled up!
Increase NEXT by 10.
If you want to make the player to get new features depending in his level, use conditions like if player is level 10 fishing then could get this other kind of fish and so...
If you liked this tutorial, go to my profile and comment.
Also feedback for improving this tutorial.
Thank you!
By Omegas7.
|
|
Details
|
|
Tutorial:
|
How to make skills! |
|
Date Listed:
|
Fri, 29 Aug 2008 16:36:43 -0700 |
|
Author:
|
Omegas7
|
|
Total Hits:
|
8803 |
|
|