Adding a Temporary Immunity skill

I want to add a skill that makes the caster Immune to all damage for an x-amount of turns.
How would i go about doing that?
I have the Scope set to User... Occasion set to Battle Screen
Success at 100%... but now for the effect. That is where i get lost.

I can add a defence buff, but i want my character to be 100% immune to all attacks, and adding 15 Defence buffs only goes so far.
I can go for a Guard State of 1000%, but then i can't limit it to only 1 or 2 turns.
Immortal only prevents my character from dying, and it is a State... so i can't limit it to 1 or 2 turns.

Anyone have any ideas?
I can go for a Guard State of 1000%, but then i can't limit it to only 1 or 2 turns.
Immortal...i can't limit it to 1 or 2 turns.
What does this mean? In your state settings you can set the duration to however many turns you like. That has nothing to do with other Traits on it. However, the max value for guard state will only result in a 20% damage reduction, so it's not what you're looking for.

To actually take no damage, you need to use a plugin. If you get VisuStella's Battle Core, you can give the state the notetag
Code:
<JS Pre-Damage as Target>
if (this.isDamage())
    value=0;
</JS Pre-Damage as Target>

Just be aware that the Battle Core has a lot of settings and changes, and a lot of those are enabled by default, so you'll need to go through the plugin parameters carefully if you want to use the notetag but not change how battle works.
I'm pretty sure you can just make a state that has element rate 0% for all your existing elements?

How can you possibly not limit a state by turns?
1673361591495.png

I'm like 98% sure MZ still has this.
What does this mean? In your state settings you can set the duration to however many turns you like. That has nothing to do with other Traits on it. However, the max value for guard state will only result in a 20% damage reduction, so it's not what you're looking for.

To actually take no damage, you need to use a plugin. If you get VisuStella's Battle Core, you can give the state the notetag
Code:
<JS Pre-Damage as Target>
if (this.isDamage())
    value=0;
</JS Pre-Damage as Target>

Just be aware that the Battle Core has a lot of settings and changes, and a lot of those are enabled by default, so you'll need to go through the plugin parameters carefully if you want to use the notetag but not change how battle works.
Thanks for the Info on the Guard state, and the VisuStella plugin.
I'll check that out.

Also, you made me realize i can just create a new state, set the Element Rate of all attacks to 0% and have roughly the same effect. Or at least... i think this is how it works. Hopefully: )
Thanks anyway!
I'm pretty sure you can just make a state that has element rate 0% for all your existing elements?
I just realized that too yea🙂
Thanks though.
If that works for everything, that's a good idea.
that works for anything that has a damage element, but not if no element is selected.

however you can set the SP-Parameters for physikal and magical damage to zero as well, that will work for everything but "certain hit".

Combining both means that only those skills that are set to certain hit but have no damage element would get through
Thanks, @Andar - I knew there was a situation that wasn't covered by elements, but I couldn't come up with it off the top of my head.

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-temporary-immunity-skill.153959/