Save-Point
Seperate Item Lists for Multiple Parties - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Seperate Item Lists for Multiple Parties (/thread-2732.html)



Seperate Item Lists for Multiple Parties - RPG Advocate - 03-03-2008

Seperate Item Lists for Multiple Parties
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script allows you to maintain up to ten seperate item lists. This is useful when your game has multiple parties and you want to maintain an item list for each. Each list is identified by an ID number you choose when creating it. The following commands are supported:

Create: Stores the party's current items in a new list with the ID number you choose, then deletes the party's items Use the Call Script command to call "$game_itembag.create(id)", where id is the number you want to reference the list.
Replace: Deletes the party's items and replaces them with the contents of a previously stored list. Use "game_itembag.replace(id)".
Merge: Merges two stored item lists, or one item list with the party's current items. Use "$game_itembag.merge(id1, id2). To merge with the party's current item list, use -1 for id2.
Merge All: Merges all the item lists and stores them in item list ID 1, or merges the contents of all stored lists with the party's current items. Use "$game_itembag.merge_all(mode)", where mode is 1 for merging with the party's current items, or 2 for merging the contents of all lists.
Copy: Copies the contents of one list to another. Use "$game_itembag.copy(id1, id2).
Delete: Deletes a stored list. Use "$game_itembag.delete(id)".


Demo
>Click<


Script
Seperate Item Lists


Notes
The script was revised for ease of use. Directly editing the Scene_Title, Scene_Save and Scene_Load classes are no longer necessary.

This can be used in conjunction with the 'Party Splitting' script. However, the item bag system will not change inventories between the parties automatically. Automating this system with Party Splitting will require editing on your part.