Pointless rebuild or improvement?

I have a plugin I've made, and have been improving over some weeks now, Sensor SelfSwitch.

Currently, it checks the event note and page comments for tags, every update cycle.

This has kind of bugged me before, but a simple regex check shouldn't be a performance issue.

My recent work that I have not released yet changed the tag checking to use 1 regex variable to check against.

Today, I had the thought, since I'm already making a property on the event for the sensor range, and width where applicable, should I only check notes of all the events when a map loads and change the event property to be an array that indicates the type, range, width and direction of the sensor area. For the comment tags I would make it check when the page changes (if I can) and make the property part of the page.

I would still have to check every update cycle to see if the player has entered the sensor area.

So essentially all I'm cutting out is the tag check, but I would be able to add the ability to change the values in the array with a plugin command.

Another way to change it, would be to remove the property from the event and just pass the values through the functions. Since I'm only using the values when checking the tags now, having them as properties is pointless, they aren't changeable with a script call or anything.

I'm looking for thoughts on the subject, how would you handle this?

Clearly my design of the plugin wasn't great, this was primarily due to the fact that I wasn't expecting to add all the features of different sensor zones and whatnot.
i usually check the comment tag in

Game_Event.prototype.setupPageSettings

store it in event variable. the use the stored variable later.

by using this event variable you can modify the event even it doesn't have comment tag.

just like the update in my EST - EVENT GRAPHIC SHIFT.

i just add rotation to that plugin.

it detect comment tag... but i can also make the event have parallel process and change it's own rotation value.

thus become spinning event. 😀 .

of course it will be reseted if you leave the map and reenter. but if you use my EST - SAVE MAP EVENT. it will still the old event  thus still having the modification done to it.
I'm kind of leaning towards making the event/page properties, primarily for the flexibility as that would allow script/plugin commands. So you wouldn't have to make a new page just to have the range or direction change.

I'll have to look into the Game_Event functions a bit more thoroughly with these thoughts in mind.

Would it make more sense to have separate properties for each value; type, range, width, direction?

I had thought an array would be easier, but if I'm opening it up for commands that's not necessarily true.

[EDIT] However, I believe handling this may make some complications with using variables as values, at least in the sense that after being set they will no longer change.

Hmm. Maybe I can make the values of the properties equal to a function that returns the values of the variables when a variable is used for them. Not gunna lie here, I'm not sure how to handle this. Unless there is a way to update the value of the property whenever it is checked, or run a a function whenever it is checked.... hmm....

[Edit2] 

Actually, with my recent changes to how I read tags, I pretty much paved the way for all this.

Original thread: https://forums.rpgmakerweb.com/threads/pointless-rebuild-or-improvement.51785/