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,142
Reaction score
13,643
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,213
Reaction score
4,540
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,272
Reaction score
7,143
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,012
Reaction score
11,349
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 Profile Posts

Turns out 4 layers is A LOT.
I noticed random Japanese dialogue in the FF7 remake while playing in English. More than once. Just now I saved a vid where Tifa spoke Japanese after a battle. We all make mistakes lol, this is kinda funny though
I wonder if the new RPG Maker will have a built-in ABS for maps or a light effect system plugin out of the box.
Not having false expectations, but if it has both, then wow. I am gonna party all night. Nah I lie. I will party all night anyway, just searching for a good excuse. :stickytongue:
And BAM!, the moment you do understand Python setters by studying JS prototypes. That's called SERENDIPITY, coming with something when you was searching for something else. From "The three Princes of Serendib", a persian novel.
The sinking feeling when you realize your grandmother probably isn't long for this world, and the frustration when you know that this pandemic will take her away...not because she has Covid, but because no doctor is willing to see a patient to even run simple diagnostics anymore if one of her symptoms happens to be a recurring fever, even if her primary care physician gives her the test and it comes back negative.

Forum statistics

Threads
99,627
Messages
967,415
Members
131,296
Latest member
Zenkets
Top