| 赞 | 3 |
| VIP | |
| 好人卡 | |
| 积分 | 14 |
| 经验 | |
| 最后登录 | 2023-1-26 |
| 在线时间 | 148 小时 |
- 梦石
- 0
- 星屑
- 1410
- 在线时间
- 148 小时
- 注册时间
- 2018-3-24
- 回帖
- 113
|
悬赏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 - 增加了分组的最低人数选项
# ...
|