![]() |
![]() +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: ![]() |
Kuick Leader Swap XP - kyonides - 09-07-2025 Kuick Leader Swap XP
by Kyonides
IntroductionOnce upon a gaming time, some forumer, who might have recently escaped from Minecraft for unknown reasons, wanted to easily swap the current party leader, not just by pressing the L or R button but also via direct assignment. ![]() Script Calls Set a Temporary Leader: - RememberLeaderIndex? stands for a boolean value: true or false. - This new leader becomes permanent if RememberLeaderIndex? is false. Code: $game_party.temp_leader(PartyIndex, RememberLeaderIndex?) Restore the Previous Leader (If Any): Code: $game_party.restore_leader Set a Leader by Actor's ID: Code: $game_party.set_leader_by_id(ActorID) L & R Button-Related Script Calls Prevent the player from Swapping the current Leader: Code: $game_party.keep_leader! Reenable the player to Swap the current Leader: Code: $game_party.swap_leader! Check Current Keep Leader State - Returns either true or false: Code: $game_party.keep_leader The Script Code: # * Kuick Leader Swap XP * # Terms & Conditions Free as in ![]() ![]() Include my nickname in your game credits. Thank Ace_V for unwillingly inspiring me to ![]() ![]() That's it! ![]() RE: Kuick Leader Swap XP - Ace_V - 09-08-2025 This really is useful and very light and easy to implement! Thanks again, kyonides! I spent the better part of a day going through all my previously-finished quest lines to implement the script call to ensure the correct character is in the lead to further enhance some cutscenes. (I've never played Minecraft, though!) ![]() RE: Kuick Leader Swap XP - kyonides - 09-09-2025 Script Update
Starting from version 1.1.0, you can now make script calls that will affect the way the L & R buttons work. They will allow you to either (re-)enable or disable that feature at will. ![]() ![]() RE: Kuick Leader Swap XP - Ace_V - 09-09-2025 Nice new feature! That's very useful for scenes that rely on parallel processes (perhaps a hallway with text/effects popping up slowly as you walk through) and you need a specific leader. RE: Kuick Leader Swap XP - kyonides - 09-09-2025 Just in case I didn't explain myself clearly enough on my previous post, I am leaving a summary here as well. The only new feature in version 1.1.0 is the ability to disable the L & R buttons and to reenable them later on. Needing a specific leader was taken care of by the previous release, namely 1.0.2. ![]() |