(SOLVED) Yanfly Extra Enemy Drops + Elemental Attacks

Status
Not open for further replies.

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
Is there a way to make a conditional drop check if the killing blow was a certain element? There's a check to see how many times the enemy was struck with an element, but I'm only interested in the killing blow. It seems to have literally every other possible check on killing blows except elemental. I've tried:

enemy.lastStruckAction().elementId === 2

as my conditional check. But that doesn't seem to do anything. Any thoughts?
 

rainyday

Veteran
Veteran
Joined
Nov 5, 2019
Messages
73
Reaction score
44
First Language
English
Primarily Uses
RMMV
Try using enemy.lastStruckAction().damage.elementId === 2
 

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
Try using enemy.lastStruckAction().damage.elementId === 2
I tried that too but no avail :(

Actually, I forgot to add an eval to it! Thanks so much! Here's what I used in case someone stumbles across this:

<Conditional Item 1 Drop>

Eval (enemy.lastStruckAction().damage.elementId === 2): +100%

</Conditional Item 1 Drop>

Replace the number 2 with whatever element you wish.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top