MZ Blind for Magic Attacks?

Regular blind works on Hit Rate which works on attack and physical attacks.

I'm trying to create a Blind State that affects only Magic Attacks. Anyone know how to do this? I have the plugin library from VisustellaMZ if that helps. I'm sure there is a way, but can't find it! Thanks!
You can use my Custom Hit Formula plugin.

You'd make a hit formula that references the magic blind state and paste it into your magic skills.

For example, if your magic blind state is ID 42, the below will make you 50% less likely to hit with that state on.
Code:
<hitformula>
Math.random() < item.successRate * 0.01 - (user.isStateAffected(42) ? .5 : 0)
</hitformula>
Another way you can achieve this without using a plug in. First, create a new state. Call it like "magic blind" or something like that.

(Then, In the "features" section of this state, you'll want to reduce the character's magic attack or magic accuracy. Unfortunately, MZ doesn't have a built in feature to reduce magic accuracy specifically. However, you can achieve a similar effect by reducing the character's magic attack. This will make their magic attacks less effective, simulating the effect of being "blind".)

So to do this, add a new feature: "parameter - m.atk - Rate- [x]%". Replace [x] with the percentage you want to reduce the character's magic attack by. for example, if you want to reduce it by 50%, you would put 50%.
Now, viola, whenever a character is in the "magic blind" state, their magic attacks will be less effective.
Then, In the "features" section of this state
There is no such thing as a "features" section.

you'll want to reduce the character's magic attack or magic accuracy.
There is also no such thing as magic accuracy.

However, you can achieve a similar effect by reducing the character's magic attack. This will make their magic attacks less effective, simulating the effect of being "blind".
How is doing less damage simulating the effect of not hitting? Those are two hugely different things. A game may have many other mechanics that are triggered on whether or not a skill hits - simply reducing its damage is not at all the same thing.
Haha long day, yeah you're right, but making it 0 does in a way simulate a miss if it does no damage. I'm not sure how that isn't clear? I still have it going in the correct direction, but it could be more crystal. Let me correct this. In MZ, to simulate a "blind" effect for magic, you could create a state that increases the target's Magic Evasion.
First, create a new state In your database, go to the "states" tab and create a new state. Let's call it "Magic Blind".

Increase Magic Evasion In the "Traits/Features" section of the "Magic Blind" state, add a new trait: "Ex-Parameter-Magic Evasion". Set the rate to a value that suits your game's balance. This will make the affected character more likely to evade magic attacks, simulating the effect of being "blind".

Now apply the state. You can apply the "Magic Blind" state to characters using skills, items, or other game mechanics. While I was writing this, I just thought of another way to achieve this. A sort of workaround since MZ doesn't have a default magic blind state like the default physical.

First, create a new state in your database, go to the "States" tab and call it "Magic Blind".

Next, create a conditional branch in each magic skill. Go to the "Skills" tab and open each magic skill. In the "effects" section, add a "conditional branch" that checks if the user is affected by the "Magic Blind" state.

Next, go ahead and change the hit rate, If the user is affected by the "Magic Blind" state, reduce the hit rate of the skill. You can do this by adding a "Change Skill" command in the "Conditional Branch" and setting the hit rate to a lower value.

A final touch up to the idea is to reset the hit rate, If the user is not affected by the "Magic Blind" state, reset the hit rate of the skill to its original value. You do this by adding another "change skill" command outside the conditional branch. This way, when a character is affected by the "magic blind" state, their magic skills will have a lower hit rate, simulating the effect of being "blind". Really many ways to skin this cat :LZYcat:. Hope something helps.
but making it 0 does in a way simulate a miss if it does no damage
not quite. a spell that misses cannot apply any of its effects. a fire spell that does damage and burns the target would still be able to cause a burn if the damage was reduced to 0.
Increase Magic Evasion In the "Traits/Features" section of the "Magic Blind" state, add a new trait: "Ex-Parameter-Magic Evasion". Set the rate to a value that suits your game's balance. This will make the affected character more likely to evade magic attacks, simulating the effect of being "blind".
also not quite. the magic blind is to reduce the accuracy of a single battler. if theres multiple actors and one enemy, blinding an actor reduces the odds of that actor hitting. a magic evasion state on the enemy reduces the odds of all actors hitting

