The way the plugin is set up already has days and years set to variables, but I it doesn't do so for months. I have it set up so that when the player accomplishes the final goal (buys a house) the day and year this was done is locked into their status page with variables through a Yanfly plugin. This works fine. I just have no idea (after fiddling around and guessing a lot for hours) how to get the number of months. Can anyone help with this? Can I convert it somehow to a variable and add it also to the status screen?
I know absolutely nothing about javascript and plugins, etc. Making this first game has been a fun learning experience for me, but with this I hit a wall.
Here's a link to the plugin https://atelierrgss.wordpress.com/rmv-time-system/
Thanks in advance
Edit: There's this bit of code here too, in the plugin itself:
Total Days
//==============================
// * Total Days
//==============================
Game_System.prototype.total_days = function() {
var months = ($gameVariables._data[this._month_variableId] * this.max_time(this._day_variableId));
var years = ($gameVariables._data[this._year_variableId] * (this.max_time(this._day_variableId) * this.max_time(this._month_variableId)));
var days = $gameVariables._data[this._day_variableId];
this._total_days_week = (months + years + days);
return this._total_days_week;
}
// * Total Days
//==============================
Game_System.prototype.total_days = function() {
var months = ($gameVariables._data[this._month_variableId] * this.max_time(this._day_variableId));
var years = ($gameVariables._data[this._year_variableId] * (this.max_time(this._day_variableId) * this.max_time(this._month_variableId)));
var days = $gameVariables._data[this._day_variableId];
this._total_days_week = (months + years + days);
return this._total_days_week;
}
If that does what it sounds like it does--give me the total number of in-game days played-then that could be another solution. Then I wouldn't need to determine the day/month/year that the house was bought, but instead could just use the total number of days. But how do I use that to turn it into a variable?