Hello,
How could I make consumable items change the face of a party member?
Thank you very much.
How could I make consumable items change the face of a party member?
Thank you very much.
Thank you for responding.
This the purpose of the state. Without it you have no way to identify the actor that should be affected by the item as the common event does not know who the target is. Other than serving the purpose of being a target marker, it does nothing and can be removed as soon as you find your target.
Thank you for the reply.
hero = $game_actors[1]
$game_actors.each do |actor|
if actor.state?(your_dummy_state_id)
hero = actor
hero.remove_state(your_state_id) # This line might be unnecessary but I recommend using it
end
end
I copied the script into my common event and changed "your_dummy_state_id" to my state's ID.
hero = $game_party.members[0]
$game_party.members.each do |actor|
if actor.state?(26)
hero = actor
hero.remove_state(26)
end
end
$game_party.members.each do |hero|
if hero.state?(26)
hero.set_graphic("Actor1", 1, "Actor4", 1)
hero.remove_state(26)
end
end
$game_player.refresh
Original thread: https://forums.rpgmakerweb.com/threads/items-changing-party-faces.115460/