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.
