Project1
标题:
关于角色遇敌死亡后复活的问题
[打印本页]
作者:
Flea
时间:
2011-2-22 01:01
提示:
作者被禁止或删除 内容自动屏蔽
作者:
一瞬间的幻觉
时间:
2011-2-22 07:29
设置公共事件,在怪物队伍中设定事件,当队伍HP为0,启动公共事件跳转指定地图
作者:
巧克力猫咪
时间:
2011-2-22 20:50
class Scene_Battle < Scene_Base
def battle_end(result)
if result == 2 and not $game_troop.can_lose
continue_game
#call_gameover
else
$game_party.clear_actions
$game_party.remove_states_battle
$game_troop.clear
if $game_temp.battle_proc != nil
$game_temp.battle_proc.call(result)
$game_temp.battle_proc = nil
end
unless $BTEST
$game_temp.map_bgm.play
$game_temp.map_bgs.play
end
$scene = Scene_Map.new
@message_window.clear
Graphics.fadeout(30)
end
$game_temp.in_battle = false
end
def continue_game
$game_party.clear_actions
$game_party.remove_states_battle
$game_troop.clear
$game_temp.map_bgm.play
$game_temp.map_bgs.play
$scene = Scene_Map.new
@message_window.clear
Graphics.fadeout(30)
$game_temp.in_battle = false
$game_temp.common_event_id = 44(死亡后执行的公共事件)
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1