查看: 4311|回复: 2

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

[复制链接]
梦石
0
星屑
1410
在线时间
148 小时
注册时间
2018-3-24
回帖
113
发表于 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
#------------------------------------------------------------------------------#

最佳答案

查看完整内容

[pre lang="ruby"] #------------------------------------------------------------------------------# # Galv's 分组管理器(Galv's Group Manager) #------------------------------------------------------------------------------# # For: RPGMAKER VX ACE # Version 1.3 #------------------------------------------------------------------------------# # 2012-11-20 - Version 1.3 - 增加了分组的最低人数选项 # ...
梦石
10
星屑
39550
在线时间
1919 小时
注册时间
2010-11-14
回帖
3214

R考场第七期纪念奖

发表于 2019-12-29 21:56:16 | 显示全部楼层


  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. #  groups(amount)       # 更改玩家可以使用的分组的数量
  23. #------------------------------------------------------------------------------#
  24. #  group_clear(id)      # 移除单个小组内的所有成员
  25. #------------------------------------------------------------------------------#
  26. #  group_clear_all      # 移除所有小组的所有成员
  27. #------------------------------------------------------------------------------#
  28. #  group_count(id)      # 获取单个小组的成员数量。可以在变量赋值时使用。
  29. #------------------------------------------------------------------------------#
  30. #  group_save(group_id,save_id)   # 将单个分组保存到 save_id 位置
  31. #                                 # 详细解释见下文:
  32. #  当你离开分组管理场景(scene)时,
  33. #  所有未被分组的成员将被自动保存到 save_id 0号位
  34. #  这些数据将一直被保留直到你下一次进入并离开分组管理场景(scene)。
  35. #  如果想把这些数据保存到其他位置,请用 0 作为 group_id
  36. #  例: group_save(0,save_id)
  37. #------------------------------------------------------------------------------#
  38. #  group_load(save_id,x)  # 读取 save_id 位置的分组, x 可以是 0 或 1,作用如下:
  39. #                         # 当 x 为 0 时, 先清空当前队伍的角色
  40. #                         # 当 x 为 1 时, 保留当前队伍的角色
  41. #------------------------------------------------------------------------------#
  42. #  group_info(id,"name",max,lock,min)  # 为单个分组设置独立的选项:
  43. #                                      # id = 分组编号
  44. #                                      # name = 为分组设置的名称
  45. #                                      # max = 此分组最多能容纳的角色数量
  46. #                                      # min = 此分组最少要拥有的角色数量
  47. #                                      # lock = 是否固定分组,填 true 或 false
  48. #                                      # 填 true 时分组将无法被改变
  49. #  # name, max, lock 和 min 可以简单设置为 nil, 此时将采取默认设置
  50. #
  51. #  使用例:
  52. #  group_info(1,"Into the Forest",4,false,2)
  53. #  group_info(2,"Remain at Base",2,false,0)
  54. #  group_info(2,nil,nil,true,nil)
  55. #------------------------------------------------------------------------------#
  56. #  group_info_reset(id)      # 将单个分组的所有选项重置为默认值
  57. #------------------------------------------------------------------------------#  
  58. #  group_info_reset_all      # 将所有分组的所有选项重置为默认值
  59. #------------------------------------------------------------------------------#

  60. #------------------------------------------------------------------------------#
  61. #  change_party(id)          # 以指定分组的成员替换当前队伍
  62. #------------------------------------------------------------------------------#
  63. #  collect_groups(x)         # 将所有分组的成员添加至当前队伍,x 可以是 0 或1,作用如下:
  64. #                            # 如果 x 为 0, 在添加完后移除所有分组的所有成员
  65. #                            # 如果 x 为 1, 保留其他分组的成员
  66. #------------------------------------------------------------------------------#
  67. #  collect_group(id,x)       # 将单个分组的成员添加至当前队伍,x 可以是 0 或 1,作用如下:
  68. #                            # 如果 x 为 0, 在添加完后移除该分组的所有成员
  69. #                            # 如果 x 为 1, 保留该分组的成员
  70. #------------------------------------------------------------------------------#



  71. #------------------------------------------------------------------------------#
  72. #  用于呼叫分组管理场景的事件脚本:
  73. #------------------------------------------------------------------------------#
  74. #
  75. #  group_manager       # 呼叫分组管理场景(group manager scene)
  76. #
  77. #  group_selector      # 呼叫分组选择场景(group select scene),可以改变当前队伍成员
  78. #
  79. #------------------------------------------------------------------------------#


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

  82. #------------------------------------------------------------------------------#
  83. #  SCRIPT SETUP OPTIONS
  84. #  自定义选项
  85. #------------------------------------------------------------------------------#
  86.    
  87.   ONLY_ONE_GROUP = true      # 不能重复加入分组
  88.                              # true = 每个角色只能加入一个分组
  89.                              # false = 允许角色同时加入多个分组

  90.   REQUIRE_GROUPED = false     # 强制分组
  91.                               # true = 必须保证每个角色都加入了分组
  92.                               # false = 允许不将角色加入分组
  93.                               
  94.   REQUIRE_UNASSIGNED = true   # 当前队伍不得留空
  95.                               # true = 当前队伍中至少要保留一位未分组的角色
  96.                               # 此选项仅在非强制分组(REQUIRE_GROUPED = false)时起效

  97.   EMPTY_TEXT = "Empty"         # 分组为空时用于替换显示的文本
  98.   LOCKED_TEXT = "Locked"       # 分组被固定时显示的提示文本
  99.   MIN_MEMBER_TEXT = "Required" # 分组最小人数的单位的提示文本
  100.    
  101.   ADD_SE = ["Equip1", 80, 100]   # 加入成员的音效(SE)
  102.   REM_SE = ["Wind7", 80, 100]    # 移除成员的音效(SE)
  103.                                  # 格式 ["SE 文件名", 音量, 节奏]

  104.   SELECTOR_SE = ["Barrier", 80, 100]  # 分组选择场景(group select scene)中,
  105.                                       # 分组被选择时的音效(SE)
  106.    
  107.   CHOSEN_GROUP_VAR = 1       # 用于存储分组选择场景(group select scene)中
  108.                              # 被选中的分组的变量编号(可用于事件判断)


  109.   # 默认设定 (可以在游戏中通过事件脚本改变这)

  110.   GROUP_NAME = "Group"       # 未命名的分组/队伍的名称
  111.   NO_GROUPS = 5              # 可以使用的分组数量
  112.   NO_MEMBERS = 8             # 每个分组可以容纳的角色数量(最多 8 人)

  113. #------------------------------------------------------------------------------#
  114. #  END SCRIPT SETUP OPTIONS
  115. #  自定义选项 结束
  116. #------------------------------------------------------------------------------#
复制代码


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

使用道具 举报

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

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部