Consider the following:
Game_Event.prototype.start = function() { var list = this.list(); if (list && list.length > 1) { this._starting = true; if (this.isTriggerIn([0,1,2])) { this.lock(); } }};this is the function that starts an event, regardless of what type of event it is. How ever would this be the appropriate place to read the comments of said event? so player walks up to event id 56 and hits enter, this function is called now I want to read the data in the event. console logging "this" gives me the prototype object but under pages there really isn't much to use.
The way I did it for currencies was to read all events on the map looking for a tag in a comment. I need to read said comment only when the player interacts with said event or its triggered by some other means.
Game_Event.prototype.start = function() { var list = this.list(); if (list && list.length > 1) { this._starting = true; if (this.isTriggerIn([0,1,2])) { this.lock(); } }};this is the function that starts an event, regardless of what type of event it is. How ever would this be the appropriate place to read the comments of said event? so player walks up to event id 56 and hits enter, this function is called now I want to read the data in the event. console logging "this" gives me the prototype object but under pages there really isn't much to use.
The way I did it for currencies was to read all events on the map looking for a tag in a comment. I need to read said comment only when the player interacts with said event or its triggered by some other means.