设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1053|回复: 5
打印 上一主题 下一主题

请问为什么我用战斗渐变脚本时他说未定义方法?

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-6-9
帖子
206
跳转到指定楼层
1
发表于 2008-7-28 23:41:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
RT

附脚本:
Scene_Battle1中:46行起
# 执行过渡
   if $data_system.battle_transition == ""
     Graphics.transition(20)
   else
      randtra = rand(5)
   case randtra
   when 0
      Graphics.transition(40, "Graphics/Transitions/001-Blind01.png" )
   when 1
     Graphics.transition(40, "Graphics/Transitions/010-Random02.png")
   when 2
     Graphics.transition(40, "Graphics/Transitions/013-Square01.png" )
   when 3
     Graphics.transition(40, "Graphics/Transitions/016-Diamond02.png" )
   when 4
     Graphics.transition(40, "Graphics/Transitions/018-Brick02.png" )
   when 5
    Graphics.transition(40, "Graphics/Transitions/005-Stripe01.png")
    end
   end

文件放好了~但是战斗测试没有错误。
还请各位说一下这个脚本的用法。。。。发布者说的不详细。。。
比如when0,when1,when2……这些语句后面的图片是干什么的~
谢谢!
版务信息:本贴由楼主自主结贴~

Lv2.观梦者

龙骑

梦石
0
星屑
555
在线时间
10 小时
注册时间
2007-12-31
帖子
2030
2
发表于 2008-7-28 23:51:23 | 只看该作者
1.脚本使用方法:
打开Scene_Battle 1,找到46行,
把46到52行改成:
  1. # 执行过渡
  2.    if $data_system.battle_transition == ""
  3.      Graphics.transition(20)
  4.    else
  5.       randtra = rand(5)
  6.   case randtra
  7.   when 0
  8.      Graphics.transition(40, "Graphics/Transitions/001-Blind01.png" )
  9.   when 1
  10.     Graphics.transition(40, "Graphics/Transitions/010-Random02.png")
  11.   when 2
  12.     Graphics.transition(40, "Graphics/Transitions/013-Square01.png" )
  13.   when 3
  14.     Graphics.transition(40, "Graphics/Transitions/016-Diamond02.png" )
  15.   when 4
  16.     Graphics.transition(40, "Graphics/Transitions/018-Brick02.png" )
  17.   when 5
  18.    Graphics.transition(40, "Graphics/Transitions/005-Stripe01.png")
  19.    end
  20.    end
复制代码


