赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-12-19 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3195
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
- class Game_Temp
- attr_accessor :if_battle_end # 战斗结束判断
- def initialize
- @if_battle_end = false
- end
- end
- class Scene_Battle
- def battle_end(result)
- $game_temp.if_battle_end = true
- $game_temp.in_battle = false
- $game_party.clear_actions
- for actor in $game_party.actors
- actor.remove_states_battle
- end
- $game_troop.enemies.clear
- if $game_temp.battle_proc != nil
- $game_temp.battle_proc.call(result)
- $game_temp.battle_proc = nil
- end
- $scene = Scene_Map.new
- end
- end
- class Game_System
- def bgm_play(bgm)
- unless $game_temp.if_battle_end
- @playing_bgm = bgm
- if bgm != nil and bgm.name != ""
- Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume, bgm.pitch)
- else
- Audio.bgm_stop
- end
- Graphics.frame_reset
- else
- $game_temp.if_battle_end = false
- end
- end
- end
复制代码 希望对楼主有用 |
|