Project1

标题: 给八宝粥先生的脚本答案 [打印本页]

作者: 怪蜀黍    时间: 2012-8-14 12:33
标题: 给八宝粥先生的脚本答案
本帖最后由 protosssonny 于 2012-8-14 12:35 编辑

用这个脚本来回答:
Scene_Map类下第113行起,这样改:
  1.   #--------------------------------------------------------------------------
  2.   # ● 遇敌处理
  3.   #--------------------------------------------------------------------------
  4.   def update_encounter
  5.     return if $game_player.encounter_count > 0        # 检查步数
  6.     return if $game_map.interpreter.running?          # 判断是否有事件正在执行
  7.     return if $game_system.encounter_disabled         # 判断是否禁止遇敌
  8.     troop_id = $game_player.make_encounter_troop_id   # 判断敌人队伍
  9.     return if $data_troops[troop_id] == nil           # 判断队伍是否无效
  10.     #这里假定是20、25、34号敌人组更改战斗音乐Battle3
  11.     if [20,25,34].include?(troop_id)
  12.       $game_system.battle_bgm = RPG::BGM.new("Battle3", 100, 100)
  13.     else
  14.       $game_system.battle_bgm = RPG::BGM.new("Battle1", 100, 100)
  15.     end
  16.     $game_troop.setup(troop_id)
  17.     $game_troop.can_escape = true
  18.     $game_temp.battle_proc = nil
  19.     $game_temp.next_scene = "battle"
  20.     preemptive_or_surprise
  21.   end
复制代码

作者: hys111111    时间: 2012-8-14 12:49
甜蜜蜜……




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1