New account registration is temporarily disabled.

RMXP: WHERE ARE THE 'STATUS EFFECT' AND 'ACTION PERMITTED' CODE FOR BATTLES LOCATED IN THE DEFAULT SCRIPTS?

Posts

Pages: 1
I'm trying to work with some special effects and a couple of things involved with hashing out a mechanism for one of my games 'logic points', if you will.

For status effects, I'm trying to find the segment of code that I'll need to manipulate for 'slip damage' states - I'm trying for HP, MP, and a couple of other stats. Looking to make states for them with both damage and regen, and make such states settable percentage-based. (I'm figuring the 'settable' functions would be done via the state name - Poison005-1, for example, as HP|Degen|5%. Hope015+2, for comparison, would be MP|Regen|15%. In each case, I'd want everything BUT the last five characters to show as the state's in-game name.)

For 'action permitted', for lack of a better word, I'm trying to figure out what code I'll need to change to block certain actions in battle based on HP/MP status. (0HP isn't necessarily 'defeated' - that requires that both stats = 0.) This isn't just skill actions, although I'd like to be able to block them as well on the same division; I'm hoping to be able to negate the 'attack' and 'defend' options for a character at 0 HP who still has some MP left over. They could still use some skills, and -maybe- items (I may add items to the "can't do that" list as well).

I freely admit it would be nice if someone would be willing to script these for me, but I really need to learn how to script for myself. So, at the moment, all I'm asking for is the code segments I'll need to deal with. If anyone is willing to offer this information, I would greatly appreciate it.
Pages: 1