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

Project1

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

[有事请教] [已解决]}一个场景两个定义两命令窗口光标移动不动

[复制链接]

Lv4.逐梦者

梦石
0
星屑
7474
在线时间
1302 小时
注册时间
2015-8-15
帖子
742
跳转到指定楼层
1
发表于 2024-7-3 15:07:12 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 金芒芒 于 2024-7-5 16:43 编辑

RUBY 代码复制
  1. #==============================================================================
  2. # ■ Scene_chuzhan
  3. #------------------------------------------------------------------------------
  4. #  处理菜单画面的类。
  5. #==============================================================================
  6.  
  7. class Scene_chuzhan
  8.   #--------------------------------------------------------------------------
  9.   # ● 初始化对像
  10.   #     chuzhan_index : 命令光标的初期位置
  11.   #--------------------------------------------------------------------------
  12.   def initialize(chuzhan_index = 0)
  13.     @chuzhan_index = chuzhan_index
  14.   end
  15.   #--------------------------------------------------------------------------
  16.   # ● 主处理
  17.   #--------------------------------------------------------------------------
  18.   def main
  19.     # 生成地图背景
  20.     @chezhan_TransparentBackground = Spriteset_Map.new
  21.     # 生成出战菜单选项
  22.     @chezhan_IndexCommand = Window_chuzhanCommand.new
  23.     @chezhan_IndexCommand.index = @chuzhan_index
  24.     # 生成阵位列表
  25.     @zhenwei_IndexCommand = Window_zhenweiCommand.new
  26.   #  @zhenwei_IndexCommand.index = @zhenwei_index
  27.  
  28.     # 冻结
  29.     Graphics.transition
  30.     # 不切换场景就一直循环
  31.     update while $scene == self
  32.     # 渐变
  33.     Graphics.freeze
  34.     @chezhan_IndexCommand.dispose
  35.     @zhenwei_IndexCommand.dispose
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ● 刷新画面
  39.   #--------------------------------------------------------------------------
  40.   def update
  41.     Graphics.update
  42.     Input.update
  43.  
  44. #    return chezhanUpdate_IndexCommand if @chezhan_IndexCommand.active
  45. #   return zhenweiUpdate_IndexCommand if @zhenwei_IndexCommand.active
  46.  
  47. end
  48.  
  49.   #--------------------------------------------------------------------------
  50.   # ● 刷新画面 (命令窗口被激活的情况下)
  51.   #--------------------------------------------------------------------------
  52.   def update_chezhan_IndexCommand
  53.  
  54.    @chezhan_IndexCommand.update
  55.     # 按下 B 键的情况下
  56.     if Input.trigger?(Input::B)
  57.       $scene = Scene_Map.new
  58.       return
  59.     end
  60.  
  61.     # 按下 C 键的情况下
  62.     if Input.trigger?(Input::C)
  63.       # 命令窗口的光标位置分支
  64.       case  @chezhan_IndexCommand.index
  65.       when 0  # 队组1出生点
  66.         # 演奏确定 SE
  67.         $game_system.se_play($data_system.decision_se)
  68.         # 切换到物品画面
  69.       # $game_switches[队伍1] = true #/ false
  70.        $game_switches[20] = true
  71.        $game_switches[21] = false
  72.        $game_switches[22] = false
  73.        $game_switches[23] = false
  74.        $game_switches[24] = false
  75.        @chezhan_IndexCommand.active = false
  76.        @zhenwei_IndexCommand.active = true
  77.        $scene = Scene_chuzhan.new
  78.       when 1  # 队组2出生点
  79.         # 演奏确定 SE
  80.         $game_system.se_play($data_system.decision_se)
  81.         # 激活状态窗口
  82.  
  83.  
  84.        $game_switches[20] = false
  85.        $game_switches[21] = true
  86.        $game_switches[22] = false
  87.        $game_switches[23] = false
  88.        $game_switches[24] = false
  89.        @chezhan_IndexCommand.active = false
  90.        @zhenwei_IndexCommand.active = true
  91.      #  $scene = Scene_chuzhan.new
  92.       when 2  # 队组3出生点
  93.         # 演奏确定 SE
  94.         $game_system.se_play($data_system.decision_se)
  95.         # 激活状态窗口
  96.  
  97.  
  98.        $game_switches[20] = false
  99.        $game_switches[21] = false
  100.        $game_switches[22] = true
  101.        $game_switches[23] = false
  102.        $game_switches[24] = false
  103.        @chezhan_IndexCommand.active = false
  104.        @zhenwei_IndexCommand.active = true
  105.       when 3  # 队组4出生点
  106.         # 演奏确定 SE
  107.        $game_system.se_play($data_system.decision_se)
  108.  
  109.  
  110.        $game_switches[20] = false
  111.        $game_switches[21] = false
  112.        $game_switches[22] = false
  113.        $game_switches[23] = true
  114.        $game_switches[24] = false
  115.        @chezhan_IndexCommand.active = false
  116.        @zhenwei_IndexCommand.active = true
  117.  
  118.       when 4  # 队组5出生点
  119.         # 演奏确定 SE
  120.        $game_system.se_play($data_system.decision_se)
  121.  
  122.  
  123.        $game_switches[20] = false
  124.        $game_switches[21] = false
  125.        $game_switches[22] = false
  126.        $game_switches[23] = false
  127.        $game_switches[24] = true
  128.        @chezhan_IndexCommand.active = false
  129.        @zhenwei_IndexCommand.active = true
  130.  
  131.      end
  132.  
  133.  
  134.       return
  135.     end
  136.   end
  137.  
  138.   #--------------------------------------------------------------------------
  139.   # ● 刷新画面 (命令窗口被激活的情况下)
  140.   #--------------------------------------------------------------------------
  141.   def update_zhenwei_IndexCommand
  142.     # 按下 B 键的情况下
  143.     if Input.trigger?(Input::B)
  144.       # 演奏取消 SE
  145.       $game_system.se_play($data_system.cancel_se)
  146.       # 切换的地图画面
  147.       $scene = Scene_Map.new
  148.       return
  149.     end
  150.     # 按下 C 键的情况下
  151.     if Input.trigger?(Input::C)
  152.       # 命令窗口的光标位置分支
  153.       case @command_window.index
  154.       when 0  # 队组1出生点
  155.         # 演奏确定 SE
  156.         $game_system.se_play($data_system.decision_se)
  157.         # 切换到物品画面
  158.        # $出战1=[]
  159.        if $game_switches[20] == true
  160.          $出战1=[9.13]
  161.         p $出战1
  162.        end
  163.         if $game_switches[21] == true
  164.          $出战2=[9.113]
  165.         p $出战2
  166.        end
  167.  
  168.         $scene = Scene_chuzhan.new(1)
  169.       when 1  # 队组2出生点
  170.         # 演奏确定 SE
  171.         $game_system.se_play($data_system.decision_se)
  172.         # 激活状态窗口
  173.         $出战2=[]
  174.        $scene = Scene_chuzhan.new(2)
  175.       when 2  # 队组3出生点
  176.         # 演奏确定 SE
  177.         $game_system.se_play($data_system.decision_se)
  178.         # 激活状态窗口
  179.        $出战3=[]
  180.      $scene = Scene_chuzhan.new(3)
  181.       when 3  # 队组4出生点
  182.         # 演奏确定 SE
  183.         $game_system.se_play($data_system.decision_se)
  184.        $出战4=[]
  185.         # 激活状态窗口
  186.      $scene = Scene_chuzhan.new(4)
  187.  
  188.       when 4  # 队组5出生点
  189.         # 演奏确定 SE
  190.         $game_system.se_play($data_system.decision_se)
  191.        $出战5=[]
  192.         # 队组4出生点
  193.       $scene = Scene_chuzhan.new(5)
  194.       when 5  
  195.         $game_system.se_play($data_system.decision_se)
  196.        $出战=[]
  197.       $scene = Scene_chuzhan.new(6)
  198.       when 6  
  199.         $game_system.se_play($data_system.decision_se)
  200.        $出战=[]
  201.       $scene = Scene_chuzhan.new(7)
  202.       when 7  
  203.         $game_system.se_play($data_system.decision_se)
  204.        $出战=[]
  205.       $scene = Scene_chuzhan.new(8)
  206.       when 8  
  207.         $game_system.se_play($data_system.decision_se)
  208.        $出战=[]
  209.       $scene = Scene_chuzhan.new(9)
  210.       when 9  
  211.         $game_system.se_play($data_system.decision_se)
  212.        $出战=[]
  213.        $scene = Scene_chuzhan.new(0)
  214.  
  215.  
  216.       end
  217.       return
  218.     end
  219.   end
  220.  
  221. end
RUBY 代码复制
  1. #==============================================================================
  2. # ■ Window_MenuCommand
  3. #------------------------------------------------------------------------------
  4. #  菜单的命令选择行窗口。
  5. #==============================================================================
  6.  
  7. class Window_chuzhanCommand < Window_Selectable
  8.   #--------------------------------------------------------------------------
  9.   # ● 初始化对像
  10.   #     width    : 窗口的宽
  11.   #     commands : 命令字符串序列
  12.   #--------------------------------------------------------------------------
  13.   def initialize
  14.     width = 480 - 64
  15.     s1 = "出战1"
  16.     s2 = "出战2"
  17.     s3 = "出战3"
  18.     s4 = "出战4"
  19.     s5 = "出战5"
  20.     commands = [s1, s2, s3, s4, s5]
  21.     # 由命令的个数计算出窗口的高
  22.     super(32, 32, 160, 160)
  23.     @item_max = commands.size
  24.     @commands = commands
  25.     self.contents = Bitmap.new(self.width - 32, commands.size / 2 * 32)
  26.     self.back_opacity /= 2
  27.     @column_max = 2
  28.     @i = -1000
  29.     @title_self_window = Window_Base.new(32 - 8, 32 - 8, 96, 24)
  30.     @title_self_window.back_opacity /= 2
  31.     @title_self_text = Sprite.new
  32.     @title_self_text.bitmap = Bitmap.new(640, 480)
  33.     @title_self_text.bitmap.clear
  34.     @title_self_text.bitmap.font.size -=4
  35.     @title_self_text.bitmap.font.name = "宋体"
  36.     @title_self_text.bitmap.font.color = Color.new(0, 0, 0)
  37.     @title_self_text.bitmap.draw_text(32 - 8, 32 - 12, 96, 32, "菜单选项", 1)
  38.     @title_self_text.bitmap.font.color = Color.new(128, 255, 128)
  39.     @title_self_text.bitmap.draw_text(32 - 8 - 1, 32 - 12 - 1, 96, 32, "菜单选项", 1)
  40.     @title_self_text.z = 1000
  41.     refresh
  42.     self.index = 0
  43.  
  44.   end
  45.   def item
  46.     return @commands[self.index] == nil ? "" : @commands[self.index]
  47.   end
  48.  
  49.   def dispose
  50.     super
  51.     if @title_self_text.bitmap != nil
  52.       @title_self_text.bitmap.dispose
  53.     end
  54.     @title_self_text.dispose
  55.     @title_self_window.dispose
  56.   end
  57.  
  58.   #--------------------------------------------------------------------------
  59.   # ● 刷新
  60.   #--------------------------------------------------------------------------
  61.   def refresh
  62.     self.contents.clear
  63.     for i in 0...@item_max
  64.       if self.index == i
  65.         draw_item(i, normal_color, true)
  66.       else
  67.         draw_item(i, normal_color, false)
  68.       end
  69.     end
  70.   end
  71.   #--------------------------------------------------------------------------
  72.   # ● 描绘项目
  73.   #     index : 项目编号
  74.   #     color : 文字色
  75.   #--------------------------------------------------------------------------
  76.   def draw_item(index, color, flg)
  77.     self.contents.font.color = color
  78.     rect = Rect.new(index % 2 * 72, index / 2 * 32, (self.width - 32) / 2, 32)
  79.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  80.     self.contents.draw_text(rect, @commands[index], 1)
  81.     if flg
  82.       self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  83.       self.contents.font.color = Color.new(0, 0, 0)
  84.       self.contents.draw_text(rect, @commands[index], 1)
  85.       rect = Rect.new(index % 2 * 72 - 1, index / 2 * 32 - 1, (self.width - 32) / 2, 32)
  86.       self.contents.font.color = Color.new(255, 255, 225)
  87.       self.contents.draw_text(rect, @commands[index], 1)
  88.     end
  89.   end
  90.   #--------------------------------------------------------------------------
  91.   # ● 项目无效化
  92.   #     index : 项目编号
  93.   #--------------------------------------------------------------------------
  94.   def disable_item(index)
  95.     draw_item(index, disabled_color)
  96.   end
  97.   #--------------------------------------------------------------------------
  98.   # ● 刷新光标矩形
  99.   #--------------------------------------------------------------------------
  100.   def update_cursor_rect
  101.     if @index < 0
  102.       self.cursor_rect.empty
  103.     else
  104.       self.cursor_rect.set(@index % 2 * 72, @index / 2 * 32, (self.width - 32) / 2, 32)
  105.     end
  106.   end
  107.   def update
  108.     super
  109.     if self.index != @i
  110.       @i = self.index
  111.       refresh
  112.     end
  113.   end
  114.  
  115. end

[/pre]
RUBY 代码复制
  1. #==============================================================================
  2. # ■ Window_MenuCommand
  3. #------------------------------------------------------------------------------
  4. #  菜单的命令选择行窗口。
  5. #==============================================================================
  6.  
  7. class Window_zhenweiCommand < Window_Selectable
  8.   #--------------------------------------------------------------------------
  9.   # ● 初始化对像
  10.   #     width    : 窗口的宽
  11.   #     commands : 命令字符串序列
  12.   #--------------------------------------------------------------------------
  13.   def initialize
  14.     width = 480 - 64
  15.     s1 = "阵位1"
  16.     s2 = "阵位2"
  17.     s3 = "阵位3"
  18.     s4 = "阵位4"
  19.     s5 = "阵位5"
  20.     s6 = "阵位6"
  21.     s7 = "阵位7"
  22.     s8 = "阵位8"
  23.     s9 = "阵位9"
  24.     s10 = "阵位10"
  25.  
  26.     commands = [s1, s2, s3, s4, s5,s6,s7,s8,s9,s10]
  27.     # 由命令的个数计算出窗口的高
  28.     super(32+160, 32, 160, 160)
  29.     @item_max = commands.size
  30.     @commands = commands
  31.     self.contents = Bitmap.new(self.width - 32, commands.size / 2 * 32)
  32.     self.back_opacity /= 2
  33.     @column_max = 2
  34.     @i = -1000
  35.     @title_self_window = Window_Base.new(32 - 8, 32 - 8, 96, 24)
  36.     @title_self_window.back_opacity /= 2
  37.     @title_self_text = Sprite.new
  38.     @title_self_text.bitmap = Bitmap.new(640, 480)
  39.     @title_self_text.bitmap.clear
  40.     @title_self_text.bitmap.font.size -=4
  41.     @title_self_text.bitmap.font.name = "宋体"
  42.     @title_self_text.bitmap.font.color = Color.new(0, 0, 0)
  43.     @title_self_text.bitmap.draw_text(32 - 8, 32 - 12, 96, 32, "菜单选项", 1)
  44.     @title_self_text.bitmap.font.color = Color.new(128, 255, 128)
  45.     @title_self_text.bitmap.draw_text(32 - 8 - 1, 32 - 12 - 1, 96, 32, "菜单选项", 1)
  46.     @title_self_text.z = 1000
  47.     refresh
  48.     self.index = 0
  49.  
  50.   end
  51.   def item
  52.     return @commands[self.index] == nil ? "" : @commands[self.index]
  53.   end
  54.  
  55.   def dispose
  56.     super
  57.     if @title_self_text.bitmap != nil
  58.       @title_self_text.bitmap.dispose
  59.     end
  60.     @title_self_text.dispose
  61.     @title_self_window.dispose
  62.   end
  63.  
  64.   #--------------------------------------------------------------------------
  65.   # ● 刷新
  66.   #--------------------------------------------------------------------------
  67.   def refresh
  68.     self.contents.clear
  69.     for i in 0...@item_max
  70.       if self.index == i
  71.         draw_item(i, normal_color, true)
  72.       else
  73.         draw_item(i, normal_color, false)
  74.       end
  75.     end
  76.   end
  77.   #--------------------------------------------------------------------------
  78.   # ● 描绘项目
  79.   #     index : 项目编号
  80.   #     color : 文字色
  81.   #--------------------------------------------------------------------------
  82.   def draw_item(index, color, flg)
  83.     self.contents.font.color = color
  84.     rect = Rect.new(index % 2 * 72, index / 2 * 32, (self.width - 32) / 2, 32)
  85.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  86.     self.contents.draw_text(rect, @commands[index], 1)
  87.     if flg
  88.       self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  89.       self.contents.font.color = Color.new(0, 0, 0)
  90.       self.contents.draw_text(rect, @commands[index], 1)
  91.       rect = Rect.new(index % 2 * 72 - 1, index / 2 * 32 - 1, (self.width - 32) / 2, 32)
  92.       self.contents.font.color = Color.new(255, 255, 225)
  93.       self.contents.draw_text(rect, @commands[index], 1)
  94.     end
  95.   end
  96.   #--------------------------------------------------------------------------
  97.   # ● 项目无效化
  98.   #     index : 项目编号
  99.   #--------------------------------------------------------------------------
  100.   def disable_item(index)
  101.     draw_item(index, disabled_color)
  102.   end
  103.   #--------------------------------------------------------------------------
  104.   # ● 刷新光标矩形
  105.   #--------------------------------------------------------------------------
  106.   def update_cursor_rect
  107.     if @index < 0
  108.       self.cursor_rect.empty
  109.     else
  110.       self.cursor_rect.set(@index % 2 * 72, @index / 2 * 32, (self.width - 32) / 2, 32)
  111.     end
  112.   end
  113.   def update
  114.     super
  115.     if self.index != @i
  116.       @i = self.index
  117.       refresh
  118.     end
  119.   end
  120.  
  121. end

阵位.png (79.39 KB, 下载次数: 1)

阵位.png

Lv4.逐梦者

梦石
0
星屑
7474
在线时间
1302 小时
注册时间
2015-8-15
帖子
742
2
 楼主| 发表于 2024-7-5 16:42:47 | 只看该作者
  1. #==============================================================================
  2. # ■ Scene_chuzhan
  3. #------------------------------------------------------------------------------
  4. #  处理菜单画面的类。
  5. #==============================================================================

  6. class Scene_chuzhan
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #     chuzhan_index : 命令光标的初期位置,zhenwei_index = 9
  10.   #--------------------------------------------------------------------------
  11.   def initialize(chuzhan_index = 0)
  12.     @chuzhan_index = chuzhan_index
  13. #    @zhenwei_index = zhenwei_index
  14.     @wait_time = 0
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● 主处理
  18.   #--------------------------------------------------------------------------
  19.   def main
  20.     # 生成地图背景
  21.     @chezhan_TransparentBackground = Spriteset_Map.new
  22.     # 生成出战菜单选项
  23.     @chezhan_IndexCommand = Window_chuzhanCommand.new
  24.     @chezhan_IndexCommand.index = @chuzhan_index
  25.     # 生成阵位列表
  26.     @zhenwei_IndexCommand = Window_zhenweiCommand.new
  27.   #  @zhenwei_IndexCommand.index = false#@zhenwei_index

  28.     # 冻结
  29.     Graphics.transition
  30.     # 不切换场景就一直循环
  31.     update while $scene == self
  32.     # 渐变
  33.     Graphics.freeze
  34.     @chezhan_IndexCommand.dispose
  35.     @zhenwei_IndexCommand.dispose
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ● 刷新画面
  39.   #--------------------------------------------------------------------------
  40.   def update
  41.     Graphics.update
  42.     Input.update
  43.     @wait_time -= 1
  44. # if @chezhan_IndexCommand.active == true
  45.     @chezhan_IndexCommand.update
  46.   #  end
  47.     update_chezhan_IndexCommand
  48.   # if @chezhan_IndexCommand.active == false
  49.    #   @zhenwei_IndexCommand.update
  50.    #   update_zhenwei_IndexCommand
  51.    #  end
  52. #   return zhenweiUpdate_IndexCommand if@chezhan_IndexCommand.active
  53. #  return zhenweiUpdate_IndexCommand if @zhenwei_IndexCommand.active =nil

  54. end

  55.   #--------------------------------------------------------------------------
  56.   # ● 刷新画面 (命令窗口被激活的情况下)
  57.   #--------------------------------------------------------------------------
  58.   def update_chezhan_IndexCommand

  59.   # @chezhan_IndexCommand.update
  60.     # 按下 B 键的情况下
  61.     if Input.trigger?(Input::B)
  62.       $scene = Scene_Map.new
  63.       return
  64.     end

  65.     # 按下 C 键的情况下
  66.     if Input.trigger?(Input::C)
  67.       # 命令窗口的光标位置分支
  68.       case  @chezhan_IndexCommand.index
  69.       when 0  # 队组1出生点
  70.         # 演奏确定 SE
  71.         $game_system.se_play($data_system.decision_se)
  72.         # 切换到物品画面
  73.       # $game_switches[队伍1] = true #/ false
  74.        $game_switches[20] = true
  75.        $game_switches[21] = false
  76.        $game_switches[22] = false
  77.        $game_switches[23] = false
  78.        $game_switches[24] = false
  79. #      @chezhan_IndexCommand.active = false
  80. #      @zhenwei_IndexCommand.active = true
  81.        $scene = Scene_zhenwei.new(0)
  82.    #    @zhenwei_IndexCommand.update
  83.       # update_zhenwei_IndexCommand
  84.       # $scene = Scene_chuzhan.new(5)
  85.       when 1  # 队组2出生点
  86.         # 演奏确定 SE
  87.         $game_system.se_play($data_system.decision_se)
  88.         # 激活状态窗口


  89.        $game_switches[20] = false
  90.        $game_switches[21] = true
  91.        $game_switches[22] = false
  92.        $game_switches[23] = false
  93.        $game_switches[24] = false
  94.        $scene = Scene_zhenwei.new(0)
  95.      #  $scene = Scene_chuzhan.new
  96.       when 2  # 队组3出生点
  97.         # 演奏确定 SE
  98.         $game_system.se_play($data_system.decision_se)
  99.         # 激活状态窗口


  100.        $game_switches[20] = false
  101.        $game_switches[21] = false
  102.        $game_switches[22] = true
  103.        $game_switches[23] = false
  104.        $game_switches[24] = false
  105.        @chezhan_IndexCommand.active = false
  106.        @zhenwei_IndexCommand.active = true
  107.       when 3  # 队组4出生点
  108.         # 演奏确定 SE
  109.        $game_system.se_play($data_system.decision_se)


  110.        $game_switches[20] = false
  111.        $game_switches[21] = false
  112.        $game_switches[22] = false
  113.        $game_switches[23] = true
  114.        $game_switches[24] = false
  115.        @chezhan_IndexCommand.active = false
  116.        @zhenwei_IndexCommand.active = true

  117.       when 4  # 队组5出生点
  118.         # 演奏确定 SE
  119.        $game_system.se_play($data_system.decision_se)


  120.        $game_switches[20] = false
  121.        $game_switches[21] = false
  122.        $game_switches[22] = false
  123.        $game_switches[23] = false
  124.        $game_switches[24] = true
  125.        @chezhan_IndexCommand.active = false
  126.        @zhenwei_IndexCommand.active = true

  127.      end

  128.      
  129.       return
  130.     end
  131.   end

  132.   #--------------------------------------------------------------------------
  133.   # ● 刷新画面 (命令窗口被激活的情况下)
  134.   #--------------------------------------------------------------------------
  135.   def update_zhenwei_IndexCommand
  136.       
  137.   #  end
  138.    # update_zhenwei_IndexCommand
  139.     # 按下 B 键的情况下
  140.     if Input.trigger?(Input::B)
  141.       # 演奏取消 SE
  142.       $game_system.se_play($data_system.cancel_se)
  143.       # 切换的地图画面
  144.       $scene = Scene_Map.new
  145.       return
  146.     end
  147.     # 按下 C 键的情况下
  148.     if Input.trigger?(Input::C)
  149.       # 命令窗口的光标位置分支
  150.       case @zhenwei_IndexCommand.index
  151.       when 0  # 队组1出生点
  152.         # 演奏确定 SE
  153.         $game_system.se_play($data_system.decision_se)
  154.         # 切换到物品画面
  155.        # $出战1=[]

  156.       $scene = Scene_zhenwei.new
  157.        # $scene = Scene_chuzhan.new(1)
  158.       when 1  # 队组2出生点
  159.         # 演奏确定 SE
  160.         $game_system.se_play($data_system.decision_se)
  161.         # 激活状态窗口
  162.      #   $出战2=[]
  163.       $scene = Scene_zhenwei.new
  164.       when 2  # 队组3出生点
  165.         # 演奏确定 SE
  166.         $game_system.se_play($data_system.decision_se)
  167.         # 激活状态窗口
  168.        $出战3=[]
  169.      $scene = Scene_chuzhan.new(3)
  170.       when 3  # 队组4出生点
  171.         # 演奏确定 SE
  172.         $game_system.se_play($data_system.decision_se)
  173.        $出战4=[]
  174.         # 激活状态窗口
  175.      $scene = Scene_chuzhan.new(4)

  176.       when 4  # 队组5出生点
  177.         # 演奏确定 SE
  178.         $game_system.se_play($data_system.decision_se)
  179.        $出战5=[]
  180.         # 队组4出生点
  181.       $scene = Scene_chuzhan.new(5)
  182.       when 5  
  183.         $game_system.se_play($data_system.decision_se)
  184.        $出战=[]
  185.       $scene = Scene_chuzhan.new(6)
  186.       when 6  
  187.         $game_system.se_play($data_system.decision_se)
  188.        $出战=[]
  189.       $scene = Scene_chuzhan.new(7)
  190.       when 7  
  191.         $game_system.se_play($data_system.decision_se)
  192.        $出战=[]
  193.       $scene = Scene_chuzhan.new(8)
  194.       when 8  
  195.         $game_system.se_play($data_system.decision_se)
  196.        $出战=[]
  197.       $scene = Scene_chuzhan.new(9)
  198.       when 9  
  199.         $game_system.se_play($data_system.decision_se)
  200.        $出战=[]
  201.        $scene = Scene_chuzhan.new(0)


  202.       end
  203.       return
  204.     end
  205.   end

  206. end
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-8 10:24

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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