The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: lauronpegason on June 20, 2011, 11:57:21 AM

Title: [VX] How to convert SPIRIT to Mana Regen
Post by: lauronpegason on June 20, 2011, 11:57:21 AM
How to convert SPIRIT to Mana Regen

Hi everyone,
this is a rather simple way to make SPIRIT regenerate Mana at the end of every turn. It should work for every turn-based battle system, I haven’t tested it with ATB. It doesn’t need scripting, it requires only one variable and database editing. Obviously you can change both Spirit and Mana to e.g. Defense and HP, and so on.

1) Open the Database (F9) and go to the tag “Troops”. You are going to edit the Battle Event pages.
(http://img52.imageshack.us/img52/6479/tutorial1ex.png)

2) Set the “Condition” to: “When the end of the turn” and “Turn No. 0 + 1 *X”. Press OK.
(http://img148.imageshack.us/img148/518/tutorial2pi.png)

3) Now edit “Span” and set it to: “Turn”.

4) Edit the Battle Event page, as it’s shown in the screenshots below:
@>Control Variables: [0001:SPI/Mana] = [Ralph]'s Spirit
(http://img842.imageshack.us/img842/3087/tutorial3f.png)

5) Then change the variable to the percentage of Spirit that will be converted to Mana at the end of every turn: you can achieve this by dividing the value by 10, 5, 4, 2 (10%, 20%, 25%, 50%) and so on.

Let’s say we want the 25% of Ralph's Spirit to be converted to Mana at the end of the turn.
@>Control Variables: [0001:SPI/Mana] /= 4

Now change Ralph's MP by the variable:
@>Change MP: [Ralph], + Variable [0001:SPI/Mana]
(http://img38.imageshack.us/img38/3516/tutorial4k.png)

This is how the Battle Event page should look like:
(http://img837.imageshack.us/img837/9644/tutorial5y.png)

6) Now repeat these 3 lines for every actor in the database. You don’t need to set a different variable.
(http://img708.imageshack.us/img708/7762/tutorial6.png)

7) You’re almost done: just “Copy Event Page” and paste it for ALL of your troops.

I hope you’ll find this helpful! :)