captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
Sadly, i get very confused when altering code beyond a couple of numbers....

One of my characters, Enoch, is a necromancer with a summon skill using an item called Necroplasm as a skill cost.
I was wanting to equip him with a passive "Harvest" state that allows him to automatically add Necroplasm to the inventory when he kills an enemy.

I am using most of Yanfly's RMMV plugins, specifically including Auto Passive States and Buffs and States Core.
I *have* used these plugins to add a "Pokemon Sun/Moon" style Beast Boost passive state to my gladiator character as indicated here.
Sadly, I don't know how to alter the notetages--or if it's possible--to create a passive state allowing Enoch to add Necroplasm to the inventory upon delivering the killing blow.

Is there anyone with the coding knowledge who can help with this?
 

rainyday

Veteran
Veteran
Joined
Nov 5, 2019
Messages
77
Reaction score
53
First Language
English
Primarily Uses
RMMV
Put this in your passive state's notebox
Code:
<Custom Conclude Effect>
if(target.hp <= 0){
//Change x to the item ID you want to give, and y to the amount to give.
$gameParty.gainItem($dataItems[x],y,false);
var text = '<CENTER>' + user.name() + ' has generated a ' + $dataItems[x].name + ' from ' + target.name() + '!';
var wait = 90;
BattleManager.addText(text, wait);
}
</Custom Conclude Effect>

That's probably the least complex way to implement this, if you want something more fancy just let me know.
 
Last edited:

captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
Thanks! I'll try this out!
Edit:
This worked wonderfully! Thanks for your help!
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I'm working with Excel today, and I just hate VBA so much. It's like the designers said "How can we make a programming language that works as obtusely and inefficiently as possible?"
Beep-Beep-Motha-facka.gif

Just finished and uploaded the delivery truck base/sprite sheet. I've been steadily replacing the default assets with early modern alternatives. The air-ship for a biplane, horse-drawn wagon for a delivery truck, and next a sailboat for a steam-powered passenger liner (think of the SS Olympic and RMS Titanic).
I caught a shiny magikarp on pokemonGO today AND finally saw Detective Pikachu and it was so cute and I'm still so hype AHHHHH!!!
one of the coolest things I've learned from the forums is the ability to give yourself a hitbox. I have a move you can do on the fields. shoulder tackle. thanks to the forums, that tackle triggers self A switches on some events. NPC's and the environment now react to the tackle. awesome.
I really liked how this one turned out! :kaopride:
WYqMPf6.png

Character (Yes, this is a character): Nibiru the Primal Being from Yugioh.

Forum statistics

Threads
121,946
Messages
1,145,360
Members
160,218
Latest member
Tarasyring
Top