Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: DedlellyDeth 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?
-
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>
-
I thought Parallel Processes don't work in battle.
-
Well they do, thier very dedicated workers as long as thier in Common events.
-
They don't work in the default menu amirite?
Also, do test battles process Common Events?
-
No, just on map and in battles.
-
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.
-
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...
-
I understand variables, OK? I just can't get it to work. What events should I use?
-
Will I have to screenshot it for you?
-
I did it exactly as you said, OK, dick?
I don't need help anymore because I figured it out with a different method.
-
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.