MZ Adding new Special Flags

Hi! I'm new to RM scripting, but I use JS daily, so no problem there.

I'm fiddling with the core scripts, tried adding a new special flag to the game
Game_BattlerBase.FLAG_ID_IS_SUMMON = 4;

...


Game_BattlerBase.prototype.isIsSummon = function() {
return this.specialFlag(Game_BattlerBase.FLAG_ID_IS_SUMMON);
};

However, that won't appear in the editor dropdown. I'm taking the other flags as example and I don't see any other place a new flag would be registered.
Unfortunately, we cannot modify or extend the editor :/

However, you can write <Summon> (with the <> symbols) in the actor's notebox. Then, you can use this code:

Code:
Game_BattlerBase.prototype.isSummon = function() {
  return false; // can't be true for this class
}

Game_Actor.prototype.isSummon = function() {
  return this.actor().meta && this.actor().meta.Summon;
}
Nice, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/adding-new-special-flags.177785/