captainproton

Dangerously Nifty
Regular
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

Regular
Regular
Joined
Nov 5, 2019
Messages
78
Reaction score
55
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
Regular
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 Profile Posts

Gears Of Phantasm Act I & II, on Steam!
store.steampowered.com/app/1810220
Followhttps://twitter.com/ShellPhantom
Contact Me:phantasygears@gmail.com
finally got this scripted right lol... I was running into a few issues like getting the event to play when all enemies were ko'd, actors going in and out of their victory poses, etc... still need to tweak a bit tho.
Which version should I get? 2000, 2003, XP, VX, VX Ace, or MV. I'm a beginner and have no coding knowledge and also I wanna be able to add voices.
I'm just gonna remove the Dark Spells from my game. They wouldn't be fighting Gods or Angels. So why have it?

Forum statistics

Threads
134,919
Messages
1,251,923
Members
177,759
Latest member
StarboundRose
Top