还不懂的话就插入这段脚本:

  1. #==============================================================================
  2. # ■ Scene_Battle (分割定义 1)
  3. #------------------------------------------------------------------------------
  4. #  处理战斗画面的类。
  5. #==============================================================================

  6. class Scene_Battle
  7.   #--------------------------------------------------------------------------
  8.   # ● 主处理
  9.   #--------------------------------------------------------------------------
  10.   def main
  11.     # 初始化战斗用的各种暂时数据
  12.     $game_temp.in_battle = true
  13.     $game_temp.battle_turn = 0
  14.     $game_temp.battle_event_flags.clear
  15.     $game_temp.battle_abort = false
  16.     $game_temp.battle_main_phase = false
  17.     $game_temp.battleback_name = $game_map.battleback_name
  18.     $game_temp.forcing_battler = nil
  19.     # 初始化战斗用事件解释器
  20.     $game_system.battle_interpreter.setup(nil, 0)
  21.     # 准备队伍
  22.     @troop_id = $game_temp.battle_troop_id
  23.     $game_troop.setup(@troop_id)
  24.     # 生成角色命令窗口
  25.     s1 = $data_system.words.attack
  26.     s2 = $data_system.words.skill
  27.     s3 = $data_system.words.guard
  28.     s4 = $data_system.words.item
  29.     @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
  30.     @actor_command_window.y = 160
  31.     @actor_command_window.back_opacity = 160
  32.     @actor_command_window.active = false
  33.     @actor_command_window.visible = false
  34.     # 生成其它窗口
  35.     @party_command_window = Window_PartyCommand.new
  36.     @help_window = Window_Help.new
  37.     @help_window.back_opacity = 160
  38.     @help_window.visible = false
  39.     @status_window = Window_BattleStatus.new
  40.     @message_window = Window_Message.new
  41.     # 生成活动块
  42.     @spriteset = Spriteset_Battle.new
  43.     # 初始化等待计数
  44.     @wait_count = 0
  45. # 执行过渡
  46.    if $data_system.battle_transition == ""
  47.      Graphics.transition(20)
  48.    else
  49.       randtra = rand(5)
  50.   case randtra
  51.   when 0
  52.      Graphics.transition(40, "Graphics/Transitions/001-Blind01.png" )
  53.   when 1
  54.     Graphics.transition(40, "Graphics/Transitions/010-Random02.png")
  55.   when 2
  56.     Graphics.transition(40, "Graphics/Transitions/013-Square01.png" )
  57.   when 3
  58.     Graphics.transition(40, "Graphics/Transitions/016-Diamond02.png" )
  59.   when 4
  60.     Graphics.transition(40, "Graphics/Transitions/018-Brick02.png" )
  61.   when 5
  62.    Graphics.transition(40, "Graphics/Transitions/005-Stripe01.png")
  63.    end
  64.    end

  65.     # 开始自由战斗回合
  66.     start_phase1
  67.     # 主循环
  68.     loop do
  69.       # 刷新游戏画面
  70.       Graphics.update
  71.       # 刷新输入信息
  72.       Input.update
  73.       # 刷新画面
  74.       update
  75.       # 如果画面切换的话就中断循环
  76.       if $scene != self
  77.         break
  78.       end
  79.     end
  80.     # 刷新地图
  81.     $game_map.refresh
  82.     # 准备过渡
  83.     Graphics.freeze
  84.     # 释放窗口
  85.     @actor_command_window.dispose
  86.     @party_command_window.dispose
  87.     @help_window.dispose
  88.     @status_window.dispose
  89.     @message_window.dispose
  90.     if @skill_window != nil
  91.       @skill_window.dispose
  92.     end
  93.     if @item_window != nil
  94.       @item_window.dispose
  95.     end
  96.     if @result_window != nil
  97.       @result_window.dispose
  98.     end
  99.     # 释放活动块
  100.     @spriteset.dispose
  101.     # 标题画面切换中的情况
  102.     if $scene.is_a?(Scene_Title)
  103.       # 淡入淡出画面
  104.       Graphics.transition
  105.       Graphics.freeze
  106.     end
  107.     # 战斗测试或者游戏结束以外的画面切换中的情况
  108.     if $BTEST and not $scene.is_a?(Scene_Gameover)
  109.       $scene = nil
  110.     end
  111.   end
  112.   #--------------------------------------------------------------------------
  113.   # ● 胜负判定
  114.   #--------------------------------------------------------------------------
  115.   def judge
  116.     # 全灭判定是真、并且同伴人数为 0 的情况下
  117.     if $game_party.all_dead? or $game_party.actors.size == 0
  118.       # 允许失败的情况下
  119.       if $game_temp.battle_can_lose
  120.         # 还原为战斗开始前的 BGM
  121.         $game_system.bgm_play($game_temp.map_bgm)
  122.         # 战斗结束
  123.         battle_end(2)
  124.         # 返回 true
  125.         return true
  126.       end
  127.       # 设置游戏结束标志
  128.       $game_temp.gameover = true
  129.       # 返回 true
  130.       return true
  131.     end
  132.     # 如果存在任意 1 个敌人就返回 false
  133.     for enemy in $game_troop.enemies
  134.       if enemy.exist?
  135.         return false
  136.       end
  137.     end
  138.     # 开始结束战斗回合 (胜利)
  139.     start_phase5
  140.     # 返回 true
  141.     return true
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # ● 战斗结束
  145.   #     result : 結果 (0:胜利 1:失败 2:逃跑)
  146.   #--------------------------------------------------------------------------
  147.   def battle_end(result)
  148.     # 清除战斗中标志
  149.     $game_temp.in_battle = false
  150.     # 清除全体同伴的行动
  151.     $game_party.clear_actions
  152.     # 解除战斗用状态
  153.     for actor in $game_party.actors
  154.       actor.remove_states_battle
  155.     end
  156.     # 清除敌人
  157.     $game_troop.enemies.clear
  158.     # 调用战斗返回调用
  159.     if $game_temp.battle_proc != nil
  160.       $game_temp.battle_proc.call(result)
  161.       $game_temp.battle_proc = nil
  162.     end
  163.     # 切换到地图画面
  164.     $scene = Scene_Map.new
  165.   end
  166.   #--------------------------------------------------------------------------
  167.   # ● 设置战斗事件
  168.   #--------------------------------------------------------------------------
  169.   def setup_battle_event
  170.     # 正在执行战斗事件的情况下
  171.     if $game_system.battle_interpreter.running?
  172.       return
  173.     end
  174.     # 搜索全部页的战斗事件
  175.     for index in 0...$data_troops[@troop_id].pages.size
  176.       # 获取事件页
  177.       page = $data_troops[@troop_id].pages[index]
  178.       # 事件条件可以参考 c
  179.       c = page.condition
  180.       # 没有指定任何条件的情况下转到下一页
  181.       unless c.turn_valid or c.enemy_valid or
  182.              c.actor_valid or c.switch_valid
  183.         next
  184.       end
  185.       # 执行完毕的情况下转到下一页
  186.       if $game_temp.battle_event_flags[index]
  187.         next
  188.       end
  189.       # 确认回合条件
  190.       if c.turn_valid
  191.         n = $game_temp.battle_turn
  192.         a = c.turn_a
  193.         b = c.turn_b
  194.         if (b == 0 and n != a) or
  195.            (b > 0 and (n < 1 or n < a or n % b != a % b))
  196.           next
  197.         end
  198.       end
  199.       # 确认敌人条件
  200.       if c.enemy_valid
  201.         enemy = $game_troop.enemies[c.enemy_index]
  202.         if enemy == nil or enemy.hp * 100.0 / enemy.maxhp > c.enemy_hp
  203.           next
  204.         end
  205.       end
  206.       # 确认角色条件
  207.       if c.actor_valid
  208.         actor = $game_actors[c.actor_id]
  209.         if actor == nil or actor.hp * 100.0 / actor.maxhp > c.actor_hp
  210.           next
  211.         end
  212.       end
  213.       # 确认开关条件
  214.       if c.switch_valid
  215.         if $game_switches[c.switch_id] == false
  216.           next
  217.         end
  218.       end
  219.       # 设置事件
  220.       $game_system.battle_interpreter.setup(page.list, 0)
  221.       # 本页的范围是 [战斗] 或 [回合] 的情况下
  222.       if page.span <= 1
  223.         # 设置执行结束标志
  224.         $game_temp.battle_event_flags[index] = true
  225.       end
  226.       return
  227.     end
  228.   end
  229.   #--------------------------------------------------------------------------
  230.   # ● 刷新画面
  231.   #--------------------------------------------------------------------------
  232.   def update
  233.     # 执行战斗事件中的情况下
  234.     if $game_system.battle_interpreter.running?
  235.       # 刷新解释器
  236.       $game_system.battle_interpreter.update
  237.       # 强制行动的战斗者不存在的情况下
  238.       if $game_temp.forcing_battler == nil
  239.         # 执行战斗事件结束的情况下
  240.         unless $game_system.battle_interpreter.running?
  241.           # 继续战斗的情况下、再执行战斗事件的设置
  242.           unless judge
  243.             setup_battle_event
  244.           end
  245.         end
  246.         # 如果不是结束战斗回合的情况下
  247.         if @phase != 5
  248.           # 刷新状态窗口
  249.           @status_window.refresh
  250.         end
  251.       end
  252.     end
  253.     # 系统 (计时器)、刷新画面
  254.     $game_system.update
  255.     $game_screen.update
  256.     # 计时器为 0 的情况下
  257.     if $game_system.timer_working and $game_system.timer == 0
  258.       # 中断战斗
  259.       $game_temp.battle_abort = true
  260.     end
  261.     # 刷新窗口
  262.     @help_window.update
  263.     @party_command_window.update
  264.     @actor_command_window.update
  265.     @status_window.update
  266.     @message_window.update
  267.     # 刷新活动块
  268.     @spriteset.update
  269.     # 处理过渡中的情况下
  270.     if $game_temp.transition_processing
  271.       # 清除处理过渡中标志
  272.       $game_temp.transition_processing = false
  273.       # 执行过渡
  274.       if $game_temp.transition_name == ""
  275.         Graphics.transition(20)
  276.       else
  277.         Graphics.transition(40, "Graphics/Transitions/" +
  278.           $game_temp.transition_name)
  279.       end
  280.     end
  281.     # 显示信息窗口中的情况下
  282.     if $game_temp.message_window_showing
  283.       return
  284.     end
  285.     # 显示效果中的情况下
  286.     if @spriteset.effect?
  287.       return
  288.     end
  289.     # 游戏结束的情况下
  290.     if $game_temp.gameover
  291.       # 切换到游戏结束画面
  292.       $scene = Scene_Gameover.new
  293.       return
  294.     end
  295.     # 返回标题画面的情况下
  296.     if $game_temp.to_title
  297.       # 切换到标题画面
  298.       $scene = Scene_Title.new
  299.       return
  300.     end
  301.     # 中断战斗的情况下
  302.     if $game_temp.battle_abort
  303.       # 还原为战斗前的 BGM
  304.       $game_system.bgm_play($game_temp.map_bgm)
  305.       # 战斗结束
  306.       battle_end(1)
  307.       return
  308.     end
  309.     # 等待中的情况下
  310.     if @wait_count > 0
  311.       # 减少等待计数
  312.       @wait_count -= 1
  313.       return
  314.     end
  315.     # 强制行动的角色存在、
  316.     # 并且战斗事件正在执行的情况下
  317.     if $game_temp.forcing_battler == nil and
  318.        $game_system.battle_interpreter.running?
  319.       return
  320.     end
  321.     # 回合分支
  322.     case @phase
  323.     when 1  # 自由战斗回合
  324.       update_phase1
  325.     when 2  # 同伴命令回合
  326.       update_phase2
  327.     when 3  # 角色命令回合
  328.       update_phase3
  329.     when 4  # 主回合
  330.       update_phase4
  331.     when 5  # 战斗结束回合
  332.       update_phase5
  333.     end
  334.   end
  335. end
