Friday, July 22, 2011

Tutorial: "Demi"-Style Skill In RPGMaker 2003

Instead of just blabbing on about other people's attempts at amateur development all the time, I figured I would start posting some tutorials for anyone out there who's considering using something like RPGMaker to create a game. Since most of my experience is with the RPGMaker programs, I'm going to focus a lot of these tutorials on those engines, but I hope the general concepts carry across and that people can also use these tutorials to work out how to make things in other programs too!

Without further ado, here is the second in this series of tutorials: How To Create A Demi-Skill In RPGMaker 2003!


To make this type of skill you are going to need:

- A "fake condition" that actually does nothing.
- A skill named "Demi" (rename it if you wish) that has a unique MP cost.
- Two variables ("Current MP" and "Dummy MP").

First, create a "fake condition" that can be inflicted on the enemy. This "fake condition" doesn't do anything to the enemy, runs out after one turn and doesn't have a name, giving the illusion that nothing was actually done. This "fake condition" allows us to determine which enemy is being targeted without having to change any of their stats - it is unnoticeable.

Secondly, create a skill that inflicts the "fake condition" on the enemy. Make a note of what "type" you set this skill up to be and make sure it is not set up to be "normal"-type as this will stop the skill working.

For the purpose of this tutorial, the "type" will be called "Active".

What is more important than the "type" is that the skill has a unique MP cost that no other skill uses as this MP change will be used to trigger the battle-events. I cannot overstate how important this is - no other skill can have this MP cost and no skill can decrease the hero's MP by this amount or else the skill will trigger when it hasn't actually been used!

For the purpose of this tutorial, the MP cost will be 7.

After setting up the skill, you need to create a battle-event that triggers on the very first turn of the battle. This event will be used to "zero" the MP variables we're going to be using. This event should be set up like this:


As you can see, the hero in this example is called Cheska. Swap this for the hero you are going to have casting the "Demi" spell in your game. Make sure you do not set the variables to the hero's maximum MP as this will prevent the skill from working - it has to be set to current MP.

The next battle-event you need to create will be triggered by the hero using the skill-type "Demi" is filed under. Remember how I said that "Demi" will be filed under "Active" for the purpose of this tutorial? Well, here is where this becomes important. This battle-event should look like this:


This basically does the same thing that the initial event does. It "zeroes" the variables that are used. The difference is that this triggers directly before the "Demi" skill will be cast, making sure that nothing should go wrong.

The final battle-event is the part that does damage. It needs to be set up to trigger when the hero's HP is between 1-100%. Why? Because this trigger is checked straight after a skill/attack is used and hence retains information on which enemy is being targeted. We need to know the target so we need the event to trigger at this time. This battle-event should look like this:


What is happening in this battle-event?

1) The "Dummy MP" value is set to whatever it is at the end of the character's turn.
2) If the "Dummy MP" value has changed it will be different to "Current MP" as that is still at the same value it was before the turn started. We can therefore check "Dummy MP" against "Current MP" to find out if a skill has been used.
3) If MP has changed, "Dummy MP" is subtracted from "Current MP". This will make "Current MP" equal the MP cost of the skill that was used.
4) If this MP cost is 7 (the cost of the "Demi" skill in this tutorial) then the targeted enemy is damaged by 50% of their current HP.
5) Both "Dummy MP" and "Current HP" are reset to the hero's current MP to prevent the damage being dealt repeatedly.

Make sense? Obviously, in this case there are only two enemy's present, you need to expand that to encompass all enemies in each enemy group. If you want to make it so bosses are invulnerable to "Demi" or take lesser damage then just change the 50% to something else when you come around to dealing damage to them.

Happy eventing!


  1. I wish I knew how to make games like that! lol.

  2. Actually, I once tried to make a game using some sort of a game maker.
    Crash and burn. :S

  3. NICE! thanks for sharing.
    need more RPGMaker tutorials! :D

    Did you already created a full game with RPGMaker?

  4. I loved RPGMaker back in the day! Great tutorial.

  5. I wish I could make a game, perhaps something I'll look into in the future. Thanks!

  6. I remember the old days of D&D when you didn't have none of this and you had to put it all on paper. RPG Maker is amazing.

  7. Looks similar to the OFP editor, Following.

  8. BTW, you're a PHD student? What are you studying?

  9. I'm not very good at this, nice post btw.

  10. Thanks for the tutorial, very useful.

  11. Could have explained what the spell did at the start of the post so that we knew what is was. Other than that, good post. +1