因為過了許久沒有人答,樓主也沒有表示搜尋解決,所以寫一個
module BattleManager #================================================== #QQ蚊子湯 #战斗结束后,不显示GAMEOVER而是转移到场景 MAP_ID = 2 #轉移的地圖編號 MAP_X = 1 #轉移的地圖座標X軸 MAP_Y = 1 #轉移的地圖座標Y軸 #=================================================== def self.process_defeat $game_message.add(sprintf(Vocab::Defeat, $game_party.name)) wait_for_message if @can_lose revive_battle_members replay_bgm_and_bgs SceneManager.return else revive_battle_members replay_bgm_and_bgs SceneManager.return $game_player.reserve_transfer(MAP_ID, MAP_X, MAP_Y) $game_player.perform_transfer end battle_end(2) return true end end
module BattleManager
#==================================================
#QQ蚊子湯
#战斗结束后,不显示GAMEOVER而是转移到场景
MAP_ID = 2 #轉移的地圖編號
MAP_X = 1 #轉移的地圖座標X軸
MAP_Y = 1 #轉移的地圖座標Y軸
#===================================================
def self.process_defeat
$game_message.add(sprintf(Vocab::Defeat, $game_party.name))
wait_for_message
if @can_lose
revive_battle_members
replay_bgm_and_bgs
SceneManager.return
else
revive_battle_members
replay_bgm_and_bgs
SceneManager.return
$game_player.reserve_transfer(MAP_ID, MAP_X, MAP_Y)
$game_player.perform_transfer
end
battle_end(2)
return true
end
end
|