复制代码








2.那些图片是渐变图形,
必不可少
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-6-9
帖子
206
3
 楼主| 发表于 2008-7-28 23:53:16 | 只看该作者
没用。。。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-6-9
帖子
206
4
 楼主| 发表于 2008-7-28 23:54:16 | 只看该作者
还是没用。。。
回复 支持 反对

使用道具 举报

Lv2.观梦者

龙骑

梦石
0
星屑
555
在线时间
10 小时
注册时间
2007-12-31
帖子
2030
5
发表于 2008-7-28 23:55:50 | 只看该作者
在main前插入这段脚本:

  1. #==============================================================================
  2. # ■ Scene_Battle (分割定义 1)
  3. #------------------------------------------------------------------------------
  4. #  处理战斗画面的类。
  5. #==============================================================================

  6. class Scene_Battle
  7.   #--------------------------------------------------------------------------
  8.   # ● 主处理
  9.   #--------------------------------------------------------------------------
  10.   def main
  11.     # 初始化战斗用的各种暂时数据
  12.     $game_temp.in_battle = true
  13.     $game_temp.battle_turn = 0
  14.     $game_temp.battle_event_flags.clear
  15.     $game_temp.battle_abort = false
  16.     $game_temp.battle_main_phase = false
  17.     $game_temp.battleback_name = $game_map.battleback_name
  18.     $game_temp.forcing_battler = nil
  19.     # 初始化战斗用事件解释器
  20.     $game_system.battle_interpreter.setup(nil, 0)
  21.     # 准备队伍
  22.     @troop_id = $game_temp.battle_troop_id
  23.     $game_troop.setup(@troop_id)
  24.     # 生成角色命令窗口
  25.     s1 = $data_system.words.attack
  26.     s2 = $data_system.words.skill
  27.     s3 = $data_system.words.guard
  28.     s4 = $data_system.words.item
  29.     @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
  30.     @actor_command_window.y = 160
  31.     @actor_command_window.back_opacity = 160
  32.     @actor_command_window.active = false
  33.     @actor_command_window.visible = false
  34.     # 生成其它窗口
  35.     @party_command_window = Window_PartyCommand.new
  36.     @help_window = Window_Help.new
  37.     @help_window.back_opacity = 160
  38.     @help_window.visible = false
  39.     @status_window = Window_BattleStatus.new
  40.     @message_window = Window_Message.new
  41.     # 生成活动块
  42.     @spriteset = Spriteset_Battle.new
  43.     # 初始化等待计数
  44.     @wait_count = 0
  45. # 执行过渡
  46.    if $data_system.battle_transition == ""
  47.      Graphics.transition(20)
  48.    else
  49.       randtra = rand(5)
  50.   case randtra
  51.   when 0
  52.      Graphics.transition(40, "Graphics/Transitions/001-Blind01.png" )
  53.   when 1
  54.     Graphics.transition(40, "Graphics/Transitions/010-Random02.png")
  55.   when 2
  56.     Graphics.transition(40, "Graphics/Transitions/013-Square01.png" )
  57.   when 3
  58.     Graphics.transition(40, "Graphics/Transitions/016-Diamond02.png" )
  59.   when 4
  60.     Graphics.transition(40, "Graphics/Transitions/018-Brick02.png" )
  61.   when 5
  62.    Graphics.transition(40, "Graphics/Transitions/005-Stripe01.png")
  63.    end
  64.    end

  65.     # 开始自由战斗回合
  66.     start_phase1
  67.     # 主循环
  68.     loop do
  69.       # 刷新游戏画面
  70.       Graphics.update
  71.       # 刷新输入信息
  72.       Input.update
  73.       # 刷新画面
  74.       update
  75.       # 如果画面切换的话就中断循环
  76.       if $scene != self
  77.         break
  78.       end
  79.     end
  80.     # 刷新地图
  81.     $game_map.refresh
  82.     # 准备过渡
  83.     Graphics.freeze
  84.     # 释放窗口
  85.     @actor_command_window.dispose
  86.     @party_command_window.dispose
  87.     @help_window.dispose
  88.     @status_window.dispose
  89.     @message_window.dispose
  90.     if @skill_window != nil
  91.       @skill_window.dispose
  92.     end
  93.     if @item_window != nil
  94.       @item_window.dispose
  95.     end
  96.     if @result_window != nil
  97.       @result_window.dispose
  98.     end
  99.     # 释放活动块
  100.     @spriteset.dispose
  101.     # 标题画面切换中的情况
  102.     if $scene.is_a?(Scene_Title)
  103.       # 淡入淡出画面
  104.       Graphics.transition
  105.       Graphics.freeze
  106.     end
  107.     # 战斗测试或者游戏结束以外的画面切换中的情况
  108.     if $BTEST and not $scene.is_a?(Scene_Gameover)
  109.       $scene = nil
  110.     end
  111.   end
  112.   #--------------------------------------------------------------------------
  113.   # ● 胜负判定
  114.   #--------------------------------------------------------------------------
  115.   def judge
  116.     # 全灭判定是真、并且同伴人数为 0 的情况下
  117.     if $game_party.all_dead? or $game_party.actors.size == 0
  118.       # 允许失败的情况下
  119.       if $game_temp.battle_can_lose
  120.         # 还原为战斗开始前的 BGM
  121.         $game_system.bgm_play($game_temp.map_bgm)
  122.         # 战斗结束
  123.         battle_end(2)
  124.         # 返回 true
  125.         return true
  126.       end
  127.       # 设置游戏结束标志
  128.       $game_temp.gameover = true
  129.       # 返回 true
  130.       return true
  131.     end
  132.     # 如果存在任意 1 个敌人就返回 false
  133.     for enemy in $game_troop.enemies
  134.       if enemy.exist?
  135.         return false
  136.       end
  137.     end
  138.     # 开始结束战斗回合 (胜利)
  139.     start_phase5
  140.     # 返回 true
  141.     return true
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # ● 战斗结束
  145.   #     result : 結果 (0:胜利 1:失败 2:逃跑)
  146.   #--------------------------------------------------------------------------
  147.   def battle_end(result)
  148.     # 清除战斗中标志
  149.     $game_temp.in_battle = false
  150.     # 清除全体同伴的行动
  151.     $game_party.clear_actions
  152.     # 解除战斗用状态
  153.     for actor in $game_party.actors
  154.       actor.remove_states_battle
  155.     end
  156.     # 清除敌人
  157.     $game_troop.enemies.clear
  158.     # 调用战斗返回调用
  159.     if $game_temp.battle_proc != nil
  160.       $game_temp.battle_proc.call(result)
  161.       $game_temp.battle_proc = nil
  162.     end
  163.     # 切换到地图画面
  164.     $scene = Scene_Map.new
  165.   end
  166.   #--------------------------------------------------------------------------
  167.   # ● 设置战斗事件
  168.   #--------------------------------------------------------------------------
  169.   def setup_battle_event
  170.     # 正在执行战斗事件的情况下
  171.     if $game_system.battle_interpreter.running?
  172.       return
  173.     end
  174.     # 搜索全部页的战斗事件
  175.     for index in 0...$data_troops[@troop_id].pages.size
  176.       # 获取事件页
  177.       page = $data_troops[@troop_id].pages[index]
  178.       # 事件条件可以参考 c
  179.       c = page.condition
  180.       # 没有指定任何条件的情况下转到下一页
  181.       unless c.turn_valid or c.enemy_valid or
  182.              c.actor_valid or c.switch_valid
  183.         next
  184.       end
  185.       # 执行完毕的情况下转到下一页
  186.       if $game_temp.battle_event_flags[index]
  187.         next
  188.       end
  189.       # 确认回合条件
  190.       if c.turn_valid
  191.         n = $game_temp.battle_turn
  192.         a = c.turn_a
  193.         b = c.turn_b
  194.         if (b == 0 and n != a) or
  195.            (b > 0 and (n < 1 or n < a or n % b != a % b))
  196.           next
  197.         end
  198.       end
  199.       # 确认敌人条件
  200.       if c.enemy_valid
  201.         enemy = $game_troop.enemies[c.enemy_index]
  202.         if enemy == nil or enemy.hp * 100.0 / enemy.maxhp > c.enemy_hp
  203.           next
  204.         end
  205.       end
  206.       # 确认角色条件
  207.       if c.actor_valid
  208.         actor = $game_actors[c.actor_id]
  209.         if actor == nil or actor.hp * 100.0 / actor.maxhp > c.actor_hp
  210.           next
  211.         end
  212.       end
  213.       # 确认开关条件
  214.       if c.switch_valid
  215.         if $game_switches[c.switch_id] == false
  216.           next
  217.         end
  218.       end
  219.       # 设置事件
  220.       $game_system.battle_interpreter.setup(page.list, 0)
  221.       # 本页的范围是 [战斗] 或 [回合] 的情况下
  222.       if page.span <= 1
  223.         # 设置执行结束标志
  224.         $game_temp.battle_event_flags[index] = true
  225.       end
  226.       return
  227.     end
  228.   end
  229.   #--------------------------------------------------------------------------
  230.   # ● 刷新画面
  231.   #--------------------------------------------------------------------------
  232.   def update
  233.     # 执行战斗事件中的情况下
  234.     if $game_system.battle_interpreter.running?
  235.       # 刷新解释器
  236.       $game_system.battle_interpreter.update
  237.       # 强制行动的战斗者不存在的情况下
  238.       if $game_temp.forcing_battler == nil
  239.         # 执行战斗事件结束的情况下
  240.         unless $game_system.battle_interpreter.running?
  241.           # 继续战斗的情况下、再执行战斗事件的设置
  242.           unless judge
  243.             setup_battle_event
  244.           end
  245.         end
  246.         # 如果不是结束战斗回合的情况下
  247.         if @phase != 5
  248.           # 刷新状态窗口
  249.           @status_window.refresh
  250.         end
  251.       end
  252.     end
  253.     # 系统 (计时器)、刷新画面
  254.     $game_system.update
  255.     $game_screen.update
  256.     # 计时器为 0 的情况下
  257.     if $game_system.timer_working and $game_system.timer == 0
  258.       # 中断战斗
  259.       $game_temp.battle_abort = true
  260.     end
  261.     # 刷新窗口
  262.     @help_window.update
  263.     @party_command_window.update
  264.     @actor_command_window.update
  265.     @status_window.update
  266.     @message_window.update
  267.     # 刷新活动块
  268.     @spriteset.update
  269.     # 处理过渡中的情况下
  270.     if $game_temp.transition_processing
  271.       # 清除处理过渡中标志
  272.       $game_temp.transition_processing = false
  273.       # 执行过渡
  274.       if $game_temp.transition_name == ""
  275.         Graphics.transition(20)
  276.       else
  277.         Graphics.transition(40, "Graphics/Transitions/" +
  278.           $game_temp.transition_name)
  279.       end
  280.     end
  281.     # 显示信息窗口中的情况下
  282.     if $game_temp.message_window_showing
  283.       return
  284.     end
  285.     # 显示效果中的情况下
  286.     if @spriteset.effect?
  287.       return
  288.     end
  289.     # 游戏结束的情况下
  290.     if $game_temp.gameover
  291.       # 切换到游戏结束画面
  292.       $scene = Scene_Gameover.new
  293.       return
  294.     end
  295.     # 返回标题画面的情况下
  296.     if $game_temp.to_title
  297.       # 切换到标题画面
  298.       $scene = Scene_Title.new
  299.       return
  300.     end
  301.     # 中断战斗的情况下
  302.     if $game_temp.battle_abort
  303.       # 还原为战斗前的 BGM
  304.       $game_system.bgm_play($game_temp.map_bgm)
  305.       # 战斗结束
  306.       battle_end(1)
  307.       return
  308.     end
  309.     # 等待中的情况下
  310.     if @wait_count > 0
  311.       # 减少等待计数
  312.       @wait_count -= 1
  313.       return
  314.     end
  315.     # 强制行动的角色存在、
  316.     # 并且战斗事件正在执行的情况下
  317.     if $game_temp.forcing_battler == nil and
  318.        $game_system.battle_interpreter.running?
  319.       return
  320.     end
  321.     # 回合分支
  322.     case @phase
  323.     when 1  # 自由战斗回合
  324.       update_phase1
  325.     when 2  # 同伴命令回合
  326.       update_phase2
  327.     when 3  # 角色命令回合
  328.       update_phase3
  329.     when 4  # 主回合
  330.       update_phase4
  331.     when 5  # 战斗结束回合
  332.       update_phase5
  333.     end
  334.   end
  335. end
复制代码

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-6-9
帖子
206
6
 楼主| 发表于 2008-7-28 23:57:41 | 只看该作者
。。。。。。原来一开始用错了VX的,战斗前加了一个脚本。。。现在用回XP的没去掉脚本。。
难怪显示这个。。。。谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-8-9 19:17

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表