class Game_Party
def m5_20150705_swap_leader
return unless a = @actors.shift
@actors.push a
$game_player.refresh
end
end
class Scene_Map
alias m5_20150705_update_call_menu update_call_menu
def update_call_menu
$game_party.m5_20150705_swap_leader if Input.trigger?(:L)
m5_20150705_update_call_menu
end
end
class Game_Party
def m5_20150705_swap_leader
return unless a = @actors.shift
@actors.push a
$game_player.refresh
end
end
class Scene_Map
alias m5_20150705_update_call_menu update_call_menu
def update_call_menu
$game_party.m5_20150705_swap_leader if Input.trigger?(:L)
m5_20150705_update_call_menu
end
end
module KBD
SWI = 1
#此编号开关打开时 禁用切换领队功能
end
class Game_Party
def m5_20150705_swap_leader
return unless a = @actors.shift
@actors.push a
$game_player.refresh
end
end
class Scene_Map
alias m5_20150705_update_call_menu update_call_menu
def update_call_menu
$game_party.m5_20150705_swap_leader if Input.trigger?(:L) && !$game_switches[KBD::SWI]
m5_20150705_update_call_menu
end
end
module KBD
SWI = 1
#此编号开关打开时 禁用切换领队功能
end
class Game_Party
def m5_20150705_swap_leader
return unless a = @actors.shift
@actors.push a
$game_player.refresh
end
end
class Scene_Map
alias m5_20150705_update_call_menu update_call_menu
def update_call_menu
$game_party.m5_20150705_swap_leader if Input.trigger?(:L) && !$game_switches[KBD::SWI]
m5_20150705_update_call_menu
end
end