查看: 3081|回复: 9

[已经过期] 求教界面变更并增加一个自定义选项,还有换装备立绘变...

[复制链接]
梦石
0
星屑
1055
在线时间
11 小时
注册时间
2016-3-24
回帖
3
发表于 2016-3-24 18:34:38 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 月下の天使 于 2016-3-24 18:37 编辑

QQ图片20160324181917.png
萌新,看到脚本一脸懵逼……
我想把菜单弄成上面这样,另外新增一个选项【详细信息】 (背景我准备画一张图  几个变量 例如胜利次数 败北次数等  背景也会因为胜利次数增加而变动
还有换了装备以后会切换立绘和小人身上的衣服(好吧,立绘好像也要一个脚本)……   
对了 状态选项里的格式我也想改一下,另外把状态设置成两页  第一页是正常是数值 第二页是称谓、职业与全身立绘
{:2_264:} 就这些了…… 菜单界面边框背景啥的能套用我画的边框更好……
梦石
0
星屑
1297
在线时间
995 小时
注册时间
2014-12-14
回帖
2939

开拓者

发表于 2016-3-25 00:51:13 | 显示全部楼层
本帖最后由 Vortur 于 2016-3-25 00:53 编辑

这工程量足够有偿订制了吧?!不过找找应该还是有脚本符合条件的。现成完全符合条件的没有,但至少还有点思路:

1.喵神有个简易脚本可以实现菜单横向。就在这里↓,找找看吧PS:如果刚入6r的话,建议从管理层、到管理层的好友挨个访问下空间,好早些知道活跃的大神都有哪些。
http://miaowm5.coding.me/script-blog/list.html
2.立绘这个就用搜索吧,应该大把有吧?!搜索“菜单 立绘”↓:
https://rpg.blue/forum.php?mod=viewthread&tid=376814
3.至于两者结合...楼主何不花个1天边改边学?

头像感觉不错啊,专业画师吗?有个叫omg的人很好,健谈/热情且仗义疏财,且还会影分身。一起玩吧~~
@欧买歌
  
【RMVA教程】
---------------------
欲买桂花同载酒,终不似,少年游.
回复

使用道具 举报

梦石
0
星屑
1055
在线时间
11 小时
注册时间
2016-3-24
回帖
3
 楼主| 发表于 2016-3-25 10:26:05 | 显示全部楼层
Vortur 发表于 2016-3-25 00:51
这工程量足够有偿订制了吧?!不过找找应该还是有脚本符合条件的。现成完全符合条件的没有,但至少还有点思 ...

渣画师   
艺术专业的 看到脚本就懵逼了,拆了别人好几个工程研究了一周就是没看懂……
立绘变更我准备用公共事件做
回复

使用道具 举报

梦石
0
星屑
1055
在线时间
11 小时
注册时间
2016-3-24
回帖
3
 楼主| 发表于 2016-3-25 13:28:31 | 显示全部楼层
本帖最后由 月下の天使 于 2016-3-25 13:31 编辑
Vortur 发表于 2016-3-25 00:51
这工程量足够有偿订制了吧?!不过找找应该还是有脚本符合条件的。现成完全符合条件的没有,但至少还有点思 ...


请教一下    如何可以建立一个【当武器没有穿戴】触发的公共事件
例如:武器栏 为 空     触发事件  注意!没有带武器   
能这样弄吗?  如果  角色穿戴武器 刺剑
                    否则
                      如果  角色穿戴武器 匕首
                      否则
                       如果  把所有武器列出来
                       否则  对话 注意!没有带武器
                         选项 带好武器  大丈夫
                          带好武器   
                            返回菜单
                          大丈夫
                            结束

不满足所有列出的武器就判定为 未装备武器     应该是这个原理吧?            
回复

使用道具 举报

梦石
0
星屑
1297
在线时间
995 小时
注册时间
2014-12-14
回帖
2939

开拓者

发表于 2016-3-25 13:45:17 | 显示全部楼层
本帖最后由 Vortur 于 2016-3-25 14:03 编辑
月下の天使 发表于 2016-3-25 13:28
请教一下    如何可以建立一个【当武器没有穿戴】触发的公共事件
例如:武器栏 为 空     触发事件  注意 ...


“事件 装备”可以用这个关键词来查查看
大思路:
1.使用并行事件,记得事件判定里有“装备是否装备”
2.https://rpg.blue/forum.php?mod=viewthread&tid=389645
使用简单脚本,每次呼出装备界面都执行一遍判定即可。
具体细节:
这个看着弄就行了,没觉着有什么难度。坏处就是装备多了判定写得太多。
还是说说吧...不大想写作业...
1.可以使用判定“当装备已经穿戴”(应该有这么一个判定的),
2.将数据库中的装备都判定一遍,最后一个“否则”表示裸奔。


话外:
如果想要实现“变装”纸娃娃什么的可以用图书馆的那个纸娃娃系统,va可用,每换装都会变化角色形象。坏处是要自己准备很多装备的图片素材。想必难不倒画师...
(。◕∀◕。)
【RMVA教程】
---------------------
欲买桂花同载酒,终不似,少年游.
回复

使用道具 举报

梦石
0
星屑
1055
在线时间
11 小时
注册时间
2016-3-24
回帖
3
 楼主| 发表于 2016-3-25 14:55:31 | 显示全部楼层
Vortur 发表于 2016-3-25 13:45
“事件 装备”可以用这个关键词来查查看
大思路:
1.使用并行事件,记得事件判定里有“装备是否装备”

谢谢解答,不过脚本还是不会用{:2_248:}
我觉得可以设置一个并行处理事件
当按下X键时开启 公共事件 装备判断
优点是不用脚本,缺点是每个地图都要弄……
回复

使用道具 举报

梦石
0
星屑
1297
在线时间
995 小时
注册时间
2014-12-14
回帖
2939

开拓者

发表于 2016-3-25 17:10:10 | 显示全部楼层
本帖最后由 Vortur 于 2016-3-25 17:14 编辑
月下の天使 发表于 2016-3-25 14:55
谢谢解答,不过脚本还是不会用
我觉得可以设置一个并行处理事件
当按下X键时开启 公共事件 装备 ...


呃,在下还没有理解“并行”的具体含义,但是,在下认为,一旦设置了“并行事件”,那么除非触发它的开关被关闭,否则他将一直运行下去,所以,并行事件用一个就足够了。{:2_275:} 在“数据库”的“公共事件”中设置即可。以后重复率较高的事件行为,都编辑到这里就行了。此处支持“打开本事件独立开关”等功能,前提是在地图事件中调用相应公共事件。

另外说下并行事件的相关事宜:
并行事件、地图事件数量、图片数量、暂时消除事件等都与游戏运行速度有关,与画面卡顿有关。因此最好能省则省。
关于其详细的信息,请参见图书馆的新手教程和RM的F1吧。

现在在苦逼的写作业,先这么说吧...如果闲暇的话,是可能用图来说明的...时间啊...


【RMVA教程】
---------------------
欲买桂花同载酒,终不似,少年游.
回复

使用道具 举报

梦石
0
星屑
9726
在线时间
2775 小时
注册时间
2008-9-5
回帖
3458

开拓者短篇八RM组冠军短篇九导演组亚军白银编剧

发表于 2016-3-26 16:44:25 | 显示全部楼层
如果提供设计草图和操作细节说明(还能有偿)的话……
倒是可以接受定制委托……
(雾……在提问区打广告会不会被打死?(゚Д゚≡゚д゚)!?)
回复

使用道具 举报

梦石
0
星屑
1736
在线时间
761 小时
注册时间
2013-9-23
回帖
180

开拓者

发表于 2016-3-29 01:29:23 | 显示全部楼层
http://www4.plala.or.jp/findias/ ... ce_rgss3/index.html
メニュー系→メニュー画面-改2
回复

使用道具 举报

梦石
0
星屑
2116
在线时间
950 小时
注册时间
2015-7-16
回帖
692

开拓者

发表于 2016-3-30 00:25:51 | 显示全部楼层
本帖最后由 duzine 于 2016-3-30 00:33 编辑

來,少年,打開尼的雙手

收下這個腳本
  1. #------------------------------------------------------------------------------#
  2. #  Galv's Menu Layout
  3. #------------------------------------------------------------------------------#
  4. #  For: RPGMAKER VX ACE
  5. #  Version 1.4
  6. #------------------------------------------------------------------------------#
  7. #  2012-11-10 - Version 1.4 - Added option to set how many actors visible
  8. #  2012-10-19 - Version 1.3 - Fixed a bug that happened with lots of members
  9. #  2012-10-13 - Version 1.2 - Fixed to work in all screen resolutions with some
  10. #                             options to tweak position.
  11. #  2012-10-13 - Version 1.1 - Changed to use /Pictures/ instead of /Faces/
  12. #                             Seemed more appropriate as this would be used to
  13. #                             draw the image as a picture in game.
  14. #  2012-10-13 - Version 1.0 - release
  15. #------------------------------------------------------------------------------#
  16. #  This script overwrites the default menu so the actors on the main menu screen
  17. #  are lined up horizontally and display a portrait image instead of the face.
  18. #
  19. #  INSTRUCTIONS:
  20. #  Copy this script below materials and above main
  21. #
  22. #  You MUST have a portrait for each actor. This was designed to work with
  23. #  the RTP potraits that you must have purchased the right stuff to use.
  24. #  These portrat images are around 270px x 290px.

  25. #  Put these portraits in the Graphics/faces/ and name them the same as the
  26. #  face graphic the actor uses, plus the position of the face in it.
  27. #  For example
  28. #  If your actor uses "Actor1" face and uses the first face in that file then
  29. #  you will name the portrait image "Actor1-1.png"
  30. #
  31. #  Download the demo if you don't understand
  32. #------------------------------------------------------------------------------#


  33. #------------------------------------------------------------------------------#  
  34. #  SCREEN SIZE
  35. #------------------------------------------------------------------------------#
  36.   # This menu layout looks better on larger screen size. The below line
  37.   # increases your screen size to the max. Remove it if you don't want this.
  38.   
  39.     Graphics.resize_screen(640, 480)
  40.   
  41. #------------------------------------------------------------------------------#
  42. #------------------------------------------------------------------------------#
  43. module Galv_Menu  
  44. #------------------------------------------------------------------------------#  
  45. #  SETUP OPTIONS
  46. #------------------------------------------------------------------------------#
  47.   
  48.   CURRENCY_ICON = 361       # Icon to display instead of currency vocab.
  49.                             # Change this to 0 to use currency vocab instead.

  50.   PORTRAIT_X_OFFSET = 0     # add a positive or negative number to offset
  51.   PORTRAIT_Y_OFFSET = 0     # each portrait's postion if the portraits you use
  52.                             # do not line up with your screen width/height.
  53.                            
  54.   PORTRAIT_HEIGHT = 400     # So you can tweak the height of the portraits.
  55.   
  56.   NUMBER_OF_ACTORS = 4      # number of actors visible before scrolling

  57. #------------------------------------------------------------------------------#  
  58. #  END SETUP OPTIONS
  59. #------------------------------------------------------------------------------#
  60. end

  61. class Window_MenuCommand < Window_Command
  62.   def window_width
  63.     return 130
  64.   end
  65. end

  66. class Window_Gold < Window_Base
  67.   def window_width
  68.     return 130
  69.   end
  70.   def refresh
  71.     contents.clear
  72.     if Galv_Menu::CURRENCY_ICON > 0
  73.       draw_currency_value(value, currency_icon, 4, 0, contents.width - 25)
  74.     else
  75.       draw_currency_value(value, currency_unit, 4, 0, contents.width - 8)
  76.     end
  77.   end
  78.   def currency_icon
  79.     draw_icon(Galv_Menu::CURRENCY_ICON, contents.width - 23, -1, true)
  80.   end

  81. end


  82. class Window_MenuStatus < Window_Selectable
  83.   def window_width
  84.     Graphics.width - 130
  85.   end

  86.   def item_height
  87.     (height - standard_padding * 2)
  88.   end

  89.   def draw_portrait(face_name, face_index, x, y, enabled = true)
  90.     bitmap = Cache.picture(face_name + "-" + (face_index + 1).to_s)
  91.     portrait_width = bitmap.width / 3 + Galv_Menu::PORTRAIT_X_OFFSET
  92.     y_offset = Galv_Menu::PORTRAIT_Y_OFFSET
  93.     rect = Rect.new(portrait_width, -70 + y_offset, col_width + tweak, Galv_Menu::PORTRAIT_HEIGHT)
  94.     contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
  95.     bitmap.dispose
  96.   end
  97.   
  98.   def tweak
  99.     if Galv_Menu::NUMBER_OF_ACTORS <= 3
  100.       return -2
  101.     else
  102.       return 0
  103.     end
  104.   end
  105.   
  106.   def draw_actor_portrait(actor, x, y, enabled = true)
  107.     draw_portrait(actor.face_name, actor.face_index, x, y, enabled)
  108.   end
  109.   
  110.   def draw_item(index)
  111.     actor = $game_party.members[index]
  112.     enabled = $game_party.battle_members.include?(actor)
  113.     rect = item_rect(index)
  114.     draw_item_background(index)
  115.     draw_actor_portrait(actor, rect.x + 1, rect.y + 1, enabled)
  116.     draw_actor_simple_status(actor, rect.x, rect.y)
  117.   end
  118.   
  119.   def draw_actor_simple_status(actor, x, y)
  120.     draw_actor_name(actor, x, y)
  121.     draw_actor_level(actor, x, y + line_height * 2)
  122.     draw_actor_icons(actor, x, y + Graphics.height - line_height * 5)
  123.     draw_actor_class(actor, x, y + line_height * 1)
  124.     draw_actor_hp(actor, x, y + Graphics.height - line_height * 4)
  125.     draw_actor_mp(actor, x, y + Graphics.height - line_height * 3)
  126.     draw_actor_tp(actor, x, y + Graphics.height - line_height * 2)
  127.   end
  128.   
  129.   def col_width
  130.     window_width / Galv_Menu::NUMBER_OF_ACTORS - standard_padding - 2
  131.   end
  132.   
  133.   def draw_actor_hp(actor, x, y, width = col_width)
  134.     draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
  135.     change_color(system_color)
  136.     draw_text(x, y, 30, line_height, Vocab::hp_a)
  137.     draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
  138.     hp_color(actor), normal_color)
  139.   end

  140.   def draw_actor_mp(actor, x, y, width = col_width)
  141.     draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
  142.     change_color(system_color)
  143.     draw_text(x, y, 30, line_height, Vocab::mp_a)
  144.     draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
  145.       mp_color(actor), normal_color)
  146.   end

  147.   def draw_actor_tp(actor, x, y, width = col_width)
  148.     draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
  149.     change_color(system_color)
  150.     draw_text(x, y, 30, line_height, Vocab::tp_a)
  151.     change_color(tp_color(actor))
  152.     draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  153.   end
  154.   
  155.   
  156.   def draw_current_and_max_values(x, y, width, current, max, color1, color2)
  157.     change_color(color1)
  158.     xr = x + width
  159.     if width < 100
  160.       draw_text(xr - 40, y, 42, line_height, current, 2)
  161.     else
  162.       draw_text(xr - 92, y, 42, line_height, current, 2)
  163.       change_color(color2)
  164.       draw_text(xr - 52, y, 12, line_height, "/", 2)
  165.       draw_text(xr - 42, y, 42, line_height, max, 2)
  166.     end
  167.   end
  168.   def draw_actor_name(actor, x, y, width = col_width)
  169.     change_color(hp_color(actor))
  170.     draw_text(x, y, width, line_height, actor.name)
  171.   end
  172.   def draw_actor_class(actor, x, y, width = col_width)
  173.     change_color(normal_color)
  174.     draw_text(x, y, width, line_height, actor.class.name)
  175.   end
  176.   def visible_line_number
  177.     return 1
  178.   end
  179.   def col_max
  180.     return Galv_Menu::NUMBER_OF_ACTORS
  181.   end
  182.   def spacing
  183.     return 8
  184.   end
  185.   def contents_width
  186.     (item_width + spacing) * item_max - spacing
  187.   end
  188.   def contents_height
  189.     item_height
  190.   end
  191.   def top_col
  192.     ox / (item_width + spacing)
  193.   end
  194.   def top_col=(col)
  195.     col = 0 if col < 0
  196.     @member_count = $game_party.members.count
  197.     col = col_max + @member_count if col > col_max + @member_count
  198.     self.ox = col * (item_width + spacing)
  199.   end
  200.   def bottom_col
  201.     top_col + col_max - 1
  202.   end
  203.   def bottom_col=(col)
  204.     self.top_col = col - (col_max - 1)
  205.   end
  206.   def ensure_cursor_visible
  207.     self.top_col = index if index < top_col
  208.     self.bottom_col = index if index > bottom_col
  209.   end
  210.   def item_rect(index)
  211.     rect = super
  212.     rect.x = index * (item_width + spacing)
  213.     rect.y = 0
  214.     rect
  215.   end
  216.   def alignment
  217.     return 1
  218.   end
  219.   def cursor_down(wrap = false)
  220.   end
  221.   def cursor_up(wrap = false)
  222.   end
  223.   def cursor_pagedown
  224.   end
  225.   def cursor_pageup
  226.   end
  227. end
复制代码


Graphics.rar (589.42 KB, 下载次数: 62)
下載後放在工程裡,就能看到效果了


未命名.png

補一發圖片,應該是你要的

[神性领域扩张:扩张神性领域]
说了等于没说.
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部