Reading an Events Comments

Hi all,

This is a feature I've seen in previous RPG Makers, and am not certain if it's possible with MV.

Long story short: I have an event. That event has comments in it that I'm trying to read. These comments will be used to determine certain behaviour of my script.

Long story not-quite-as-short-but-still-short: I'm working on a Vision Cone script. Certain NPC's will need to have Vision Cones, and certain NPC's will not need them. I would ideally like to use comments to set these values up. The reason I would like to use comments (rather than the Note section) is in case the current Active Event Page changes, I would also like the settings to change.

Is it possible to read comments from the current events page in Javascript code?
try digin on this
sorry that I can only provide sample
I myself still learn the basic
and don't touch the comment reading yet...
Take a look at what I did here:


You just have to find someone who has a plugin that uses event comments, and see how they handled it. I think it's a good approach to search for them at the time the event page changes, rather than at the time you want to check, because that's the only time the info is going to change, and doing it with each check could lead to performance issues, especially if it's a long event.
Take a look at what I did here:


You just have to find someone who has a plugin that uses event comments, and see how they handled it. I think it's a good approach to search for them at the time the event page changes, rather than at the time you want to check, because that's the only time the info is going to change, and doing it with each check could lead to performance issues, especially if it's a long event.
Thanks Shaz, that was exactly what I was looking for. I did have a bit of a peek around for script that use event comments, but they don't tend to be advertised by the fact that they use comments, moreso their behaviour, so they were difficult to find. I appreciate you pointing me in the right direction!

Original thread: https://forums.rpgmakerweb.com/threads/reading-an-events-comments.119573/