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

Project1

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

[已经解决] (800经验悬赏)请求高手改菜单脚本!

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
20 小时
注册时间
2012-1-25
帖子
24
跳转到指定楼层
1
发表于 2012-2-26 21:27:11 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 追寻之人 于 2012-2-29 22:22 编辑

如图,把菜单改成这个样子就可以了!
我自己搞不定只好发帖子求助了!

Lv2.观梦者

Adam

梦石
0
星屑
688
在线时间
841 小时
注册时间
2010-8-24
帖子
2595
2
发表于 2012-2-28 19:16:01 | 只看该作者
可以参照VX的改菜单,打开Sence_Menu
找到以下
  1. @command_window.set_handler(:item,      method(:command_item))
  2.     @command_window.set_handler(:skill,     method(:command_personal))
  3.     @command_window.set_handler(:equip,     method(:command_personal))
  4.     @command_window.set_handler(:status,    method(:command_personal))
  5.     @command_window.set_handler(:formation, method(:command_formation))
  6.     @command_window.set_handler(:save,      method(:command_save))
  7.     @command_window.set_handler(:game_end,  method(:command_game_end))
  8.     @command_window.set_handler(:task,      method(:command_task))
  9.     @command_window.set_handler(:cancel,    method(:return_scene))
复制代码
(task是我自己弄的任务系统,你应该以自己的脚本为准)
然后把自己要弄的打开,比如你要弄读取存档,就打开Game_Interpreter找到以下脚本
  1. SceneManager.call(Scene_Save)
复制代码
把第六行脚本替换,即
  1.   :save,      method(:command_save)
复制代码
替换成
  1. SceneManager.call(Scene_Save)
复制代码
这样就可以独挡了,当然,说不定弄到最后会发现打开物品变成读档,那只能一个个调整了......
记得把系统的存档改名为读档。
如果脚本错误,就按以上的格式加点什么符号即可。
同理,找到你要的功能的脚本,找到他慢慢替换。
变量什么的就搞不清楚了。
嘛,摸了。
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
66
在线时间
140 小时
注册时间
2012-2-6
帖子
384
3
发表于 2012-2-29 16:44:33 | 只看该作者
本帖最后由 杂兵天下 于 2012-2-29 20:57 编辑

汗。。。系统选项其实是退出游戏选项的加强版吧。。。
系统选项已经做出来了
  1. #==============================================================================
  2. # ■ Game_Interpreter_Self
  3. #------------------------------------------------------------------------------
  4. # 独立公共事件执行器
  5. #==============================================================================
  6. =begin

  7. 独立公共事件执行器用于随时执行公共事件,不受公共事件调用地方的限制。
  8. □使用方法:
  9. 1。将脚本插入main前。
  10. 2。在需要使用公共事件的地方
  11. 插入、
  12. GIS.new(公共事件ID)
  13. □可能的冲突:无
  14. 已经被改过兼容VA了。
  15. 原制作者为九夜神尊。
  16. =end

  17. class GIS < Game_Interpreter
  18.   def initialize(com_id)
  19.     @com_id = com_id
  20.     common_event = $data_common_events[@com_id]
  21.     setup(common_event.list)
  22.     update
  23.     clear
  24.   end
  25.   def command_117
  26.     if $data_common_events[@params[0]]
  27.       child = Game_Interpreter_Self.new(@params[0])
  28.       child.run
  29.     end
  30.   end
  31. end
  32. class Window_MenuCommand < Window_Command
  33.   def add_save_command
  34.     add_command("公共事件1", :save, true)
  35.     add_command("公共事件2", :save2, true)
  36.   end
  37.   def add_game_end_command
  38.     add_command("系统", :game_end)
  39.   end
  40. end
  41. class Scene_Menu < Scene_MenuBase
  42.   alias ccw_zabing create_command_window
  43.   def create_command_window
  44.     ccw_zabing
  45.     @command_window.set_handler(:save2,     method(:command_save2))
  46.   end
  47.   def command_save
  48.     fadeout_all
  49.     return_scene
  50.     GIS.new(1)
  51.   end
  52.   def command_save2
  53.     fadeout_all
  54.     return_scene
  55.     GIS.new(2)
  56.   end
  57. end
  58. class Scene_End < Scene_MenuBase
  59.   alias ccw_zabing create_command_window
  60.   def create_command_window
  61.     ccw_zabing
  62.     @command_window.set_handler(:to_load, method(:command_to_load))
  63.   end
  64.   def command_to_load
  65.     close_command_window
  66.     fadeout_all
  67.     SceneManager.call(Scene_Load)
  68.   end
  69. end
  70. class Window_GameEnd < Window_Command
  71.   alias mcl_zabing make_command_list
  72.   def make_command_list
  73.     mcl_zabing
  74.     add_command("读取档案",      :to_load)
  75.   end
  76. end

复制代码
好了,这是你要的完整脚本。
公共事件1和公共事件2分别对应1号与2号公共事件。
签名是什么?可以吃么?
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
20 小时
注册时间
2012-1-25
帖子
24
4
 楼主| 发表于 2012-2-29 22:09:30 | 只看该作者
