Is This Shield State Concept Possible?

SefirosuKuraodo

Veteran
Veteran
Joined
Apr 7, 2015
Messages
66
Reaction score
20
First Language
English
Primarily Uses
N/A
State-affecting plugins I'm using: Yanfly's Buffs & States Core, HIME's State Change Animations, & Sumrndmdde's State Popups.

There's a state I'd like to apply to a battler that would nullify/block the damage from a certain among of attacks. For example, you apply this defensive state, we'll say a magic shield, and it will completely negate the damage from the next three attacks, no matter what they are. As such, a simple Barrier state wouldn't really cut it if I wanted to stay true to that concept, since it would limit the damage negation by a specific number. I've tried to think of a few ways to get this to work, but unfortunately I just can't seem to come up with a solution. Is such a state possible? I'd appreciate any guidance and/or ideas on how to get around this if it's not doable ^_^
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
You only want it to block a specific amount of damage? Or the shield automatically disperses after a specific amount of damage taken? Making a state like these is not really hard, since you are using Yanfly's Buffs & States. Could you provide me more detail about it?
 

SefirosuKuraodo

Veteran
Veteran
Joined
Apr 7, 2015
Messages
66
Reaction score
20
First Language
English
Primarily Uses
N/A
You only want it to block a specific amount of damage? Or the shield automatically disperses after a specific amount of damage taken? Making a state like these is not really hard, since you are using Yanfly's Buffs & States. Could you provide me more detail about it?
Thanks for replying. It's not exactly that I'd like to negate a certain threshold of damage, but three consecutive attacks regardless of the amount of damage received. So let's say the Boss has two attacks, one deals 100 damage, and one that deals 1,000 damage. If I use a Barrier state, say 300 points' worth, then it would mitigate 3 attacks worth 100 damage, but if the Boss uses the big attack, it would only mitigate 300 points of it, and the Actor would still suffer 700 points of damage.
What I'm looking for is this: the Actor applies this state, and no damage is sustained from the next three attacks, whether they're each 100 points of damage, or whether they're all 1,000 points of damage. I hope this clarifies it a bit more.
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
So the actor will completely nagate all damage in the next three attacks, right? I can make a state which nagates all damage taken, and will automatically be removed after three attacks (or after some turns you set in database). Here is the piece of codes for your state note box:
Code:
<Custom Apply Effect>
target._attackCounter = target._attackCounter || 0;
</Custom Apply Effect>

<Custom React Effect>
if (value > 0 && target._attackCounter < 3){
target._attackCounter += 1;
value = 0;
if (target._attackCounter >= 3){
target.removeState(x); //Change X to your state ID
target._attackCounter = undefined;}}
</Custom React Effect>

<Custom Remove Effect>
target._attackCounter = undefined;
</Custom Remove Effect>
 
Last edited:

SefirosuKuraodo

Veteran
Veteran
Joined
Apr 7, 2015
Messages
66
Reaction score
20
First Language
English
Primarily Uses
N/A
So the actor will completely nagate all damage in the next three attacks, right? I can make a state which nagates all damage taken, and will automatically be removed after three attacks (or after some turns you set in database). Here is the piece of codes for your state note box:
Code:
<Custom Apply Effect>
target._attackCounter = target._attackCounter || 0;
</Custom Apply Effect>

<Custom React Effect>
if (value > 0 && target._attackCounter < 3){
target._attackCounter += 1;
value = 0;
if (target._attackCounter >= 3){
target.removeState(x); //Change X to your state ID
target._attackCounter = undefined;}}
</Custom React Effect>

<Custom Remove Effect>
target._attackCounter = undefined;
</Custom Remove Effect>
Thank you so much! It works beautifully well! ^_^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top