Visustella Consumble Defensive States issues....

So I am running all the correct plugins. My objective is that there is a skill in my game called Backstab.

I am trying to create a skill/spell that will give a 1 time immunity to this skill.

I am trying to figure out the Syntax.

I know the plugin is working, because if I use the notetags for 1 time immunity to ALL skills, it works.

I want it only to stop this single skill. One time. And then be expended.

The Backstab Skill is in the Skill Type "Rogue" in my game.
I have tried the various notetags for it, including the one that uses the number of the skill in my list which is 0033 or 33. I have tried the one that uses the name of the skill (Backstab). I have tried using both.

I have tried to use the one for charges and just set it to 1.

I am not currently using the damage barrier plug in commands with this state and know already that won't work.
I think that if it is a issue with a paid Visustella plugin, you're entitled to support so just drop them a support ticket. Other than that all I can say is...
So I am running all the correct plugins.
Which plugins exactly?
I am trying to create a skill/spell that will give a 1 time immunity to this skill.
For starters, what does the backstab skill do? Is it something that can be done through a state change (e.g. have a state called "backstabbed")?
Please actually paste in the notetags you're using, rather than just describing them. Screenshots of the skill and state are also good.

33 is correct, you never want to use leading zeros (even though that's the way it's written in your database).
Can you even do that? I read the plugin instructions out of curiosity and can't find that option (blocking a specific skill). Haven't used this myself though.

Can you make the backstab skill have backstab element, and block that element once?
Please actually paste in the notetags you're using, rather than just describing them. Screenshots of the skill and state are also good.

33 is correct, you never want to use leading zeros (even though that's the way it's written in your database).
Thank you that helps. Was not sure if I had to put the 00s in, but I tried both ways so still not to the bottom of it yet. I am going to post some screenies.
Attached is my current plugins. The two that are currently not turned on are not relevant to combat. And again, I have made the "stop all skills" function work. So you can block skills. Just can't get it to block individual skills.

A screenshot of the skill I am trying to stop once, and then have the protection end. The skill "type" in the database is "Rogue" and I have made multiple different skills under that time.

A screenshot of what Visulstella tells you to use.

I have tried the following note tags: (Individually)


<1 Charges Immunity Rogue: 33>

<1 Time Immunity SType: 33>

<1 Time Immunity Rogue: 33>

<1 Time Immunity SType: Backstab>

<1 Time Immunity Rogue: Backstab>

<1 Charges Immunity Rogue: 33>

<1 Charges Immunity SType: Backstab>

<1 Charges Immunity Rogue: Backstab>
So, overall, your problem is that you're confusing "skill" with "skill type".

<1 Charges Immunity Rogue: 33>
<1 Time Immunity Rogue: 33>
<1 Time Immunity Rogue: Backstab>
<1 Charges Immunity Rogue: 33>
<1 Charges Immunity Rogue: Backstab>
These are invalid, they don't follow the syntax in the instructions. It never says you can/should replace the word "SType".

<1 Time Immunity SType: Backstab>
<1 Charges Immunity SType: Backstab>
This is incorrect because Backstab is not the SType. Rogue is. It would work if you said "SType: Rogue", but it would apply to all Rogue skills.

<1 Time Immunity SType: 33>
Same issue as above - you don't show the Types tab of your database, but Rogue is almost certainly not the 33rd skill type. 33 is the ID of Backstab.

This plugin does not provide a way to have immunity to a specific skill.

However, most of what's in this plugin is very simple to duplicate using notetags from the Battle Core.

So if you only want to be immune to Backstab, no other Rogue skills, give your state this notetag:
Code:
<JS Pre-Damage as Target>
if (this.isSkill() && this.item().id==33)
{
    value=0;
    target.removeState(state.id);
}
</JS Pre-Damage as Target>
Thank you so much! This is extremely helpful.

Basically this project is adapting the rules from my LARP into an RPG maker game. So I had to figure out how to make armor a seperate set of HP which I did with barriers, and then I needed defense spells that stop specific skills. I was able to adapt this to several other spells/skills.

Now I wish there was a way to make a state resistence that depleted after being used to resist a state. As some skill apply a state and do a little damage in our LARP, but I can make due with just giving the state resistence a duration if this is not possible.

It would have also been nice if the item durability from Yanfly's old plugins was adapted to MZ. The armor people wear should break when it reaches zero, but I can live without that as well.

Again thank you very much.
Now I wish there was a way to make a state resistence that depleted after being used to resist a state.
Do the same idea as above, but see if the incoming skill tried to apply the appropriate state.
Code:
<JS Post-Apply as Target>
if (this.item().effects.some(effect => effect.code==Game_Action.EFFECT_ADD_STATE && effect.dataId==X))
    target.removeState(state.id);
</JS Post-Apply as Target>
replace X with the ID of the state.

It would have also been nice if the item durability from Yanfly's old plugins was adapted to MZ. The armor people wear should break when it reaches zero, but I can live without that as well.
You can use it with Project FOSSIL, I think, but I don't know how well it will mix if you have VisuStella plugins in the same project.
Yay it worked! Thanks! I don't think I will mess around with Fossil but I have a work around. There was a time in our LARP where the rules for armor allowed you to "repair" the armor when not in combat.

Is there a way to make a skill used in the menu screen cost money? EDIT: I see it's in skill states core, playing around with it now. Basically just want it to cost money to put on your armor. I have a skill to allow them to remove it so that they can "reset it".

Original thread: https://forums.rpgmakerweb.com/threads/visustella-consumble-defensive-states-issues.159271/