李光兆 发表于 2012-2-28 19:16
可以参照VX的改菜单,打开Sence_Menu
找到以下(task是我自己弄的任务系统,你应该以自己的脚本为准)
然后 ...

这……貌似给我这个新手看,不靠谱……要是我能理解脚本,还用的着悬赏吗……


‘‘──追寻之人于2012-2-29 22:14补充以下内容

看不懂,插入后也没用!
’’


‘‘──追寻之人于2012-2-29 22:15补充以下内容

这个连我想要出现的变量窗口一个都没出现!
公共事件选项也没出现,什么都没变……
’’

点评

变量你自己不会做么? 伸手之祸远非一日矣!  发表于 2012-3-1 10:33
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
66
在线时间
140 小时
注册时间
2012-2-6
帖子
384
5
发表于 2012-3-1 10:47:23 | 只看该作者
  1. #==============================================================================
  2. # ■ Game_Interpreter_Self
  3. #------------------------------------------------------------------------------
  4. # 独立公共事件执行器
  5. #==============================================================================
  6. =begin

  7. 独立公共事件执行器用于随时执行公共事件,不受公共事件调用地方的限制。
  8. □使用方法:
  9. 1。将脚本插入main前。
  10. 2。在需要使用公共事件的地方
  11. 插入、
  12. GIS.new(公共事件ID)
  13. □可能的冲突:无
  14. 已经被改过兼容VA了。
  15. 原制作者为九夜神尊。
  16. =end

  17. class GIS < Game_Interpreter
  18.   def initialize(com_id)
  19.     @com_id = com_id
  20.     common_event = $data_common_events[@com_id]
  21.     setup(common_event.list)
  22.     update
  23.     clear
  24.   end
  25.   def command_117
  26.     if $data_common_events[@params[0]]
  27.       child = Game_Interpreter_Self.new(@params[0])
  28.       child.run
  29.     end
  30.   end
  31. end
  32. class Window_MenuCommand < Window_Command
  33.   def add_save_command
  34.     add_command("公共事件1", :save, true)
  35.     add_command("公共事件2", :save2, true)
  36.   end
  37.   def add_game_end_command
  38.     add_command("系统", :game_end)
  39.   end
  40. end
  41. class Scene_Menu < Scene_MenuBase
  42.   alias ccw_zabing create_command_window
  43.   def create_command_window
  44.     ccw_zabing
  45.     @command_window.set_handler(:save2,     method(:command_save2))
  46.   end
  47.   def command_save
  48.     fadeout_all
  49.     return_scene
  50.     GIS.new(1)
  51.   end
  52.   def command_save2
  53.     fadeout_all
  54.     return_scene
  55.     GIS.new(2)
  56.   end
  57.   alias cgw_zabing create_gold_window
  58.   def create_gold_window
  59.     cgw_zabing
  60.     @gold_window2 = Window_Gold2.new
  61.     @gold_window2.x = 0
  62.     @gold_window2.y = Graphics.height - 2 * @gold_window.height
  63.     @gold_window3 = Window_Gold3.new
  64.     @gold_window3.x = 0
  65.     @gold_window3.y = Graphics.height - 3 * @gold_window.height
  66.     @gold_window4 = Window_Gold4.new
  67.     @gold_window4.x = 0
  68.     @gold_window4.y = Graphics.height - 4 * @gold_window.height
  69.   end
  70. end
  71. class Scene_End < Scene_MenuBase
  72.   alias ccw_zabing create_command_window
  73.   def create_command_window
  74.     ccw_zabing
  75.     @command_window.set_handler(:to_load, method(:command_to_load))
  76.   end
  77.   def command_to_load
  78.     close_command_window
  79.     fadeout_all
  80.     SceneManager.call(Scene_Load)
  81.   end
  82. end
  83. class Window_GameEnd < Window_Command
  84.   def make_command_list
  85.     add_command(Vocab::to_title, :to_title)
  86.     add_command(Vocab::shutdown, :shutdown)
  87.     add_command("读取档案",      :to_load)
  88.   end
  89. end
  90. class Window_Gold2 < Window_Gold
  91.   def refresh
  92.     contents.clear
  93.     draw_currency_value($game_variables[1], "", 4, 0, contents.width - 8)
  94.   end
  95. end
  96. class Window_Gold3 < Window_Gold
  97.   def refresh
  98.     contents.clear
  99.     draw_currency_value($game_variables[2], "", 4, 0, contents.width - 8)
  100.   end
  101. end
  102. class Window_Gold4 < Window_Gold
  103.   def refresh
  104.     contents.clear
  105.     draw_currency_value($game_variables[3], "", 4, 0, contents.width - 8)
  106.   end
  107. end
复制代码
好吧,变量窗口也做出来了。
签名是什么?可以吃么?
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
20 小时
注册时间
2012-1-25
帖子
24
6
 楼主| 发表于 2012-3-1 14:53:38 | 只看该作者
杂兵天下 发表于 2012-3-1 10:47
好吧,变量窗口也做出来了。

什么呀!我的意思是说我插入了你的脚本,一点也没用,菜单还是完全原来的样子!没变化!


‘‘──追寻之人于2012-3-1 14:59补充以下内容

可以了,插入到最前面才可以使用,现在可以用了
但是下面显示变量的窗口怎么只有变量的数字,没有变量的名称,可以麻烦再给我说说不?
’’

点评

。。。如果要变量名称就麻烦一下,我改一下  发表于 2012-3-1 15:56
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
66
在线时间
140 小时
注册时间
2012-2-6
帖子
384
7
发表于 2012-3-1 16:06:19 | 只看该作者


  1. #==============================================================================
  2. # ■ Game_Interpreter_Self
  3. #------------------------------------------------------------------------------
  4. # 独立公共事件执行器
  5. #==============================================================================
  6. =begin

  7. 独立公共事件执行器用于随时执行公共事件,不受公共事件调用地方的限制。
  8. □使用方法:
  9. 1。将脚本插入main前。
  10. 2。在需要使用公共事件的地方
  11. 插入、
  12. GIS.new(公共事件ID)
  13. □可能的冲突:无
  14. 已经被改过兼容VA了。
  15. 原制作者为九夜神尊。
  16. =end

  17. class GIS < Game_Interpreter
  18.   def initialize(com_id)
  19.     @com_id = com_id
  20.     common_event = $data_common_events[@com_id]
  21.     setup(common_event.list)
  22.     update
  23.     clear
  24.   end
  25.   def command_117
  26.     if $data_common_events[@params[0]]
  27.       child = Game_Interpreter_Self.new(@params[0])
  28.       child.run
  29.     end
  30.   end
  31. end
  32. class Window_MenuCommand < Window_Command
  33.   def add_save_command
  34.     add_command("公共事件1", :save, true)
  35.     add_command("公共事件2", :save2, true)
  36.   end
  37.   def add_game_end_command
  38.     add_command("系统", :game_end)
  39.   end
  40. end
  41. class Scene_Menu < Scene_MenuBase
  42.   alias ccw_zabing create_command_window
  43.   def create_command_window
  44.     ccw_zabing
  45.     @command_window.set_handler(:save2,     method(:command_save2))
  46.   end
  47.   def command_save
  48.     fadeout_all
  49.     return_scene
  50.     GIS.new(1)
  51.   end
  52.   def command_save2
  53.     fadeout_all
  54.     return_scene
  55.     GIS.new(2)
  56.   end
  57.   alias cgw_zabing create_gold_window
  58.   def create_gold_window
  59.     cgw_zabing
  60.     @gold_window2 = Window_Gold2.new
  61.     @gold_window2.x = 0
  62.     @gold_window2.y = Graphics.height - 2 * @gold_window.height
  63.     @gold_window3 = Window_Gold3.new
  64.     @gold_window3.x = 0
  65.     @gold_window3.y = Graphics.height - 3 * @gold_window.height
  66.     @gold_window4 = Window_Gold4.new
  67.     @gold_window4.x = 0
  68.     @gold_window4.y = Graphics.height - 4 * @gold_window.height
  69.   end
  70. end
  71. class Scene_End < Scene_MenuBase
  72.   alias ccw_zabing create_command_window
  73.   def create_command_window
  74.     ccw_zabing
  75.     @command_window.set_handler(:to_load, method(:command_to_load))
  76.   end
  77.   def command_to_load
  78.     close_command_window
  79.     fadeout_all
  80.     SceneManager.call(Scene_Load)
  81.   end
  82. end
  83. class Window_GameEnd < Window_Command
  84.   def make_command_list
  85.     add_command(Vocab::to_title, :to_title)
  86.     add_command(Vocab::shutdown, :shutdown)
  87.     add_command("读取档案",      :to_load)
  88.   end
  89. end
  90. class Window_Gold2 < Window_Gold
  91.   def refresh
  92.     contents.clear
  93.     draw_currency_value($game_variables[1], $data_system.variables[1], 4, 0, contents.width - 8)
  94.   end
  95. end
  96. class Window_Gold3 < Window_Gold
  97.   def refresh
  98.     contents.clear
  99.     draw_currency_value($game_variables[2], $data_system.variables[2], 4, 0, contents.width - 8)
  100.   end
  101. end
  102. class Window_Gold4 < Window_Gold
  103.   def refresh
  104.     contents.clear
  105.     draw_currency_value($game_variables[3], $data_system.variables[3], 4, 0, contents.width - 8)
  106.   end
  107. end
复制代码
这样就可以了
签名是什么?可以吃么?
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
20 小时
注册时间
2012-1-25
帖子
24
8
 楼主| 发表于 2012-3-1 16:20:24 | 只看该作者
杂兵天下 发表于 2012-3-1 16:06
这样就可以了

3Q,以后脚本问题再找你



‘‘──追寻之人于2012-3-2 18:33补充以下内容

[@]杂兵天下[/@]兄弟,动态显示伤害能教下吗
’’
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-24 00:08

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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