Reduce Chance of State from Given Action? (or adjustment to Action States script?)

Not sure how much this'd succeed.

Guarding reduces the chance that you'll get poisoned from Toxic Fang. But it won't reduce the chance of getting poisoned from Sludge Field.

You can't get burned from Fire II. But you can get burned from Burn Spore.

A helmet reduced your chance of bleeding from High Slash, but not from Mid Slash or Low Slash or Curse Bleed.

Something like that. 

I mean Victor has a script where you can tag objects to trigger a state by a chance when hit from a certain skill

http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/action-states/

but there's no way to reduce that chance, unless that script was adjusted or had a snippet added.

like

<skill type state add 300: 30, -50%>I asked him and he said he's too busy to be interested in such a feature. 

Although his script would also make a good reference.

And I wouldn't know how to properly use 

http://www.himeworks.com/2013/07/16/feature-conditions/

to my liking for this function and I think writing the condition would be too troublesome because you'd have to condition all the possible things that could reduce the chance of a given Apply State feature from a skill
Just have your guard state add "state resist: poison"
But I want it to relate to specific actions. Like say armor will reduce your chance at being poisoned from Toxislash

but not from Sludgestorm or whatever.

That's what I mean.
The way Guard works in the coding is by reducing your chance to hit universally, so to do this the Guard mechanic would need to be modified.  But then you'd have to code each piece of armor using tags with a toggle switch determining what skills it can or cannot resist.  That's a very tedious and sloppy way of doing this, it'd quickly get out of hand if you use a lot of skills in your game.

Rather, I'd recommend just putting the state rate on the armor itself and coming up with different types of states for each ability.  Toxislash would cause "Poison" state # 24 while Sludgestorm would cause "Poison" state # 25.  This way you can freely adjust them at will without needing to worry about updating every single piece of armor in the game whenever you add a new skill.  Any skills that cure poison you just make them cure both types of poison.

Whether it you did it your way or did it my way, you'd still be creating a massive permissions list for each piece of armor that exists, so you might as well save yourself the trouble of typing up all those tags by just doing it using the game's built in features.  Make a state, give the armor state rate, then adjust the rate by whatever you want.  Easy, no scripts needed, does what you want it to do.
You also have to think about the fact that I'm not just making Fire-Burn and Spore-Burn.

I'm making individual state reductions.

Regardless of the guard aspect, I'd still like to have it so that armor reduces the chance of getting a state from certain skills.

A helmet reduces the chance of bleeding from High attacks.

So I would just make a comment list of each of the skills that have that priority and put something like

say 

<skill type state add 301: 30, -50%><skill type state add 302: 30, -50%><skill type state add 303: 30, -50%><skill type state add 304: 30, -50%> (or whatever the comment call would be)

meaning that an iron helmet would reduce your chance of bleeding from those 4 moves by 50% and then I could just copy those to and replace -50% with a lower number for something like a leather hat.

And one reason I don't want to have to make multiple states is because if something removes a state by say a 50% chance, that wouldn't be a 50% chance to remove bleeding, but a 50% chance to remove High Bleeding and a 50% chance to remove Mid Bleeding and a 50% chance to remove Low Bleeding a 50% chance to remove spellful bleeding.

That also means that you'd have 4 different Bleeding slip states. And for other states, that means that the different effects would be added together. Which isn't what I'm wanting.

And this works even less with say, Stun.

Because say that different spells and skills stun different enemies and different things enemies can't be stunned by (like a robot being stunned by Thunder by 50% chance and never by a Tackle (yet Tackle being a damaging move and dealing a little damage))

Original thread: https://forums.rpgmakerweb.com/threads/reduce-chance-of-state-from-given-action-or-adjustment-to-action-states-script.25527/