[Yanfly Item Synthesis] How to make multiple items with just one item?

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,915
Reaction score
1,300
First Language
English
Primarily Uses
RMMV
Hey gang, I'm using Yanfly's Item Synthesis plugin and it's worling fine. What caught my interest was this line in the help section:

Code:
<Custom Synthesis Effect>
 var bottle = $dataItems[123];
 $gameParty.gainItem(bottle, 2);
</Custom Synthesis Effect>

  For this notetag, the 'item' variable will refer to the item being
  synthesized. Changing it will do nothing but it will be used as a
  convenience variable to refer to it.
I thought this would be a neat idea to make multiple items from one item synthesis so I added it to the item but it doesn't seem to have any effect. This is the code I'm using:

Code:
<Custom Synthesis Effect>
  var Vitamin X = $dataItems[76];
  $gameParty.gainItem(Vitamin X, 3);
</Custom Synthesis Effect>
Vitamin X is the item I want add more of when synthesizing and $dataitems[76] is it's ID. Aim I doing something wrong or aim I misreading the description.
 

glaphen

Veteran
Veteran
Joined
Jan 13, 2019
Messages
326
Reaction score
120
First Language
English
Primarily Uses
RMMV
I would assume it's because you put a space in var Vitamin X, instead of var VitaminX or whatever.
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,915
Reaction score
1,300
First Language
English
Primarily Uses
RMMV
Holy crap why didn't I think of that. I was just going off how I had it in the database and forgot javascript doesn't do spaces. Thank you so much for the help!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

What is your favourite rpg maker plugin?
Hopefully this gets fixed before release..
Where's this sudden heatwave come from? It's not even sunny, it's just hot. Hate it!
I'm slightly disappointed that the MZ codebase still uses core.js, managers.js, objects.js, scenes.js, sprites.js and windows.js instead of core/Bitmap.js, core/Graphics.js, managers/AudioManager.js, managers/DataManager.js, etc...
just a few more hours until the toughest, most pressure 72 hours of my life, wish me luck guys

Forum statistics

Threads
100,565
Messages
977,269
Members
132,147
Latest member
jcamp10565
Top