Is there a way to make an enemy immune to the battle menu Attack option?

GlitchyTSP

Warper
Member
Joined
Jul 18, 2019
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
upload_2019-7-17_12-17-42.png (Or in this case, fight.)

I wanted to make an enemy that can only be damaged by magic attacks (I.E. The option below Fight), physical attacks won't work.
However, I'm unsure of how to make the enemy immune to the Fight option, I originally thought if I made the enemy immune to
physical attacks it would work, but it seems the fight option may have it's own 'elemental' type.

if what I'm typing isn't making any sense then I apologise, I'll try to RE-phrase my sentence, so that it can be more understandable.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,225
Reaction score
13,773
First Language
English
Primarily Uses
RMVXA
Fight uses your current weapon, which will use whatever element is assigned to that weapon. You'll have to make the enemy immune to all elements which can be assigned to your weapons.

Usually I do this by giving each weapon type their own element (so Bow for Bow weapons, etc), then make the monster immune to all damage of that type with element rate 0%.
 

GlitchyTSP

Warper
Member
Joined
Jul 18, 2019
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Fight uses your current weapon, which will use whatever element is assigned to that weapon. You'll have to make the enemy immune to all elements which can be assigned to your weapons.

Usually I do this by giving each weapon type their own element (so Bow for Bow weapons, etc.), then make the monster immune to all damage of that type with element rate 0%.
Ah thanks.

As a side question, Is there a way to add a message when an attack fails?

Like, say for instance you try to use a physical attack and the enemy mocks you saying something like: "physical attacks won't work."
 
Last edited:

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
5,407
Reaction score
4,807
First Language
English
Primarily Uses
RMVXA
Ah thanks.

As a side question, Is there a way to add a message when an attack fails?

Like, say for instance you try to use a physical attack and the enemy mocks you saying something like: "physical attacks won't work."
I believe this would require you to do some coding inside the methods that check for action success. It might be worth making a request in the RGSS Script Requests subforum.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,405
Reaction score
7,226
First Language
German
Primarily Uses
RMMV
To clear something up that might get lost otherwise:

The "Fight" option always uses skill #1, the same way that "Guard" will always use skill #2.
The behaviour that bgillisp described up there is the default behavior of skill#1. But if you change that skill, then you change how the button behaves. And that can be anything you chose.
There have been cases where someone who didn't know this replaced their skills, assigned skill #1 to a healing skill and then wondered why their enemies no longer attacked (the enemies use the same skill for basic attack) and their own tries to attack trigggered a healing.
 

GlitchyTSP

Warper
Member
Joined
Jul 18, 2019
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I believe this would require you to do some coding inside the methods that check for action success. It might be worth making a request in the RGSS Script Requests subforum.
Will be sure to ask, thanks.

To clear something up that might get lost otherwise:

The "Fight" option always uses skill #1, the same way that "Guard" will always use skill #2.
The behaviour that bgillisp described up there is the default behavior of skill#1. But if you change that skill, then you change how the button behaves. And that can be anything you chose.
There have been cases where someone who didn't know this replaced their skills, assigned skill #1 to a healing skill and then wondered why their enemies no longer attacked (the enemies use the same skill for basic attack) and their own tries to attack trigggered a healing.
Yeah, There's a NOTES section that tells you that, but had it not have been for that or this I would have been clueless.

Thanks.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,118
Reaction score
11,474
First Language
English
Primarily Uses
RMVXA
[dpost]GlitchyTSP[/dpost]
I have merged your posts for you this time.

If you want to quote more than one post use the Multiquote button otherwise the forum software automatically creates a new post. Alternatively you can use @ plus the username which alerts the Member to rhe fact that you have replied to them like this @GlitchyTSP.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

So I have a lighter work schedule next week. Is that a sign to move on to MZ?
I got a new rpg idea yesterday, titled "The Hero We Summoned to Save Us is a War Criminal from our Past?!"
Work on Yanfly's MZ plug-ins is coming along nicely. Looking forward to getting them: http://www.yanfly.moe/wiki/Core_Engine_VisuStella_MZ
so uh variables can only be used for num lol? I guess I gotta fix that once MZ come out lol

Forum statistics

Threads
100,726
Messages
978,838
Members
132,352
Latest member
BM_ANDERSON
Top