RPG Maker Forums

Background:

I apologise for asking, but I searched much of Google and didn't find an answer to my question.

I can't program Ruby or the RPG Maker language, but I do understand most things in programming code.

I have two spells.

The first spell creates a "save state," a common event that saves current HP, current MP, current enemy HP, and current ailments to different variables.

The second spell loads that save state. Its purpose is to load your stats and parameters from the turn you've saved those, undoing everything.

Say for instance, at turn 3, you create a save state with having 100 HP, 100 MP and being poisoned, then go on in battle. You cure the poison, and deal lots of damage.

But then at turn 6 or 7, you see that you lost a lot of HP yourself. And your MP is almost depleted. So you go back to the turn 3 save state with better stats, but being poisoned as you were then. And the enemy has as much HP as he had at turn 3. Basically, you traveled back in time. And now you're playing more tactically and win the battle.

My question isn't about the game mechanic design itself, but rather the code.

Question:

In Ace, I can set variables of parameters with no problem. More problematic is getting them back to overwrite them with current HP, MP, ailments.

Change Parameters allows me to increase or decrease a parameter with a variable, but not simply set (overwrite) it with that variable. Likewise for Change HP and Change MP.

Any solution to this problem? Thanks. :)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top