RMMV YEP Item Synthesis - don't always consume ingredient

Xina

Veteran
Veteran
Joined
Feb 23, 2019
Messages
37
Reaction score
6
First Language
English
Primarily Uses
RMMV
I've been using YEP Item Synthesis and in general, it works great for my needs. The problem I have is that one recipe should only use a tiny portion of a particular ingredient. Decimals don't work, and there doesn't seem to be a way to make the synthesis not consume the ingredient. As far as I know, there's not a way to run a common event after a particular recipe is synthesized so that I can return the ingredient that way. Is there a simple script that could fix this for me?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,837
Reaction score
6,648
First Language
English
Primarily Uses
RMMV
How exactly are you representing "portions of" an item in your game?

The standard way to implement what you're doing is to just have multiples of the item. So, like, you say Sand is one grain of sand and you get 150 or something at a time. Then your synthesis might take 80 of them, so you still have 70 grains of sand left.

I don't know of any way (without using a plugin I haven't seen) to represent partial ownership of an item. You can't have 0.83 potions.

Do you not want the synthesis to consume the ingredient at all, and it's just there as a threshold? You must own this item in order to perform these syntheses?

As far as I know, there's not a way to run a common event after a particular recipe is synthesized so that I can return the ingredient that way.
Of course you can, the instructions list the Custom Synthesis Effect notetag and say "you can use these notetags to make a custom effect that will occur when a specific item is synthesized."

So you can certainly give the item a custom synthesis and include the script call either to run a common event or to give the item to the party directly. Both are in the pinned thread in the JavaScript forum with "common script calls" (or would pop right up with a Google).
 

Xina

Veteran
Veteran
Joined
Feb 23, 2019
Messages
37
Reaction score
6
First Language
English
Primarily Uses
RMMV
Oh my gosh. You're absolutely right. For some reason when I read that section regarding custom synthesis effect I skimmed over it thinking it was for animations and advanced programming. This was a dumb question. Sorry, and thank you for pointing me in the right direction.
 

Latest Threads

Latest Profile Posts

Creating the mood, coloring, and lighting for this gonna need a big brain moment.1685936069202.png
Someone in a facebook group just corrected something I said, by saying exactly what I said. The mind boggles.
Less than 20 tiles remain in Inside_B that I need some kind of analogue of in my in custom Inside_B, and a whole 39 tiles that I didn't use and can thus make my own custom tiles or my own flavors of from other tile sheets.


Chapters advancing demonstration.
Main character roey will be revived after chapter 7, so the animations will be different after it
The title of the main characters will be ascended to celestial as well as wings and rings.
Next Up. The 2nd floor of the Western Academy!

Base:
Map012.png

With a little parallax magic *:



WestAcademyFl2.png


Anything you'd add?

Forum statistics

Threads
131,644
Messages
1,221,845
Members
173,387
Latest member
guihangbacninhninh
Top