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,224
Reaction score
13,760
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,404
Reaction score
4,799
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,390
Reaction score
7,219
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,112
Reaction score
11,460
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

is there a script call that return how much turn has passed in battle?
Does anyone find this hard to read?

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.

Forum statistics

Threads
100,603
Messages
977,723
Members
132,213
Latest member
briggs_Boi
Top