赞 | 189 |
VIP | 627 |
好人卡 | 188 |
积分 | 95 |
经验 | 171230 |
最后登录 | 2023-6-18 |
在线时间 | 5073 小时 |
Lv4.逐梦者 (版主)
- 梦石
- 0
- 星屑
- 9497
- 在线时间
- 5073 小时
- 注册时间
- 2013-6-21
- 帖子
- 3580
|
直接用事件处理有些困难,将下面的脚本粘贴到Main之前,然后在事件中使用脚本就可以了。- class Game_System
- def battle_start_se
- if @battle_start_se == nil
- return $data_system.battle_start_se
- else
- return @battle_start_se
- end
- end
- def battle_start_se=(se)
- @battle_start_se = se
- end
- end
- class Scene_Map
- def call_battle
- # 清除战斗调用标志
- $game_temp.battle_calling = false
- # 清除菜单调用标志
- $game_temp.menu_calling = false
- $game_temp.menu_beep = false
- # 生成遇敌计数
- $game_player.make_encounter_count
- # 记忆地图 BGM 、停止 BGM
- $game_temp.map_bgm = $game_system.playing_bgm
- $game_system.bgm_stop
- # 演奏战斗开始 SE
- $game_system.se_play($game_system.battle_start_se)
- # 演奏战斗 BGM
- $game_system.bgm_play($game_system.battle_bgm)
- # 矫正主角姿势
- $game_player.straighten
- # 切换到战斗画面
- $scene = Scene_Battle.new
- end
- end
- def change_battle_start_se(filename)
- se = RPG::AudioFile.new(filename)
- se.volume = 80
- $game_system.battle_start_se = se
- end
复制代码 使用方法,如果想将战斗开始 SE 改为"010-System10"(文件必须在Audio/SE中),请用事件编辑器输入脚本:
change_battle_start_se("010-System10")即可。 |
评分
-
查看全部评分
|