Oh please coding angels of the RPG Maker forum, help this newbie understand.
My goal is to create a robot character in RMMZ (an ally). The idea is that he will have a battery life. During each battle he will have a limited amount of energy before he runs out. Adding new body equipment will extend his lifespan in battle.
I have two ideas of how this might work.
The first is to give him a FF7 style death sentence at the beginning of each fight. When he equips better body armour the timer on the death sentence is increased. Rather than casting death it should petrify him permanently until the end of battle.
The second idea is that for every ability he uses decrease his agility by 10% or so, up to the point his ATB gauge barely fills up at all. I like this idea better.
For the latter idea, I'm fairly confident that I need to stack debuffs on the character each time he uses a special ability, but after a day of searching I'm still completely lost.
I found a video about how to add stackable debuffs, but it seems to have no effect whatsoever. Additionally, I would want my agility reduction to stack multiple times and I have very little clue how to expand the code he used to facilitate a 10x stack of agility reduction.
Here's a link to the vide...
This is my code modified from his example.
The steps I've made so far are to create 8 states of reduced agility. The idea was each time a special move was used it would call an expanded version of this code and switch the character's state to one with a more detrimental effect.
I figured a series of nested if statements would do the trick even if it's a bad way of doing it, but that's already beyond my coding skill. I can't even get the basic 2 stage debuff stack to work yet.
I might be barking up the wrong tree entirely.
Please be aware that I don't know my way around the RMMZ interface fully yet, I certainly don't know JavaScript. If you're willing to help, please note I'll need to be baby stepped.
Thanks in advance. I can only pay you with words of deep appreciation.
Just so you can get a sense of what I've done in my database, here are a couple of clips of that.
My goal is to create a robot character in RMMZ (an ally). The idea is that he will have a battery life. During each battle he will have a limited amount of energy before he runs out. Adding new body equipment will extend his lifespan in battle.
I have two ideas of how this might work.
The first is to give him a FF7 style death sentence at the beginning of each fight. When he equips better body armour the timer on the death sentence is increased. Rather than casting death it should petrify him permanently until the end of battle.
The second idea is that for every ability he uses decrease his agility by 10% or so, up to the point his ATB gauge barely fills up at all. I like this idea better.
For the latter idea, I'm fairly confident that I need to stack debuffs on the character each time he uses a special ability, but after a day of searching I'm still completely lost.
I found a video about how to add stackable debuffs, but it seems to have no effect whatsoever. Additionally, I would want my agility reduction to stack multiple times and I have very little clue how to expand the code he used to facilitate a 10x stack of agility reduction.
Here's a link to the vide...
This is my code modified from his example.
If(b.isStateAffected(31)) || b.isStateAffected(32)){b.removeState(31);b.addState(32);}else{b.addState(31);};
The steps I've made so far are to create 8 states of reduced agility. The idea was each time a special move was used it would call an expanded version of this code and switch the character's state to one with a more detrimental effect.
I figured a series of nested if statements would do the trick even if it's a bad way of doing it, but that's already beyond my coding skill. I can't even get the basic 2 stage debuff stack to work yet.
I might be barking up the wrong tree entirely.
The short of it is I'm after a stackable agility debuff every time the character takes an action (or uses a TP skill if that's easier) until the ATB gauge barely fills at all.
Please be aware that I don't know my way around the RMMZ interface fully yet, I certainly don't know JavaScript. If you're willing to help, please note I'll need to be baby stepped.
Thanks in advance. I can only pay you with words of deep appreciation.
Just so you can get a sense of what I've done in my database, here are a couple of clips of that.