[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,911
Reaction score
1,291
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,911
Reaction score
1,291
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

If you'll mind a bit, ElfKisser is the polar opposite of GoblinSlayer.
"Bury me as much as you want in this pain, I'll still rise to hug you again!"

Hero or masochist?

Lol these new tiles are looking cute. :B
Made with Country Woods (Available on the Store) and Country Woods II (w.i.p)
Turns out 4 layers is A LOT.
I noticed random Japanese dialogue in the FF7 remake while playing in English. More than once. Just now I saved a vid where Tifa spoke Japanese after a battle. We all make mistakes lol, this is kinda funny though

Forum statistics

Threads
99,631
Messages
967,478
Members
131,298
Latest member
PasalReturning36
Top