If you created a new project and made a script call
p $game_actors[1].classIt will return "Soldier" instead of "Game_Actor"Evidently this is because Game_Actor overwrites `class`...
How do I get the ruby-class name?
Well, beyond doing this
p $game_actors[1].classIt will return "Soldier" instead of "Game_Actor"Evidently this is because Game_Actor overwrites `class`...
How do I get the ruby-class name?
Well, beyond doing this
Code:
class Game_Actor < Game_Battler alias :th_rmxml_class :class def class if $XML_EXPORT return Game_Actor else return th_rmxml_class end endend
Last edited by a moderator:
