(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
77
Reaction score
51
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,907
Reaction score
4,831
First Language
EN, FR
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.

Latest Threads

Latest Profile Posts

I should stop staring at the screen too long. neck hurt
I've been in Fort Myers since Thursday night. I'm going home tomorrow or the next day... lol, I desperately need a good taste of homemade Japanese food. I might not be Japanese or even Asian (I'm American born and raised), but I absolutely love authentic Japanese cooking. Restaurant food doesn't do it justice.
Haven't been working on any of my projects or resources lately as I'll soon be moving to a new apartment. It's been a stressful move but I'm really looking forward to it.
//Sees it's the same price at Best Buy for a new SSD as Amazon
//Sees it's 103F outside and Best Buy is half a hour of driving.
//Orders from Amazon.
I'll wait the 2-3 days. :LZSwink:

Forum statistics

Threads
112,378
Messages
1,067,902
Members
146,028
Latest member
JKRDIH88
Top