That because, the status window will be updated once the information is changed. Usually, status window changed when you applied a certain state which it should get refreshed once you add your feral state. The same thing happen when you get hit. Because the HP changed, thus refresh everything. The status window found out that the face also changed, so it changed. However, it stopped to refresh at a certain point, which I'm not sure where, since adding a state should always refresh the status window.
I tried to come up with another silly solution to always refresh when the state get added / removed
I tried to come up with another silly solution to always refresh when the state get added / removed
Code:
class Game_Actor
alias ori_face_name face_name
def face_name
return "Actor41" if state?(6)
return ori_face_name
end
alias ori_char_name character_name
def character_name
return "$Actor-Unk" if state?(6)
return ori_char_name
end
alias ori_add_state add_state
def add_state(id)
ori_add_state(id)
scene = SceneManager.scene
scene.status_window.refresh if scene.is_a?(Scene_Battle)
end
alias ori_rem_state remove_state
def remove_state(id)
ori_rem_state(id)
scene = SceneManager.scene
scene.status_window.refresh if scene.is_a?(Scene_Battle)
end
end
class Game_Player
def character_name
actor.character_name
end
end
class Game_Follower
def character_name
visible? ? actor.character_name : ""
end
end
class Scene_Battle
attr_reader :status_window
end
