Custom Battle System Help

Hi! This is my first post, so I hope I'm doing this right. 


I'm making a custom battle system for my RPG, and I don't know where to start. It's split into two sections, but I'll just ask about one of them here. I want a battle system that has a much more in-depth state system, where actions can lead to chain reactions. For example:


(Afflicts Enemy 1 with Gassed State)


(Throws a fireball at Enemy 2, which does Ignite State on the two enemies surrounding it)


(The Gas State on Enemy 1 is affected by the Ignite State instantly, and "explodes", doing damage and removing the Gassed state)


That's the general gist of what would happen. I know I'll have to mess with the pre-existing code, and I've already tried and failed to do it with the UI only. Any tips would be great, and I'm not requesting a whole script. Thanks!
I've moved this thread to Learning Ruby and RGSS. Please be sure to post your threads in the correct forum next time. Thank you.


Tech-Support is for getting the editors to run.


I'm assuming that you're trying to write the battlesystem in RMXP as that is what your profile says, so this goes into learning RGSS.


But to be able to help you, we need a bit more info about yourself: how much experience do you have with programming in general and Ruby specifically?


RMXP was the first maker that even used a scripted engine and it is not as optimized for modifications as the later makers became, so you'll have to learn quite a bit (if you haven't yet).
Thanks. I've learned what I can for RGSS and Ruby, and I've been coding for a bit. I'm no pro, but I know my way around the language

Original thread: https://forums.rpgmakerweb.com/threads/custom-battle-system-help.68120/