[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,933
Reaction score
1,326
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,933
Reaction score
1,326
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!
 

Latest Threads

Latest Posts

Latest Profile Posts


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,824
Messages
1,032,449
Members
139,975
Latest member
Lucimountfort
Top