[XP] Temporary disable party switching? [Resolved]

Started by MOAL, June 23, 2014, 11:03:00 am

Previous topic - Next topic

MOAL

I was wondering if there's a simple way to fix it to where you can't switch out the leader. Is that possible, or is it impossible? Maybe a way that would only disable party switching on maps without enemies instead of altogether?

KK20


Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

G_G

You have to be more specific, like, I dunno, tell us which scripts you're using? Because by default you can't switch out party members in RMXP without any scripts. No one can help you unless you give us more information.

MOAL

Whoops, sorry. Still pretty early here. I mean in Blizz-ABS. :P Is there a way to temporarily disable party switching in that?

KK20


#=============================================================================
# BLIZZABS Add-on
#   Prevents the player from switching leaders with the SWITCH button as long
#   as game switch DISABLE_LEADER_SWITCH is ON.
#=============================================================================
DISABLE_LEADER_SWITCH = 20

module BlizzABS
  class Controller
    alias allow_switching_leader switch_leader
    def switch_leader
      return if $game_switches[DISABLE_LEADER_SWITCH]
      allow_switching_leader
    end
  end
end

Place anywhere below Part 2 of BlizzABS (but above Main of course).

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

MOAL