Charas-Project

Game Creation => Requests => Tutorials => Topic started by: zuhane on June 16, 2008, 11:29:43 AM

Title: Here's how you add a combo builder!
Post by: zuhane on June 16, 2008, 11:29:43 AM
Ive never really known my purpose on charas... until now! I've never realy given a tutorial... until now!
Yeah, the reason I never made a tutorial is plainly because I had nothing to teach. This tutorial will enlighten
people to a much overlooked event which allows combos in battle.

=========What this tutorial does===========
You character gains a bit of charge for attacking. If he or she attacks 3 times,
the next time, the charge will reset and the character will attack twice in a row.
It's very simple and looks great.
==================================

(People who are advanced with RPG Maker need not read this tutorial)

First, we need a switch to be activated. Once activated, the combo effect will work
in all battles with this page of coding in.

1. Make a switch get turned on. This can be in the storyline so you start with it,
or be an ability you must purchase.

2. The event for the battle must be activated by 2 things, the switch must be on
and the character you want to have the ability must select attack. (don't worry,
you can make a battle event have more than 1 trigger.)

3. Here's the tricky bit. You must make a conditional branch inside the page activated
by the switch and character attack. So make a conditional branch, give it an else handler
(meaning if the condition has not been met, the "else" will take place.) Only 1 variable
has to be used (thank god!) Have the conditional branch set with a variable called...
I dunno... "Attack Charge" and set it to three.

4. This means that something will take place if the variable "Attack Charge"
is 3, and the thing in the else handler will take place if it's below 3. In the
main area in the conditional branch (not the else handler), add the instructions in 5.

5. a.) Insert a nice battle animation which shows you are about to do a combo.
It can be something exciting, or a simple green character flash.

b.) Enable the combo for that character by selecting... duhhhh.... "Enable Combo"
and setting it to 2.

c.) Set "Attack Charge" to 0 again.

This means that the character will do somthing cool, attack twice in a row and
then attack charge will be set back to 0. You will have to then attack 3 times again
to get this combo back, you won't permanently attack twice in a row.. and I'll
show you why in this next step...

6. You now need to put some events in the "else handler". These take place
if you do not have full attack charge. They are designed to charge your "Attack
Charge" up.

a.) Set "Enable Combo" to 1. That means that when you attack you
only attack once with the exception of when "Attack Charge" is 3 on step 5 that
I just showed you! Basically, you just attack once.

b.) Show a battle animation that demonstrates that you are gaining some
charge. Maybe an animation that says "+1 Charge!" or make the character
flash.

c.) Add 1 to "Attack Charge"!

7. That's it! Test your game and work on it if you want. Improve it, tamper with it, do whatever!
I don't want crediting but I don't want to be accused of copying other people's
games when I made this tutorial! That's it... hope it works...