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

Project1

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

[已经解决] 麻烦大佬们 能译一下

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1410
在线时间
148 小时
注册时间
2018-3-24
帖子
145
跳转到指定楼层
1
发表于 2019-12-29 21:56:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
100星屑
#------------------------------------------------------------------------------#
#  Galv's Group Manager
#------------------------------------------------------------------------------#
#  For: RPGMAKER VX ACE
#  Version 1.3
#------------------------------------------------------------------------------#
#  2012-11-20 - Version 1.3 - added minimum member requirement option for groups
#                           - added option to require unassigned actor
#                           - added save/loading of groups and unassigned actors
#  2012-11-20 - Version 1.2 - changes to scene useability and options added
#  2012-11-20 - Version 1.1 - can now have more than 4 groups and 8 max in each
#  2012-11-20 - Version 1.0 - release
#------------------------------------------------------------------------------#
#  This script allows the player to distribute their party members into separate
#  teams.
#------------------------------------------------------------------------------#
#  INSTRUCTIONS:
#  Read the setup options below and set it up as desired.
#------------------------------------------------------------------------------#

#------------------------------------------------------------------------------##
#  SCRIPT CALLS:
#------------------------------------------------------------------------------#
#  groups(amount)       # change the number of groups the player can distrubute
#                       # members to.
#------------------------------------------------------------------------------#
#  group_clear(id)      # remove all members from one group
#------------------------------------------------------------------------------#
#  group_clear_all      # remove all members from all groups
#------------------------------------------------------------------------------#
#  group_count(id)      # use in variable script. Gets number of actors in group
#------------------------------------------------------------------------------#
#  group_save(group_id,save_id)   # save group to any save position (save_id)
#                                 # more description of this feature below:
#  # whenever you leave the group_manager scene, it automatically saves all
#  # unassigned members to save_id 0. This data will remain in save_id 0 until
#  # you enter and leave the group_manager scene again.
#  # To save 'save_id 0' elsewhere, use 0 for group_id. eg: group_save(0,save_id)
#------------------------------------------------------------------------------#
#  group_load(save_id,x)  # x can be 0 or 1. Adds the saved group to party and...
#                         # if x is 0, removes all other party members
#                         # if x is 1, keeps current party members
#------------------------------------------------------------------------------#
#  group_info(id,"name",max,lock,min)  # Set individual group options:
#                                      # id = group number   
#                                      # name = used instead of default name
#                                      # max = max members in the group
#                                      # min = must have at least this many
#                                      # lock = true or false
#                                      # true prevents changes to the group
#  # name, max, lock and min can be set to nil, which won't change that setting.
#
#  EXAMPLE OF USE:
#  group_info(1,"Into the Forest",4,false,2)
#  group_info(2,"Remain at Base",2,false,0)
#  group_info(2,nil,nil,true,nil)
#------------------------------------------------------------------------------#
#  group_info_reset(id)      # resets a group's info changes to default
#------------------------------------------------------------------------------#  
#  group_info_reset_all      # resets all groups info to default
#------------------------------------------------------------------------------#

#------------------------------------------------------------------------------#
#  change_party(id)          # replace current party with members in that group
#------------------------------------------------------------------------------#
#  collect_groups(x)         # x can be 0 or 1. Adds all groups to party and...
#                            # if x is 0, removes members from all groups
#                            # if x is 1, leaves members in the groups
#------------------------------------------------------------------------------#
#  collect_group(id,x)       # x can be 0 or 1. Adds only members from group with
#                            # that id to party and...
#                            # if x is 0, removes members from that group
#                            # if x is 1, leaves members in that group
#------------------------------------------------------------------------------#



#------------------------------------------------------------------------------#
#  SCRIPT CALLS TO CALL THE GROUP MANAGER SCENES:
#------------------------------------------------------------------------------#
#
#  group_manager       # Calls the group manager scene.
#
#  group_selector      # Calls the group select scene to change to a group.
#
#------------------------------------------------------------------------------#


($imported ||= {})["Galv_Party_Split"] = true
module Galv_Split

#------------------------------------------------------------------------------#
#  SCRIPT SETUP OPTIONS
#------------------------------------------------------------------------------#
   
  ONLY_ONE_GROUP = true      # true = restrict actors to only one group
                             # false = allow actors to be in multiple groups

  REQUIRE_GROUPED = false     # true = must add all party members into a group
                              # false = can leave scene without adding members
  REQUIRE_UNASSIGNED = true   # require at least 1 un-assigned actor in party
                              # this only works if above REQUIRE_GROUPED = false

  EMPTY_TEXT = "Empty"         # Text displayed when no actors in a group
  LOCKED_TEXT = "Locked"       # Displayed when you lock a group
  MIN_MEMBER_TEXT = "Required" # Displayed when group requires min no. members
   
  ADD_SE = ["Equip1", 80, 100]   # SE played when member is added
  REM_SE = ["Wind7", 80, 100]    # SEO played when member is removed
                                 # ["SE Name", volume, pitch]

  SELECTOR_SE = ["Barrier", 80, 100]  # SE played when a group is chosen in
                                      #  the group_selector scene
   
  CHOSEN_GROUP_VAR = 1       # Variable used to store the group chosen in the
                             # group selector scene (for eventing purposes).


  # DEFAULTS (These can be changed during game with script calls)

  GROUP_NAME = "Group"       # The name of each group/party
  NO_GROUPS = 5              # no. groups the player can add members to
  NO_MEMBERS = 8             # no. members each group can have. (max 8)

#------------------------------------------------------------------------------#
#  END SCRIPT SETUP OPTIONS
#------------------------------------------------------------------------------#

最佳答案

查看完整内容

#------------------------------------------------------------------------------# # Galv's 分组管理器(Galv's Group Manager) #------------------------------------------------------------------------------# # For: RPGMAKER VX ACE # Version 1.3 #------------------------------------------------------------------------------# # 2012-11-20 - Version 1.3 - 增加了分组的最低人数选项 # ...

Lv5.捕梦者

梦石
10
星屑
39440
在线时间
1914 小时
注册时间
2010-11-14
帖子
3315

R考场第七期纪念奖

2
发表于 2019-12-29 21:56:16 | 只看该作者

RUBY 代码复制
  1. #------------------------------------------------------------------------------#
  2. #  Galv's 分组管理器(Galv's Group Manager)
  3. #------------------------------------------------------------------------------#
  4. #  For: RPGMAKER VX ACE
  5. #  Version 1.3
  6. #------------------------------------------------------------------------------#
  7. #  2012-11-20 - Version 1.3 - 增加了分组的最低人数选项
  8. #                           - 增加了为当前队伍保留成员的选项
  9. #                           - 增加了未分组角色和分组的存取功能
  10. #  2012-11-20 - Version 1.2 - 改进了场景易用度并增加了自定义选项
  11. #  2012-11-20 - Version 1.1 - 现在可以拥有4个以上的分组且每个分组最多可以有8人
  12. #  2012-11-20 - Version 1.0 - 发布脚本
  13. #------------------------------------------------------------------------------#
  14. #  此脚本允许玩家将队伍成员分成若干小组。
  15. #------------------------------------------------------------------------------#
  16. #  提示:
  17. #  阅读下方的选项并根据个人需要调整。
  18. #------------------------------------------------------------------------------#
  19.  
  20. #------------------------------------------------------------------------------##
  21. #  事件脚本:
  22. #------------------------------------------------------------------------------#
  23. #  groups(amount)       # 更改玩家可以使用的分组的数量
  24. #------------------------------------------------------------------------------#
  25. #  group_clear(id)      # 移除单个小组内的所有成员
  26. #------------------------------------------------------------------------------#
  27. #  group_clear_all      # 移除所有小组的所有成员
  28. #------------------------------------------------------------------------------#
  29. #  group_count(id)      # 获取单个小组的成员数量。可以在变量赋值时使用。
  30. #------------------------------------------------------------------------------#
  31. #  group_save(group_id,save_id)   # 将单个分组保存到 save_id 位置
  32. #                                 # 详细解释见下文:
  33. #  当你离开分组管理场景(scene)时,
  34. #  所有未被分组的成员将被自动保存到 save_id 0号位
  35. #  这些数据将一直被保留直到你下一次进入并离开分组管理场景(scene)。
  36. #  如果想把这些数据保存到其他位置,请用 0 作为 group_id
  37. #  例: group_save(0,save_id)
  38. #------------------------------------------------------------------------------#
  39. #  group_load(save_id,x)  # 读取 save_id 位置的分组, x 可以是 0 或 1,作用如下:
  40. #                         # 当 x 为 0 时, 先清空当前队伍的角色
  41. #                         # 当 x 为 1 时, 保留当前队伍的角色
  42. #------------------------------------------------------------------------------#
  43. #  group_info(id,"name",max,lock,min)  # 为单个分组设置独立的选项:
  44. #                                      # id = 分组编号
  45. #                                      # name = 为分组设置的名称
  46. #                                      # max = 此分组最多能容纳的角色数量
  47. #                                      # min = 此分组最少要拥有的角色数量
  48. #                                      # lock = 是否固定分组,填 true 或 false
  49. #                                      # 填 true 时分组将无法被改变
  50. #  # name, max, lock 和 min 可以简单设置为 nil, 此时将采取默认设置
  51. #
  52. #  使用例:
  53. #  group_info(1,"Into the Forest",4,false,2)
  54. #  group_info(2,"Remain at Base",2,false,0)
  55. #  group_info(2,nil,nil,true,nil)
  56. #------------------------------------------------------------------------------#
  57. #  group_info_reset(id)      # 将单个分组的所有选项重置为默认值
  58. #------------------------------------------------------------------------------#  
  59. #  group_info_reset_all      # 将所有分组的所有选项重置为默认值
  60. #------------------------------------------------------------------------------#
  61.  
  62. #------------------------------------------------------------------------------#
  63. #  change_party(id)          # 以指定分组的成员替换当前队伍
  64. #------------------------------------------------------------------------------#
  65. #  collect_groups(x)         # 将所有分组的成员添加至当前队伍,x 可以是 0 或1,作用如下:
  66. #                            # 如果 x 为 0, 在添加完后移除所有分组的所有成员
  67. #                            # 如果 x 为 1, 保留其他分组的成员
  68. #------------------------------------------------------------------------------#
  69. #  collect_group(id,x)       # 将单个分组的成员添加至当前队伍,x 可以是 0 或 1,作用如下:
  70. #                            # 如果 x 为 0, 在添加完后移除该分组的所有成员
  71. #                            # 如果 x 为 1, 保留该分组的成员
  72. #------------------------------------------------------------------------------#
  73.  
  74.  
  75.  
  76. #------------------------------------------------------------------------------#
  77. #  用于呼叫分组管理场景的事件脚本:
  78. #------------------------------------------------------------------------------#
  79. #
  80. #  group_manager       # 呼叫分组管理场景(group manager scene)
  81. #
  82. #  group_selector      # 呼叫分组选择场景(group select scene),可以改变当前队伍成员
  83. #
  84. #------------------------------------------------------------------------------#
  85.  
  86.  
  87. ($imported ||= {})["Galv_Party_Split"] = true
  88. module Galv_Split
  89.  
  90. #------------------------------------------------------------------------------#
  91. #  SCRIPT SETUP OPTIONS
  92. #  自定义选项
  93. #------------------------------------------------------------------------------#
  94.  
  95.   ONLY_ONE_GROUP = true      # 不能重复加入分组
  96.                              # true = 每个角色只能加入一个分组
  97.                              # false = 允许角色同时加入多个分组
  98.  
  99.   REQUIRE_GROUPED = false     # 强制分组
  100.                               # true = 必须保证每个角色都加入了分组
  101.                               # false = 允许不将角色加入分组
  102.  
  103.   REQUIRE_UNASSIGNED = true   # 当前队伍不得留空
  104.                               # true = 当前队伍中至少要保留一位未分组的角色
  105.                               # 此选项仅在非强制分组(REQUIRE_GROUPED = false)时起效
  106.  
  107.   EMPTY_TEXT = "Empty"         # 分组为空时用于替换显示的文本
  108.   LOCKED_TEXT = "Locked"       # 分组被固定时显示的提示文本
  109.   MIN_MEMBER_TEXT = "Required" # 分组最小人数的单位的提示文本
  110.  
  111.   ADD_SE = ["Equip1", 80, 100]   # 加入成员的音效(SE)
  112.   REM_SE = ["Wind7", 80, 100]    # 移除成员的音效(SE)
  113.                                  # 格式 ["SE 文件名", 音量, 节奏]
  114.  
  115.   SELECTOR_SE = ["Barrier", 80, 100]  # 分组选择场景(group select scene)中,
  116.                                       # 分组被选择时的音效(SE)
  117.  
  118.   CHOSEN_GROUP_VAR = 1       # 用于存储分组选择场景(group select scene)中
  119.                              # 被选中的分组的变量编号(可用于事件判断)
  120.  
  121.  
  122.   # 默认设定 (可以在游戏中通过事件脚本改变这)
  123.  
  124.   GROUP_NAME = "Group"       # 未命名的分组/队伍的名称
  125.   NO_GROUPS = 5              # 可以使用的分组数量
  126.   NO_MEMBERS = 8             # 每个分组可以容纳的角色数量(最多 8 人)
  127.  
  128. #------------------------------------------------------------------------------#
  129. #  END SCRIPT SETUP OPTIONS
  130. #  自定义选项 结束
  131. #------------------------------------------------------------------------------#


没有完整脚本,根据上下文理解翻的,望采纳。
用头画头像,用脚写脚本
回复

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1410
在线时间
148 小时
注册时间
2018-3-24
帖子
145
3
 楼主| 发表于 2019-12-29 21:59:01 | 只看该作者
无意外网翻出来的一个队伍脚本       麻烦懂的大佬们能翻译一下
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-20 21:55

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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