Quote: (%RPGVirtuoso) Fancy a crumpet, old chap? | (@...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 2000

Limit Break system in rm2k DBS


Reading Article
Author: Ramza
Posted on 08/02/2004
print :: back to list

[

b]Important:[/b]
In order to do this, you need to have the event script I am about to show you in every monster party in the entire game (or at least the monster parties you want your limit in)

[b]Page1[/b]: This will be just for character 1, if you want more limit breaks, duplicate the script again and change the hero that the hp is taken from.
This page will have no properties, it will happen all the time for every monster party you ever see.

Start by taking a variable, and setting it to the amount of hp your hero has. Then do another variable, and set it to the maximum amount of hp your hero can have. Multiply the first one by 100. Then divide it by the second one. This will give you a percentage of that hero's hp. You'll need that to do the limit break fork conditions. Repeat those steps for every hero that you want to have a limit break... be sure to change the variable, and the hero that you take the hp from each time... or you'll mess something up and it won't work right.

actual code:
<img src=http://manaconquest.blade2k.net/helpstuff/pic1.jpg></img>

Follow up with some fork condtions that check to see if the percentage that you got in the above code is between certain numbers (I'd use 1-30, but that's up to you really).

actual code:
<img src=http://manaconquest.blade2k.net/helpstuff/pic2.jpg></img>

Now lets work with the "if your hp percentage is within the required numbers" case.

Make a new switch, name it "Limit On", then create a fork condition to check to see if that switch is off. don't put an else case on this fork. If the switch is found to be off, make it say something like: "Ralph limit break!" and have it turn the switch on. If it is already on, nothing will happen so you don't have to worry here... yet...

actual code:
<img src=http://manaconquest.blade2k.net/helpstuff/pic3.jpg></img>

This is to make sure that the words don't come up every turn that you have your limit break. After that fork, make it teach you your limit skill, raise your stats, or whatever...
(note, you will need seperate switchs, forks and variables for different characters)

Now to work with what happens if your hp is found to be 0% or higher than the amount you need for limit:

[b]Important:[/b]
Make sure to put this at the end of both of the "else cases" for the original variable forks that check to see if your hp is too high or too low for limit.

first make it turn off the "Limit On" switch, then make your hero forget the limit skill, and have his stats go back to normal or whatever. This will make him return to normal if his hp is 0%, or higher than the amount you wanted earlier.

Actual code:
<img src=http://manaconquest.blade2k.net/helpstuff/pic4.jpg></img>

Be sure to put that in both of the "else cases" for the two forks you did for hp... or something will definately mess up...

<b>DON'T USE THIS TUTORIAL ON YOUR SITE WITHOUT THE PERMISSION OF RAMZA, OR HE WILL MAKE YOU EAT YOUR DOG</b>