Next, create a conditional branch in each magic skill. Go to the "Skills" tab and open each magic skill. In the "effects" section, add a "conditional branch" that checks if the user is affected by the "Magic Blind" state.
skill effects do not have a conditional branch option. those are reserved for events and common events. and although you can attach a common event to a skill...
Next, go ahead and change the hit rate, If the user is affected by the "Magic Blind" state, reduce the hit rate of the skill. You can do this by adding a "Change Skill" command in the "Conditional Branch" and setting the hit rate to a lower value
Im having trouble finding the setting to change the hit rate of the skill inside the change skill command. can you show me a screenshot of it?
You can use my Custom Hit Formula plugin.

You'd make a hit formula that references the magic blind state and paste it into your magic skills.

For example, if your magic blind state is ID 42, the below will make you 50% less likely to hit with that state on.
Code:
<hitformula>
Math.random() < item.successRate * 0.01 - (user.isStateAffected(42) ? .5 : 0)
</hitformula>

Thanks for this! Does the plugin work with visustella’s plugins?

And does the custom hit formula add to the hit formula I already have or I’d have to add all of what I already have together with this new line of code?
Apologies for the double post.

@ATT_Turan, your plugin worked wonders. Thank you very much.

This thread can be closed. Resolved.
making it 0 does in a way simulate a miss if it does no damage. I'm not sure how that isn't clear?
It isn't clear because it isn't correct. As I said in my first response, there are more things that trigger from a skill hitting or not beyond the sheer damage.

In fact, pretty much everything you've said in your post is either wrong or flat out doesn't exist in RPG Maker. This - and several other of your posts - read very much like you're taking garbage made up by an AI and dumping it into a reply.

You're not helping anyone by answering questions with wrong information.

@ATT_Turan, your plugin worked wonders. Thank you very much.
You're welcome, glad to help. If you have any questions, feel free to post in its thread.
I still have it going in the correct direction, but it could be more crystal. Let me correct this. In MZ, to simulate a "blind" effect for magic, you could create a state that increases the target's Magic Evasion.
First, create a new state In your database, go to the "states" tab and create a new state. Let's call it "Magic Blind".

Increase Magic Evasion In the "Traits/Features" section of the "Magic Blind" state, add a new trait: "Ex-Parameter-Magic Evasion". Set the rate to a value that suits your game's balance. This will make the affected character more likely to evade magic attacks, simulating the effect of being "blind".

Now apply the state. You can apply the "Magic Blind" state to characters using skills, items, or other game mechanics. While I was writing this, I just thought of another way to achieve this. A sort of workaround since MZ doesn't have a default magic blind state like the default physical.

First, create a new state in your database, go to the "States" tab and call it "Magic Blind".

Next, create a conditional branch in each magic skill. Go to the "Skills" tab and open each magic skill. In the "effects" section, add a "conditional branch" that checks if the user is affected by the "Magic Blind" state.

Next, go ahead and change the hit rate, If the user is affected by the "Magic Blind" state, reduce the hit rate of the skill. You can do this by adding a "Change Skill" command in the "Conditional Branch" and setting the hit rate to a lower value.

A final touch up to the idea is to reset the hit rate, If the user is not affected by the "Magic Blind" state, reset the hit rate of the skill to its original value. You do this by adding another "change skill" command outside the conditional branch. This way, when a character is affected by the "magic blind" state, their magic skills will have a lower hit rate, simulating the effect of being "blind".
If the OP wanted an AI response they could've just asked it themselves.
If the OP wanted an AI response they could've just asked it themselves.
They asked, I helped. Don't Ping me unless you need some help with a script.
They asked, I helped. Don't Ping me unless you need some help with a script.
Hi there. You really should not post responses to help threads if, you know, you're not gonna provide concrete help. What you have posted reads like AI-generated bullocks, is neither funny or helpful, and wastes the OP's time.

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.

Original thread: https://forums.rpgmakerweb.com/threads/blind-for-magic-attacks.180269/