じ☆ve冰风 发表于 2026-8-1 19:34:09

Party Manager

This script allows you to create multiple, separate parties and manage each party easily using a user-friendly script call interface.

By default, you start with one party. You can create additional parties throughout the game and allow the player to switch between parties.

Parties come with several features, such as


[*]Each party has their own location. When you switch between parties, the game will automatically change to that party's location. Parties may also travel together so that switching parties does not change the location.
[*]Parties also have their own inventories, so if two parties are in separate locations, you can realistically make it so that each party may only use what they have collected during their journeys.
By managing multiple parties, you can create a unique gaming experience for your players.
Download

Get it at Hime Works!

Installation

Install this script below Materisls and above Main

Usage

Creating Parties

There are three steps to creating a party

1. Pick a unique ID

2. Choose the actors that will be in the party

3. Create a location, with the following script call

location = create_location(map_id, x, y)For example, suppose you want to create a new party with ID 2, with actors 1, 3, and 5, and located at map 2, position (3, 4). You would something like
                Code:       
id = 2members = location = create_location(2, 3, 4)create_party(id, members, location)

Optionally, you can choose to omit the location. In this case, the new party's location will be the synchronized with the current party's location
                Code:       
id = 2members = create_party(id, members)

Managing Parties
There are several functions available for managing your parties.


[*]Party Switch
Switching parties allows you to change control from one party to another. If the location of the other party is different from the current party, then the screen will change to the location of the other party.You can switch parties by using the script call

switch_party(party_id)

[*]Move Party
You can move a party from one location to another using the script call
                Code:       
move_party(party_id, location)

Where `location` is created using the `create_location` script call.

[*]Synchronize Party Locations
To have parties travel together, you can synchronize their locations so that when you switch between parties, you do not change locations because they are traveling together.To synchronize party locations, use the script call

                Code:       
sync_party_location(party_id)sync_party_location(party_id, party_id2)

If you omit the second party ID, then it synchronizes the selected party with the currently active party.


本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/party-manager.17270/
页: [1]
查看完整版本: Party Manager