In this tutorial: http://forums.rpgmakerweb.com/index.php?/topic/1686-a-guide-to-notetagging/ it is said to put the method that reads the notetags in classes such as RPG::State, and RPG::EquipItem. My question is, how does one then use the data from notetags in classes in the editor such as Game_Actor, or Game_Troop?
Help learning to notetag
RGSSx Script SupportAssuming you already know how to setup notetag on RPG::Actor, to use it on an instance of Game_Actor class can be easily done by using .actor method.
Lets say I created a note tag <age: 30> on my actor 1 and I have done creating .age properties on my RPG::Actor. Then I could access my age properties by calling something like
$game_actors[1].actor.age
Regarding Game_Troop, you may aware that troops doesn't have any notebox in it. As a workaround, you can "search" comment and filter it using regular expression.
Lets say I created a note tag <age: 30> on my actor 1 and I have done creating .age properties on my RPG::Actor. Then I could access my age properties by calling something like
$game_actors[1].actor.age
Regarding Game_Troop, you may aware that troops doesn't have any notebox in it. As a workaround, you can "search" comment and filter it using regular expression.
Thanks! This totally helped
Original thread: https://forums.rpgmakerweb.com/threads/help-learning-to-notetag.54089/