lawlietorochi

Villager
Member
Joined
Jan 21, 2021
Messages
19
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMZ
Hi guys, I'm going to be straight up I want a specific enemy and only he has weakness to a battle consumable item.

For example: I want when I use the salt item on the "slug" enemy it dies immediately, but the "rat" enemy totally ignores it.

Any idea? I tried to do it by status by creating the status "salty" and making the rat ignore this status, however the "slug" doesn't die from HK I need to hit it one time more.

If I put direct damage on the item the "rat" enemy will also take that damage.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,944
Reaction score
2,127
First Language
English
Primarily Uses
RMMV
Apply a unique status on that enemy from the troops menu at the start of the encounter. Have the item apply a different unique status and have it call a common event. In the common event, make conditional branches for all 8 enemies that first check if the enemy is inflicted with the status from the item, and then whether they have the status on them that should be applied at the start of battle, only on enemies that should be affected by the item. If both conditions are met, inflict Death on that enemy.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,884
Reaction score
8,587
First Language
German
Primarily Uses
RMMV
If I put direct damage on the item the "rat" enemy will also take that damage.
almost correct.
you need to make that damage have a new element that is unique to that attack, and then all those enemies that are supposed to be imune to that attack needs an elemental damage rate 0% for that damage element.

So the element might be "salt" and the rat would have "salt damage 0%" as a trait.
 

lawlietorochi

Villager
Member
Joined
Jan 21, 2021
Messages
19
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMZ
Apply a unique status on that enemy from the troops menu at the start of the encounter. Have the item apply a different unique status and have it call a common event. In the common event, make conditional branches for all 8 enemies that first check if the enemy is inflicted with the status from the item, and then whether they have the status on them that should be applied at the start of battle, only on enemies that should be affected by the item. If both conditions are met, inflict Death on that enemy.
Thanks my friend, it worked perfectly ♥
 

lawlietorochi

Villager
Member
Joined
Jan 21, 2021
Messages
19
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMZ
almost correct.
you need to make that damage have a new element that is unique to that attack, and then all those enemies that are supposed to be imune to that attack needs an elemental damage rate 0% for that damage element.

So the element might be "salt" and the rat would have "salt damage 0%" as a trait.

I considered this possibility, however I use the Visustella plugin that improves the character's profile page and this "new element" would appear if I created it, it would defeat the purpose of what I needed which is something more "easter egg".

Edit: Another detail is also that this opens up a margin for errors if I forget to put resistance on other enemies.

The other comrade's step by step worked perfectly. Thank you for your idea too ♥
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,677
Reaction score
15,293
First Language
English
Primarily Uses
RMMV

I've moved this thread to MZ Support. Thank you.



@lawlietorochi , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
167
Reaction score
104
First Language
English
Primarily Uses
RMMZ
I considered this possibility, however I use the Visustella plugin that improves the character's profile page and this "new element" would appear if I created it, it would defeat the purpose of what I needed which is something more "easter egg".
There's an "excluded elements" list setting in the visustella plugin(to hide specific elements from the status menus) in case you or anyone else wishes to explore this option.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,838
Reaction score
1,766
First Language
English
Primarily Uses
RMMV
Elements seems a bit hackish. You could try this instead:

1. Put a <Slug> note tag on any slug enemies you have
2. Put, in the item's damage formula, the following:
Code:
c = b.isEnemy() ? b.enemy() : b.actor(); c.meta.Slug ? 9999 : 0
Should do 9999 damage to any slug enemies (set the 9999 to whatever damage formula you want to use) and 0 damage to anything else.

Note that <Slug> is case sensitive. No plugins required.
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
167
Reaction score
104
First Language
English
Primarily Uses
RMMZ
Elements seems a bit hackish. You could try this instead:

1. Put a <Slug> note tag on any slug enemies you have
2. Put, in the item's damage formula, the following:
Code:
c = b.isEnemy() ? b.enemy() : b.actor(); c.meta.Slug ? 9999 : 0
Should do 9999 damage to any slug enemies (set the 9999 to whatever damage formula you want to use) and 0 damage to anything else.

Note that <Slug> is case sensitive. No plugins required.
Nice, I use something like this.
just as a suggestion(to the OP)
Default Max HP can go up to 999999.
so just to be safe, use:
c = b.isEnemy() ? b.enemy() : b.actor(); c.meta.Slug ? b.hp: 0
Change Variance to 0%, as to inflict exactly the amount of HP the target has.
 

Latest Threads

Latest Posts

Latest Profile Posts

So I just got my computer back (Was posting stuff on my phone) But now my dang monitor's broken! I'll need to get a new one, which means... JOBS! Yaaay... When I get a new monitor, I'll post picture of one of my RPGMMV projects.
Wish me luck... :kaodes:
Had to clean up disk space because Windows Updates was having my primaries' disk space for breakfast, lunch and dinner. I guess the clean up thingy doesn't work or something because there were 15gigs of old update files in it.
Monday morning, and the sudden message: Hey, can you set up a full second lesson about pixel art till tomorrow?
No one:
Steam game achievement: "Die 100 times in easy mode".

Forum statistics

Threads
115,889
Messages
1,093,733
Members
151,134
Latest member
umememe
Top