Enemy that gets 0 Damage until i use a skill

Status
Not open for further replies.

vitti2801

Villager
Member
Joined
Feb 4, 2020
Messages
12
Reaction score
2
First Language
German
Primarily Uses
RMMV
I need an opponent who gets 0 damage until you apply a skill to him, then you have a window of 2 moves to do damage to him, then he is immune again and you have to use the skill. I tried different things now, immortality doesn't let him die but he still gets damage and I don't like to do this through armor because you can use an armor shred skill later and this can cause balancing problems.

Im thankful for every tip and guess that can point me in a direction.
 

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
323
Reaction score
91
First Language
German
Primarily Uses
RMMV
hmm Immune State would be my first guess,than the Def/mDef Boost..
But that doesnt fit here..perhaps you could create a function that regenerats the lost HP when getting Dmg in a special "Immune State"..
(that way the enemy cant die and will have full hp at the end of each attack if the special Immune State is active)

-
regenerating the full HP would be easier to do,but that could conflict if you are able to hit him without the state and he gets his state back later..

That might not be exactly what you wanted but regeneration has a valid logic that works if somebody is immortal and gets dmg..
(known from films, books, ect)

- also im not sure how to create such a function^^
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,908
Reaction score
1,357
First Language
EN
Primarily Uses
RMMZ
It's awkward to treat all possible damage scenarios (Certain Hit skills, negative HP regen, etc) without a plugin. I'd suggest Yanfly's Buffs & States Core and Auto Passive States plugins here:
I haven't tested, but I think this ought to work:
  1. Make a state that wears off after two turns. This is what will mark the enemy as being vulnerable to damage.

  2. Make another state (for damage immunity), with this in its notebox:
    Code:
    <Custom Passive Condition>
    condition = !user.isStateAffected(15);
    </Custom Passive Condition>
    
    <Custom React Effect>
    if (value > 0) value *= 0;
    </Custom React Effect>
    Swap the 15 for the ID of the state from step 1. These notetags say:
    • "This passive state is active when the bearer is not affected by state 15"
    • "When active, multiply all incoming damage by 0"

  3. Put this in your "immune" enemy's notebox:
    Code:
    <Passive State: 51>
    Swap 51 for the ID of the state from step 2.
 

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
323
Reaction score
91
First Language
German
Primarily Uses
RMMV
It's awkward to treat all possible damage scenarios (Certain Hit skills, negative HP regen, etc) without a plugin. I'd suggest Yanfly's Buffs & States Core and Auto Passive States plugins here:
I haven't tested, but I think this ought to work:
  1. Make a state that wears off after two turns. This is what will mark the enemy as being vulnerable to damage.

  2. Make another state (for damage immunity), with this in its notebox:
    Code:
    <Custom Passive Condition>
    condition = !user.isStateAffected(15);
    </Custom Passive Condition>
    
    <Custom React Effect>
    if (value > 0) value *= 0;
    </Custom React Effect>
    Swap the 15 for the ID of the state from step 1. These notetags say:
    • "This passive state is active when the bearer is not affected by state 15"
    • "When active, multiply all incoming damage by 0"

  3. Put this in your "immune" enemy's notebox:
    Code:
    <Passive State: 51>
    Swap 51 for the ID of the state from step 2.
this info is really helpfull, i didnt know that it is so simple to set the incomming dmg to 0 .
<Custom React Effect>
if (value > 0) value *= 0;
</Custom React Effect>[/code]

  • "When active, multiply all incoming damage by 0"
 

vitti2801

Villager
Member
Joined
Feb 4, 2020
Messages
12
Reaction score
2
First Language
German
Primarily Uses
RMMV
ß
It's awkward to treat all possible damage scenarios (Certain Hit skills, negative HP regen, etc) without a plugin. I'd suggest Yanfly's Buffs & States Core and Auto Passive States plugins here:
I haven't tested, but I think this ought to work:
  1. Make a state that wears off after two turns. This is what will mark the enemy as being vulnerable to damage.

  2. Make another state (for damage immunity), with this in its notebox:
    Code:
    <Custom Passive Condition>
    condition = !user.isStateAffected(15);
    </Custom Passive Condition>
    
    <Custom React Effect>
    if (value > 0) value *= 0;
    </Custom React Effect>
    Swap the 15 for the ID of the state from step 1. These notetags say:
    • "This passive state is active when the bearer is not affected by state 15"
    • "When active, multiply all incoming damage by 0"

  3. Put this in your "immune" enemy's notebox:
    Code:
    <Passive State: 51>
    Swap 51 for the ID of the state from step 2.
worked like a charm, thank you
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,589
Reaction score
5,146
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Today's the day I post my demo!
I am having a great day today humans! May your day be great too! Praise the altar.
Recently discovered that an old member called "Kaus" stole some tilesets from other games, claim as yours, and some people associate his nick with mine. Besides having the same name, he was publishing tilesets too. Bad luck? Guess maybe I'll need to change my nickname... :(

My best practices for a new amazing plugin by this author https://kagedesuworkshop.blogspot.com

Forum statistics

Threads
104,192
Messages
1,004,548
Members
135,712
Latest member
Saediga
Top