How to make a plugin that reads event comment tag?

I just started learning how to make plugins but I can't find a tutorial how to do this.

I learned about reading notetags from the stickied post here. Now the problem is, I only want what the plugin does if the conditions in the event are met. It turns out that what I actually needed to learn to achieve this is how to to read comment tags not notetags.

Can someone show me a simple code that reads a comment tag?
Like maybe the comment in the event is <Tutorial Number: 123>
How can I make a plugin that reads that?
Just find plugins that already do it, and see what they do.

Here are some of mine that use comment tags - the first two are the most simple ones.
https://forums.rpgmakerweb.com/index.php?threads/elevation-fix.65366/
https://forums.rpgmakerweb.com/index.php?threads/character-anchors.105599/
https://forums.rpgmakerweb.com/index.php?threads/big-events.89831/
https://forums.rpgmakerweb.com/index.php?threads/more-page-conditions.90431/
Also, in case it helps you understand what's going on a little better, I recently posted a basic explanation of comment tags over here:
https://forums.rpgmakerweb.com/index.php?threads/basics-of-comment-tags.115308/
Thanks guys, I know to make one now.
I have a problem though...
If I set the event off by turning on Self Page A for example, and leaving the original page's conditions untouched, my new value stays on.
I have to create another comment in Self Page A that says <myvalue: off>
this works great but when I make the event on again by turning off Self Page A, I think it doesn't reread the comments in the original page so my value stays off.
How can I make it so it's automatic? I want my value to be "on" only if the page where the comment is is the active one. Is there a page.meetscondition check?
Again, look at the plugins I linked you to.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-plugin-that-reads-event-comment-tag.115635/