赞 | 0 |
VIP | 157 |
好人卡 | 6 |
积分 | 1 |
经验 | 113829 |
最后登录 | 2014-1-16 |
在线时间 | 26 小时 |
Lv1.梦旅人 B
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2007-8-26
- 帖子
- 3693
|
:loveliness:以前写过类似的,现在将它改改~
没测试,希望能解决你的问题,嗯嗯- class Scene_Map
- def call_battle
- #--------------------------------------------------------------------------
- $actor_id = []
- for actor in $game_party.actors
- $actor_id.push(actor.id)
- end
- for actor in $game_party.actors
- $game_party.remove_actor(actor.id) if actor.dead?
- end
-
- #--------------------------------------------------------------------------
- $game_temp.battle_calling = false
- $game_temp.menu_calling = false
- $game_temp.menu_beep = false
- $game_player.make_encounter_count
- $game_temp.map_bgm = $game_system.playing_bgm
- $game_system.bgm_stop
- $game_system.se_play($data_system.battle_start_se)
- $game_system.bgm_play($game_system.battle_bgm)
- $game_player.straighten
- $scene = Scene_Battle.new
- end
- end
- class Scene_Battle
- def battle_end(result)
- #--------------------------------------------------------------------------
- for i in 0..$actor_id.size-1
- $game_party.actors[i] = $game_actors[$actor_id[i]]
- end
- $game_player.refresh
- #--------------------------------------------------------------------------
- $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
复制代码 |
|