Twin Matrix
Member
Hi hi!
This is my last request. I really hope someone can help me, because I need it done within 4 hours or so. I'm trying to make it so that with a button you can change party leaders. I already assigned the button and got it to work with the code below, but it also switches to dead members. I want it to skip the dead members as party leader.
If someone could help me with that I will love you forever! I also kind of need a second button to scroll backwards, but it's OK if no one knows how to do that.
The code that I have atm:
Thank you!!! x 500
This is my last request. I really hope someone can help me, because I need it done within 4 hours or so. I'm trying to make it so that with a button you can change party leaders. I already assigned the button and got it to work with the code below, but it also switches to dead members. I want it to skip the dead members as party leader.
If someone could help me with that I will love you forever! I also kind of need a second button to scroll backwards, but it's OK if no one knows how to do that.
The code that I have atm:
Code:
(In Game Map)
(def update)
if Input.trigger?($PT_Rotate_Left) || Input.press?($PT_Rotate_Left) && $PT_Rotate_Left.nil?
rotate_party_left
end
def rotate_party_left
leader = $game_party.actors[0]
$game_party.actors.delete_at(0)
$game_party.actors.push(leader)
$game_player.refresh
end
Thank you!!! x 500