RPG Crisis Community Forums: HP/MP Swap

Jump to content

HP/MP Swap Bookmark

User is offline Lyricalias 

  • Advanced Member
  • View gallery
  • Group: Global Moderators
  • Posts: 127
  • Joined: 24-June 10

Find Posts Tutorial/Script info

  • Added on: 05 July 2010 - 11:24 PM
  • Date Updated: 06 July 2010 - 02:25 AM
  • Views: 111
Description: So you've been thinking, "I want a skill that exchanges HP for MP and/or vice versa.", but you couldn't get around to doing it because you couldn't figure out how to code for it. Well, I'm going to help you create a skill that does that.

Written by: Mirageman613

You will need the following things:

-1 switch
-2 variables
-1 sound effect
-1 skill (obviously)
-1 character (what's the point if nobody learns it?)

First, go to the "Skills" tab and make a skill like this:

-Type: Normal
-Attack Influence: 0
-Magic Influence: 0
-Variance: 0
-Base #: 0

Then make the type "Switch", set availability to "Battle" only, and set it to an unused switch. I'll refer to it as "HP/MP swap".

Now go to the "Monster Party" tab, and make a new page. Set it to be activated when "HP/MP swap" is turned on. It should look like this so far:
Trigger: Switch -ON
<>Change Switch: Var Switch OFF
<>


The reason I turned the switch off early...well, it doesn't matter whether it's at the end or the beginning (not in this case, at least).

Now have a sound effect play afterwards, then set up 2 unused variables. Name them "Swap HP" and "Swap MP". Set the former to the HP of the character using the skill, and the latter to his/her/its MP. Afterwards, reduce the character's HP and MP to 1 and 0, but don't kill him/her/it. Then Increase the his/her/its HP by the value in the "Swap MP" variable (It's obvious why), and MP by the value in "Swap HP".

You're finally done! Now let's see the final product.

Trigger: Switch -ON
<>Change Switch: Var Switch OFF
<>Play Sound Effect: whatever it is
<>Change Variable: Var = character's HP
<>Change Variable: Var = character's MP
<>Change HP: character's HP 999 (Remove)
<>Change MP: character's MP 999 (Remove)
<>Change HP: character's HP Var (Add)
<>Change MP: character's MP Var (Add)


This tutorial is actually pretty easy, but I rarely see this type of skill in any RM games (RPGM2KBRPG is probably the only one with it so far). Thank you and goodbye.
0

Share:

Powered by (IM) Tutorials 1.1.0 © 2010, by Michael McCune