MV How to check each battler's note?

What is the best way to check each friendly battler's/actor's and each enemy battler's notes? The former only has actors, classes, weapons, armor, and states, and the latter only has enemies and states. All the notes must be specific to a single, particular battler. I want to check both the "meta" file and the whole "note" text string.
If battler is a Game_Actor or Game_Enemy, then:
  • battler.traitObjects() should return an array of database records, one per trait-bearing object on battler. Each record has note and meta properties.

  • battler.friendsUnit().members() should return an array of friendly Game_Actor/Game_Enemy instances.
From what you've written, it sounds like you want to check each trait object for each member? That will be 2 loops: one inside the other.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-each-battlers-note.156355/