- Dec 27, 2018
- 63
- 385
Hi,
I'm currently finishing up translation of Until my girlfriend is pregnant, but I just noticed the gallery descriptions are not inserted correctly. This is of course because Japanese doesn't really know space characters while writing, unfortunately.
I believe the function for setting the text is this:
and I've been trying to find out how I can pass a longer string as an argument, because right now, if any space is encountered in the argument it breaks off the input.
Input in CommonEvents.json looks like this:
If you look in the Gallery, above the picture only the variable \N[2] (which translates to Hazuki Ichinose) becomes visible, the rest is ignored.
Can anyone perhaps point me in the direction of a solution? Other than just making it one long string with - characters, haha.
I've added the full javascript as an attachment.
I'm currently finishing up translation of Until my girlfriend is pregnant, but I just noticed the gallery descriptions are not inserted correctly. This is of course because Japanese doesn't really know space characters while writing, unfortunately.
I believe the function for setting the text is this:
JavaScript:
// ● 説明文の設定
Game_System.prototype.setPictureGalleryText = function(listId, text) {
var obj = this.pictureGalleryData(listId);
obj.text = text;
this.pictureGalleryList()[listId] = obj;
};
Input in CommonEvents.json looks like this:
JSON:
{"code":356,"indent":0,"parameters":["PictureGallery SetText 2 \\N[2] abduction and confinement plan"]}
Can anyone perhaps point me in the direction of a solution? Other than just making it one long string with - characters, haha.
I've added the full javascript as an attachment.
Last edited: