查看: 2573|回复: 7

[已经过期] 请问怎么修改菜单呼出命令

[复制链接]
梦石
0
星屑
50
在线时间
14 小时
注册时间
2012-7-30
回帖
24
发表于 2013-7-17 21:00:46 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 1332535 于 2013-7-18 10:16 编辑

我下载了个整合系统,里面的    1.jpg 任务系统·看不懂,我换了个简单的,我想修改他的呼出命令,改成现在我要呼出的任务界面,怎么改啊,或者把那个选项去掉,在哪啊,都找遍了
这Window_MenuCommand代码
  1. #==============================================================================
  2. # ■ Window_MenuCommand
  3. #------------------------------------------------------------------------------
  4. #  メニュー画面で表示するコマンドウィンドウです。
  5. #==============================================================================

  6. class Window_MenuCommand < Window_Command
  7.   #--------------------------------------------------------------------------
  8.   # ● コマンド選択位置の初期化(クラスメソッド)
  9.   #--------------------------------------------------------------------------
  10.   def self.init_command_position
  11.     @@last_command_symbol = nil
  12.   end
  13.   #--------------------------------------------------------------------------
  14.   # ● オブジェクト初期化
  15.   #--------------------------------------------------------------------------
  16.   def initialize
  17.     super(0, 0)
  18.     select_last
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   # ● ウィンドウ幅の取得
  22.   #--------------------------------------------------------------------------
  23.   def window_width
  24.     return 160
  25.   end
  26.   #--------------------------------------------------------------------------
  27.   # ● 表示行数の取得
  28.   #--------------------------------------------------------------------------
  29.   def visible_line_number
  30.     item_max
  31.   end
  32.   #--------------------------------------------------------------------------
  33.   # ● コマンドリストの作成
  34.   #--------------------------------------------------------------------------
  35.   def make_command_list
  36.     add_main_commands
  37.     add_formation_command
  38.     add_original_commands
  39.     add_save_command
  40.     add_game_end_command
  41.   end
  42.   #--------------------------------------------------------------------------
  43.   # ● 主要コマンドをリストに追加
  44.   #--------------------------------------------------------------------------
  45.   def add_main_commands
  46.     add_command(Vocab::item,   :item,   main_commands_enabled)
  47.     add_command(Vocab::skill,  :skill,  main_commands_enabled)
  48.     add_command(Vocab::equip,  :equip,  main_commands_enabled)
  49.     add_command(Vocab::status, :status, main_commands_enabled)
  50.   end
  51.   #--------------------------------------------------------------------------
  52.   # ● 並び替えをコマンドリストに追加
  53.   #--------------------------------------------------------------------------
  54.   def add_formation_command
  55.     add_command(Vocab::formation, :formation, formation_enabled)
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # ● 独自コマンドの追加用
  59.   #--------------------------------------------------------------------------
  60.   def add_original_commands
  61.   end
  62.   #--------------------------------------------------------------------------
  63.   # ● セーブをコマンドリストに追加
  64.   #--------------------------------------------------------------------------
  65.   def add_save_command
  66.     add_command(Vocab::save, :save, save_enabled)
  67.   end
  68.   #--------------------------------------------------------------------------
  69.   # ● ゲーム終了をコマンドリストに追加
  70.   #--------------------------------------------------------------------------
  71.   def add_game_end_command
  72.     add_command(Vocab::game_end, :game_end)
  73.   end
  74.   #--------------------------------------------------------------------------
  75.   # ● 主要コマンドの有効状態を取得
  76.   #--------------------------------------------------------------------------
  77.   def main_commands_enabled
  78.     $game_party.exists
  79.   end
  80.   #--------------------------------------------------------------------------
  81.   # ● 並び替えの有効状態を取得
  82.   #--------------------------------------------------------------------------
  83.   def formation_enabled
  84.     $game_party.members.size >= 2 && !$game_system.formation_disabled
  85.   end
  86.   #--------------------------------------------------------------------------
  87.   # ● セーブの有効状態を取得
  88.   #--------------------------------------------------------------------------
  89.   def save_enabled
  90.     !$game_system.save_disabled
  91.   end
  92.   #--------------------------------------------------------------------------
  93.   # ● 決定ボタンが押されたときの処理
  94.   #--------------------------------------------------------------------------
  95.   def process_ok
  96.     @@last_command_symbol = current_symbol
  97.     super
  98.   end
  99.   #--------------------------------------------------------------------------
  100.   # ● 前回の選択位置を復帰
  101.   #--------------------------------------------------------------------------
  102.   def select_last
  103.     select_symbol(@@last_command_symbol)
  104.   end
  105. end
复制代码
还有个是Scene_Menu代码
  1. #==============================================================================
  2. # ■ Scene_Menu
  3. #------------------------------------------------------------------------------
  4. #  メニュー画面の処理を行うクラスです。
  5. #==============================================================================

  6. class Scene_Menu < Scene_MenuBase
  7.   #--------------------------------------------------------------------------
  8.   # ● 開始処理
  9.   #--------------------------------------------------------------------------
  10.   def start
  11.     super
  12.     create_command_window
  13.     create_gold_window
  14.     create_status_window
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● コマンドウィンドウの作成
  18.   #--------------------------------------------------------------------------
  19.   def create_command_window
  20.     @command_window = Window_MenuCommand.new
  21.     @command_window.set_handler(:item,      method(:command_item))
  22.     @command_window.set_handler(:skill,     method(:command_personal))
  23.     @command_window.set_handler(:equip,     method(:command_personal))
  24.     @command_window.set_handler(:status,    method(:command_personal))
  25.     @command_window.set_handler(:formation, method(:command_formation))
  26.     @command_window.set_handler(:save,      method(:command_save))
  27.     @command_window.set_handler(:game_end,  method(:command_game_end))
  28.     @command_window.set_handler(:cancel,    method(:return_scene))
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # ● ゴールドウィンドウの作成
  32.   #--------------------------------------------------------------------------
  33.   def create_gold_window
  34.     @gold_window = Window_Gold.new
  35.     @gold_window.x = 0
  36.     @gold_window.y = Graphics.height - @gold_window.height
  37.   end
  38.   #--------------------------------------------------------------------------
  39.   # ● ステータスウィンドウの作成
  40.   #--------------------------------------------------------------------------
  41.   def create_status_window
  42.     @status_window = Window_MenuStatus.new(@command_window.width, 0)
  43.   end
  44.   #--------------------------------------------------------------------------
  45.   # ● コマンド[アイテム]
  46.   #--------------------------------------------------------------------------
  47.   def command_item
  48.     SceneManager.call(Scene_Item)
  49.   end
  50.   #--------------------------------------------------------------------------
  51.   # ● コマンド[スキル][装備][ステータス]
  52.   #--------------------------------------------------------------------------
  53.   def command_personal
  54.     @status_window.select_last
  55.     @status_window.activate
  56.     @status_window.set_handler(:ok,     method(:on_personal_ok))
  57.     @status_window.set_handler(:cancel, method(:on_personal_cancel))
  58.   end
  59.   #--------------------------------------------------------------------------
  60.   # ● コマンド[並び替え]
  61.   #--------------------------------------------------------------------------
  62.   def command_formation
  63.     @status_window.select_last
  64.     @status_window.activate
  65.     @status_window.set_handler(:ok,     method(:on_formation_ok))
  66.     @status_window.set_handler(:cancel, method(:on_formation_cancel))
  67.   end
  68.   #--------------------------------------------------------------------------
  69.   # ● コマンド[セーブ]
  70.   #--------------------------------------------------------------------------
  71.   def command_save
  72.     SceneManager.call(Scene_Save)
  73.   end
  74.   #--------------------------------------------------------------------------
  75.   # ● コマンド[ゲーム終了]
  76.   #--------------------------------------------------------------------------
  77.   def command_game_end
  78.     SceneManager.call(Scene_End)
  79.   end
  80.   #--------------------------------------------------------------------------
  81.   # ● 個人コマンド[決定]
  82.   #--------------------------------------------------------------------------
  83.   def on_personal_ok
  84.     case @command_window.current_symbol
  85.     when :skill
  86.       SceneManager.call(Scene_Skill)
  87.     when :equip
  88.       SceneManager.call(Scene_Equip)
  89.     when :status
  90.       SceneManager.call(Scene_Status)
  91.     end
  92.   end
  93.   #--------------------------------------------------------------------------
  94.   # ● 個人コマンド[終了]
  95.   #--------------------------------------------------------------------------
  96.   def on_personal_cancel
  97.     @status_window.unselect
  98.     @command_window.activate
  99.   end
  100.   #--------------------------------------------------------------------------
  101.   # ● 並び替え[決定]
  102.   #--------------------------------------------------------------------------
  103.   def on_formation_ok
  104.     if @status_window.pending_index >= 0
  105.       $game_party.swap_order(@status_window.index,
  106.                              @status_window.pending_index)
  107.       @status_window.pending_index = -1
  108.       @status_window.redraw_item(@status_window.index)
  109.     else
  110.       @status_window.pending_index = @status_window.index
  111.     end
  112.     @status_window.activate
  113.   end
  114.   #--------------------------------------------------------------------------
  115.   # ● 並び替え[キャンセル]
  116.   #--------------------------------------------------------------------------
  117.   def on_formation_cancel
  118.     if @status_window.pending_index >= 0
  119.       @status_window.pending_index = -1
  120.       @status_window.activate
  121.     else
  122.       @status_window.unselect
  123.       @command_window.activate
  124.     end
  125.   end
  126. end
复制代码


全局搜索
alias add_original_commands_quest add_original_commands
  def add_original_commands
    add_original_commands_quest
    add_command("任务确认", :questlist, true)
  end
end
找到了这个啊啊啊啊啊啊啊啊      "任务确认"        =>  235,    # Menu scene.
梦石
0
星屑
78
在线时间
602 小时
注册时间
2012-4-20
回帖
572
发表于 2013-7-17 21:52:12 | 显示全部楼层
本帖最后由 星月铃音 于 2013-7-17 21:53 编辑

可以试一下先删除掉原来的任务脚本,之后再参照其他的添加一项,连接到你的就好了。如果不会的话,可以在物品里新建一个,之后链接公共事件,使用脚本,之后使用类似“SceneManager.call(这里是名字~)”这样的就可以,不过物品还要设置成珍贵物品,完成,
@1332535  
https://rpg.blue/https://rpg.blue/data/attachment/album/201407/20/204500gw201w4tveh224td.png
回复

使用道具 举报

梦石
0
星屑
50
在线时间
256 小时
注册时间
2013-5-27
回帖
187
发表于 2013-7-17 22:43:42 | 显示全部楼层
估计是其他两个脚本加的,你放这两个原来的也没用。
全局搜索"任务确定",然后得看脚本怎么写的,再做处理。
回复

使用道具 举报

梦石
0
星屑
1478
在线时间
993 小时
注册时间
2011-5-11
回帖
418
发表于 2013-7-17 23:13:49 | 显示全部楼层
改一下新任务脚本的Class Scene的名字为以前任务脚本的Class Scene名字就可以了
http://rpg.blue/static/image/smiley/yct/A059.gif中国字认识都不到一半,哪的心情学英语呀!
回复

使用道具 举报

梦石
0
星屑
50
在线时间
14 小时
注册时间
2012-7-30
回帖
24
 楼主| 发表于 2013-7-18 10:02:30 | 显示全部楼层
本帖最后由 1332535 于 2013-7-18 10:19 编辑
星月铃音 发表于 2013-7-17 21:52
可以试一下先删除掉原来的任务脚本,之后再参照其他的添加一项,连接到你的就好了。如果不会的话,可以在物 ...


我试过了,把原来的删了,把新任务脚本放进去,召唤新任务脚本界面!就出现Game interperter1419行发生noMOTHEDerror,不删除还好好的,放2个任务系统,其中一个不管,那样还好好的,难道要把以前的也放在那么,我又不用那个!呜呜呜,

点评

应该是顺序问题吧,可以尝试一下吧新的任务脚本放在下面(那个|(在这里添加脚本)上面)  发表于 2013-7-18 20:24
回复

使用道具 举报

梦石
0
星屑
50
在线时间
14 小时
注册时间
2012-7-30
回帖
24
 楼主| 发表于 2013-7-18 10:07:12 | 显示全部楼层
scottyfan 发表于 2013-7-17 22:43
估计是其他两个脚本加的,你放这两个原来的也没用。
全局搜索"任务确定",然后得看脚本怎么写的,再做处理 ...

在哪全局搜索
回复

使用道具 举报

梦石
0
星屑
50
在线时间
14 小时
注册时间
2012-7-30
回帖
24
 楼主| 发表于 2013-7-18 10:12:11 | 显示全部楼层
我知道了,你不用说了
回复

使用道具 举报

梦石
0
星屑
50
在线时间
14 小时
注册时间
2012-7-30
回帖
24
 楼主| 发表于 2013-7-18 10:14:23 | 显示全部楼层
本帖最后由 1332535 于 2013-7-18 10:15 编辑
1332535 发表于 2013-7-18 10:07
在哪全局搜索


  alias add_original_commands_quest add_original_commands
  def add_original_commands
    add_original_commands_quest
    add_command("任务确认", :questlist, true)
  end
end
找到了这个啊啊啊啊啊啊啊啊      "任务确认"        =>  235,    # Menu scene.

点评

你看看这个是什么脚本,我估计是任务脚本,你可以把这个脚本删了试试。  发表于 2013-7-18 20:18
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部