I have a Game_Battler (target or subject from Game_Action).. and I want to return the $dataActors or $dataEnemy associated with him... depending on whether he is a actor or an enemy! The point is to access it's Info (for note tags). Is there a function for it?! How can I do it?!
Accessing Game_Battler (notes for notetags)
Learning JavascriptAssuming you have the Game_Battler object, you can use "object.isEneny()" to check if it's an enemy or actor.
to get the $data associated with this object you can use.
object.enemy() // for enemies
object.actor() // for actors.
to get the $data associated with this object you can use.
object.enemy() // for enemies
object.actor() // for actors.
Original thread: https://forums.rpgmakerweb.com/threads/accessing-game_battler-notes-for-notetags.55400/