Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How do I make damage increase MP?
« previous next »
  • Print
Pages: [1]

Author Topic: How do I make damage increase MP?  (Read 4189 times)

Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
How do I make damage increase MP?
« on: April 27, 2009, 01:44:23 AM »
What do I do so that whenever a character is damaged, their MP increases by the amount of HP lost?
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How do I make damage increase MP?
« Reply #1 on: April 27, 2009, 05:23:17 AM »
Parallrl Process -Common Events

<varHP1=Current HP>
Wait 0.1 sec
<varHP2=Current HP>
<branch> If varHP1>varHP2
       then <varHP1-varHP2>
                   Add Hero MP from varHP1
<else>
Logged



Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
Re: How do I make damage increase MP?
« Reply #2 on: April 27, 2009, 11:04:49 PM »
I thought Parallel Processes don't work in battle.
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How do I make damage increase MP?
« Reply #3 on: April 28, 2009, 12:02:35 AM »
Well they do, thier very dedicated workers as long as thier in Common events.
Logged



Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
Re: How do I make damage increase MP?
« Reply #4 on: April 28, 2009, 12:20:20 AM »
They don't work in the default menu amirite?

Also, do test battles process Common Events?
« Last Edit: April 28, 2009, 12:29:19 AM by DedlellyDeth »
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How do I make damage increase MP?
« Reply #5 on: April 28, 2009, 12:28:13 AM »
No, just on map and in battles.
Logged



Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
Re: How do I make damage increase MP?
« Reply #6 on: April 28, 2009, 12:59:44 AM »
Quote from: Rahl on April 28, 2009, 12:28:13 AM
No, just on map and in battles.

What? I don't understand what you were answering.

Also, your code doesn't work for ****. I did it exactly as you said, went into a battle in my game, and nothing happened. I think you should test something before giving advice.
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline Hirochi-Zangus

  • Super Mystery Solver
  • Zealot
  • *
  • Posts: 520
Re: How do I make damage increase MP?
« Reply #7 on: April 28, 2009, 01:21:26 AM »
He's starting to confuse me too, but I understand the coding he's getting at...

You need 3 variables  Hp-hero, hp-amount, & mp-restore

hp-hero = current hp.

Hero gets attack...  hp-amount = damage

hp-hero  -  hp-amount  =  mp-restore

Have an event in your battles that say...   mp-restore>0, then increase hero mp by var3 (mp-restore)

Do you get it? I hope i made it clear...
Logged

Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
Re: How do I make damage increase MP?
« Reply #8 on: April 28, 2009, 01:29:28 AM »
I understand variables, OK? I just can't get it to work. What events should I use?
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How do I make damage increase MP?
« Reply #9 on: April 28, 2009, 02:12:13 PM »
Will I have to screenshot it for you?
Logged



Offline DedlellyDeth

  • Exemplar
  • *
  • Posts: 1,215
Re: How do I make damage increase MP?
« Reply #10 on: April 28, 2009, 10:08:19 PM »
I did it exactly as you said, OK, dick?

I don't need help anymore because I figured it out with a different method.
Logged
The previous post may contain rudeness. I'm just trying to help people, is all. I apologize for any damages inflicted. I just want to be friends. :flower:

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
Re: How do I make damage increase MP?
« Reply #11 on: April 28, 2009, 10:22:10 PM »
Quote from: DedlellyDeth on April 28, 2009, 12:59:44 AM

Also, your code doesn't work for ****. I did it exactly as you said, went into a battle in my game, and nothing happened. I think you should test something before giving advice.

I did it exactly as you said, OK, dick?

These people are trying to help you. No one here is obligated to do that, so if you're going to be rude inconsiderate, no one is going to want to try and help you at all anymore.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How do I make damage increase MP?
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum