Am I the only one who notice they removed the comments command for events on the map? Or am I being silly? My plugin no longer works because of it. Is there a known way to access event comments without it?
Comments command removed
Javascript/Plugin SupportUm.... what? You sure? It's still there. It's the bottom left option in Tab 1.
No no no, not in the RPG maker but I mean in javascript so you can access the commands that has been done inside the event! I used it to have my events time triggered in my time system.
I see, you said "for events on the map" so I misinterpreted that.
Ok, so different plugin writers use different methods to check the event comments. All of the plugins I am running are still functioning correctly. Whatever the problem is, it must be very specific to the method used by the plugin writer - OR - the problem is unrelated to event comments and there's something totally different going on. I'm leaning towards it being something different. Why don't you give some details about what plugins you're running and how your events are set up and see if we can troubleshoot it?
Ok, so different plugin writers use different methods to check the event comments. All of the plugins I am running are still functioning correctly. Whatever the problem is, it must be very specific to the method used by the plugin writer - OR - the problem is unrelated to event comments and there's something totally different going on. I'm leaning towards it being something different. Why don't you give some details about what plugins you're running and how your events are set up and see if we can troubleshoot it?
The plugin is my own that I made, it has a time system and I had it so by placing a comment in the event you could have at a certain time the event triggered or changed it's selfswitch. To access the comments I used, before $gameMap._events.comments() which gave me all of them, now when I have the program write out into the log $gameMap._events, to see all the commands and such, the comment function is no longer there. You know any other way to access the comments inside an event?
As far as I know, $gameMap._events.comments() is not a native function in RMMV. It must have been added by a different script you were previously using and have since disabled. I'm using this. Try inserting it into your script and see if it works:
Code:
Game_Event.prototype.comments = function() {
if (!this.page() || !this.list()) {
return "";
}
var comments = this.list().filter(function(list) {
return list.code === 108 || list.code === 408;
});
comments = comments.map(function(list) {
return list.parameters;
});
return comments.join('\n');
};
You kno what's funny? I was actually just starting to get a taste of that the list command was it, however it'd have taken sometime to perfect it so thank you! You saved lots of work!
Original thread: https://forums.rpgmakerweb.com/threads/comments-command-removed.66670/