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,995
Reaction score
2,227
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
34,341
Reaction score
8,762
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
44,178
Reaction score
15,543
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
286
Reaction score
145
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,844
Reaction score
1,781
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
286
Reaction score
145
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

My new 49" monitor has been dispatched from the warehouse. Will it arrive tomorrow? The day after? I love that we can track packages now, even if it does only tell me when it's left that end and when it's arrived at the local centre. As long as it doesn't end up in Melbourne again, which has happened before ...
My friend's doing a surprise stream of my game Origin Hunt on Twitch here ! Feel free to stop by :yhappy:
Me, designing it a long time ago: Having an optional boss fight as a random chance to trigger when you fish in a certain spot with a certain type of bait is fun! Cool idea!
Me, trying to playtest everything again: oh god just let me see the boss, my bag is so full of fish!
both love and pain have no boundaries
Happy Saint Nicholas Day! May there nice stuff in your shoes when you wake up!

Forum statistics

Threads
117,218
Messages
1,105,588
Members
153,367
Latest member
icemar
Top