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

Project1

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

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
1055
在线时间
11 小时
注册时间
2016-3-24
帖子
4
跳转到指定楼层
1
发表于 2016-3-24 18:34:38 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

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


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

Lv3.寻梦者

梦石
0
星屑
1293
在线时间
995 小时
注册时间
2014-12-14
帖子
3016

开拓者

2
发表于 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教程】
---------------------
欲买桂花同载酒,终不似,少年游.
回复 支持 反对

使用道具 举报

Lv1.梦旅人

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

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

使用道具 举报

Lv1.梦旅人

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


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

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1293
在线时间
995 小时
注册时间
2014-12-14
帖子
3016

开拓者

5
发表于 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教程】
---------------------
欲买桂花同载酒,终不似,少年游.
回复 支持 反对

使用道具 举报

Lv1.梦旅人

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

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1293
在线时间
995 小时
注册时间
2014-12-14
帖子
3016

开拓者

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


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

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

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


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

使用道具 举报

Lv4.逐梦者

「Pemercyia」


Urhurrenna

梦石
0
星屑
9397
在线时间
2748 小时
注册时间
2008-9-5
帖子
3543

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

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1696
在线时间
761 小时
注册时间
2013-9-23
帖子
211

开拓者

9
发表于 2016-3-29 01:29:23 | 只看该作者
http://www4.plala.or.jp/findias/ ... ce_rgss3/index.html
メニュー系→メニュー画面-改2
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

10
发表于 2016-3-30 00:25:51 | 只看该作者
本帖最后由 duzine 于 2016-3-30 00:33 编辑

來,少年,打開尼的雙手

收下這個腳本
RUBY 代码复制
  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.  
  26. #  Put these portraits in the Graphics/faces/ and name them the same as the
  27. #  face graphic the actor uses, plus the position of the face in it.
  28. #  For example
  29. #  If your actor uses "Actor1" face and uses the first face in that file then
  30. #  you will name the portrait image "Actor1-1.png"
  31. #
  32. #  Download the demo if you don't understand
  33. #------------------------------------------------------------------------------#
  34.  
  35.  
  36. #------------------------------------------------------------------------------#  
  37. #  SCREEN SIZE
  38. #------------------------------------------------------------------------------#
  39.   # This menu layout looks better on larger screen size. The below line
  40.   # increases your screen size to the max. Remove it if you don't want this.
  41.  
  42.     Graphics.resize_screen(640, 480)
  43.  
  44. #------------------------------------------------------------------------------#
  45. #------------------------------------------------------------------------------#
  46. module Galv_Menu  
  47. #------------------------------------------------------------------------------#  
  48. #  SETUP OPTIONS
  49. #------------------------------------------------------------------------------#
  50.  
  51.   CURRENCY_ICON = 361       # Icon to display instead of currency vocab.
  52.                             # Change this to 0 to use currency vocab instead.
  53.  
  54.   PORTRAIT_X_OFFSET = 0     # add a positive or negative number to offset
  55.   PORTRAIT_Y_OFFSET = 0     # each portrait's postion if the portraits you use
  56.                             # do not line up with your screen width/height.
  57.  
  58.   PORTRAIT_HEIGHT = 400     # So you can tweak the height of the portraits.
  59.  
  60.   NUMBER_OF_ACTORS = 4      # number of actors visible before scrolling
  61.  
  62. #------------------------------------------------------------------------------#  
  63. #  END SETUP OPTIONS
  64. #------------------------------------------------------------------------------#
  65. end
  66.  
  67. class Window_MenuCommand < Window_Command
  68.   def window_width
  69.     return 130
  70.   end
  71. end
  72.  
  73. class Window_Gold < Window_Base
  74.   def window_width
  75.     return 130
  76.   end
  77.   def refresh
  78.     contents.clear
  79.     if Galv_Menu::CURRENCY_ICON > 0
  80.       draw_currency_value(value, currency_icon, 4, 0, contents.width - 25)
  81.     else
  82.       draw_currency_value(value, currency_unit, 4, 0, contents.width - 8)
  83.     end
  84.   end
  85.   def currency_icon
  86.     draw_icon(Galv_Menu::CURRENCY_ICON, contents.width - 23, -1, true)
  87.   end
  88.  
  89. end
  90.  
  91.  
  92. class Window_MenuStatus < Window_Selectable
  93.   def window_width
  94.     Graphics.width - 130
  95.   end
  96.  
  97.   def item_height
  98.     (height - standard_padding * 2)
  99.   end
  100.  
  101.   def draw_portrait(face_name, face_index, x, y, enabled = true)
  102.     bitmap = Cache.picture(face_name + "-" + (face_index + 1).to_s)
  103.     portrait_width = bitmap.width / 3 + Galv_Menu::PORTRAIT_X_OFFSET
  104.     y_offset = Galv_Menu::PORTRAIT_Y_OFFSET
  105.     rect = Rect.new(portrait_width, -70 + y_offset, col_width + tweak, Galv_Menu::PORTRAIT_HEIGHT)
  106.     contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
  107.     bitmap.dispose
  108.   end
  109.  
  110.   def tweak
  111.     if Galv_Menu::NUMBER_OF_ACTORS <= 3
  112.       return -2
  113.     else
  114.       return 0
  115.     end
  116.   end
  117.  
  118.   def draw_actor_portrait(actor, x, y, enabled = true)
  119.     draw_portrait(actor.face_name, actor.face_index, x, y, enabled)
  120.   end
  121.  
  122.   def draw_item(index)
  123.     actor = $game_party.members[index]
  124.     enabled = $game_party.battle_members.include?(actor)
  125.     rect = item_rect(index)
  126.     draw_item_background(index)
  127.     draw_actor_portrait(actor, rect.x + 1, rect.y + 1, enabled)
  128.     draw_actor_simple_status(actor, rect.x, rect.y)
  129.   end
  130.  
  131.   def draw_actor_simple_status(actor, x, y)
  132.     draw_actor_name(actor, x, y)
  133.     draw_actor_level(actor, x, y + line_height * 2)
  134.     draw_actor_icons(actor, x, y + Graphics.height - line_height * 5)
  135.     draw_actor_class(actor, x, y + line_height * 1)
  136.     draw_actor_hp(actor, x, y + Graphics.height - line_height * 4)
  137.     draw_actor_mp(actor, x, y + Graphics.height - line_height * 3)
  138.     draw_actor_tp(actor, x, y + Graphics.height - line_height * 2)
  139.   end
  140.  
  141.   def col_width
  142.     window_width / Galv_Menu::NUMBER_OF_ACTORS - standard_padding - 2
  143.   end
  144.  
  145.   def draw_actor_hp(actor, x, y, width = col_width)
  146.     draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
  147.     change_color(system_color)
  148.     draw_text(x, y, 30, line_height, Vocab::hp_a)
  149.     draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
  150.     hp_color(actor), normal_color)
  151.   end
  152.  
  153.   def draw_actor_mp(actor, x, y, width = col_width)
  154.     draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
  155.     change_color(system_color)
  156.     draw_text(x, y, 30, line_height, Vocab::mp_a)
  157.     draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
  158.       mp_color(actor), normal_color)
  159.   end
  160.  
  161.   def draw_actor_tp(actor, x, y, width = col_width)
  162.     draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
  163.     change_color(system_color)
  164.     draw_text(x, y, 30, line_height, Vocab::tp_a)
  165.     change_color(tp_color(actor))
  166.     draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  167.   end
  168.  
  169.  
  170.   def draw_current_and_max_values(x, y, width, current, max, color1, color2)
  171.     change_color(color1)
  172.     xr = x + width
  173.     if width < 100
  174.       draw_text(xr - 40, y, 42, line_height, current, 2)
  175.     else
  176.       draw_text(xr - 92, y, 42, line_height, current, 2)
  177.       change_color(color2)
  178.       draw_text(xr - 52, y, 12, line_height, "/", 2)
  179.       draw_text(xr - 42, y, 42, line_height, max, 2)
  180.     end
  181.   end
  182.   def draw_actor_name(actor, x, y, width = col_width)
  183.     change_color(hp_color(actor))
  184.     draw_text(x, y, width, line_height, actor.name)
  185.   end
  186.   def draw_actor_class(actor, x, y, width = col_width)
  187.     change_color(normal_color)
  188.     draw_text(x, y, width, line_height, actor.class.name)
  189.   end
  190.   def visible_line_number
  191.     return 1
  192.   end
  193.   def col_max
  194.     return Galv_Menu::NUMBER_OF_ACTORS
  195.   end
  196.   def spacing
  197.     return 8
  198.   end
  199.   def contents_width
  200.     (item_width + spacing) * item_max - spacing
  201.   end
  202.   def contents_height
  203.     item_height
  204.   end
  205.   def top_col
  206.     ox / (item_width + spacing)
  207.   end
  208.   def top_col=(col)
  209.     col = 0 if col < 0
  210.     @member_count = $game_party.members.count
  211.     col = col_max + @member_count if col > col_max + @member_count
  212.     self.ox = col * (item_width + spacing)
  213.   end
  214.   def bottom_col
  215.     top_col + col_max - 1
  216.   end
  217.   def bottom_col=(col)
  218.     self.top_col = col - (col_max - 1)
  219.   end
  220.   def ensure_cursor_visible
  221.     self.top_col = index if index < top_col
  222.     self.bottom_col = index if index > bottom_col
  223.   end
  224.   def item_rect(index)
  225.     rect = super
  226.     rect.x = index * (item_width + spacing)
  227.     rect.y = 0
  228.     rect
  229.   end
  230.   def alignment
  231.     return 1
  232.   end
  233.   def cursor_down(wrap = false)
  234.   end
  235.   def cursor_up(wrap = false)
  236.   end
  237.   def cursor_pagedown
  238.   end
  239.   def cursor_pageup
  240.   end
  241. end


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




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

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

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-28 05:27

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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