RETROACTIVELY CHECKING SKILL USE (RM2K3)
Posts
Pages:
1
This is a topic I've seen around a couple times. I bookmarked it, but I seem to have lost it and I can't find the link anywhere.
I know there's a way using RM2k3's battle system where you can check what skill a character uses from the Skill command. It involves setting a variable to the Hero's MP before and after a 'dummy' skill use, and then checking it to see if it equals the amount the skill costs, <I>immediately</i> after the skill has been used.
This part is important, because I plan on scripting most of the skill's actual use in the Battle Event window, so I need the skill's code to start as soon as I use the dummy skill. I've found ways you can make it activate on the next turn, but that could be iffy at best, because the skill could kill the enemy who's turn it is, or something of that nature.
I thought I read somewhere that if you make the skill's code the page before the code that sets the Hero's MP, the battle system will read it, and right after the dummy skill animation and damage is calculated, the game uses the real skill. Does anyone know what I'm talking about?
I know there's a way using RM2k3's battle system where you can check what skill a character uses from the Skill command. It involves setting a variable to the Hero's MP before and after a 'dummy' skill use, and then checking it to see if it equals the amount the skill costs, <I>immediately</i> after the skill has been used.
This part is important, because I plan on scripting most of the skill's actual use in the Battle Event window, so I need the skill's code to start as soon as I use the dummy skill. I've found ways you can make it activate on the next turn, but that could be iffy at best, because the skill could kill the enemy who's turn it is, or something of that nature.
I thought I read somewhere that if you make the skill's code the page before the code that sets the Hero's MP, the battle system will read it, and right after the dummy skill animation and damage is calculated, the game uses the real skill. Does anyone know what I'm talking about?
Pages:
1














