03-12-2006, 01:00 PM
Individuality
DrakoShade
Version: 1.0
Mar 12 2006
Introduction
I got sick of RMXP treating the party as more important than the individual. That's what I set out to fix. This script makes the individual a bit more important by seperating the item bags and gold.
Features
Script
Script located here:
Individuality.txt (Size: 62.66 KB / Downloads: 2)
(Edit as of 16 April, 2008) PK use no longer supported. If you can't figure it out, I will not help. (/edit)
Instructions
To add an item to a person in the party, with 0 being the leader and 1, 2, or 3 being the second, third, or fourth person in the party list:
In order to add stuff to a specific actor in the database, rather than a person in the party, do it this way instead:
You can remove anything by either replacing "gain" with "lose" or just using a negative number.
You don't have to recursively fix all your events to give stuff to specific people. Any event command that gives to the party will go actor-by-actor in the party, adding the items one at a time until the full number have been given out. If it's only one item to begin with, the first character in the party gets it.
It also intelligently removes items one at a time from the party. It'll take items one at a time only from people who have them, until either the number in the event has been reached or the party is completely out of said item.
Gold is added by event commands by dividing evenly among the party. It's removed in a more complex way. It will make sure that everybody has their share to be removed. If somebody doesn't, then their gold will be set to zero, the amount they lost subtracted from the total, and everybody else will then lose 1/x of the total remaining to lose, where x is the size of the party minus the people who didn't have enough gold.
FAQ
No faq as of yet.
Compatibility
Issues with Postality Knights solved by Jimme. I modified the script slightly since he did it, but I opened his and made the same minor mods (cutting out the unused methods.) I'll upload that, too. Jimme, you're free to clear your attachment, now. I'll maintain both versions.
Credits and Thanks
Thanks primarily go to SephirothSpawn and Khatharr.
Author's Notes
What I consider the "core" of this script are the modifications to Game_Actor and Game_Party. The rest was fluff designed to make it work with the default scripts so that you could just install it in a virgin project and go.
If you want to edit it to work with a different menu or battle system, feel free. Just make sure that you credit me if you use the core of the script.
DrakoShade
Version: 1.0
Mar 12 2006
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
Introduction
I got sick of RMXP treating the party as more important than the individual. That's what I set out to fix. This script makes the individual a bit more important by seperating the item bags and gold.
Features
- Seperate bags for each actor.
- Seperate cash for each actor.
- Event commands still work.
- Default menu altered to show total party gold.
- Default menu altered to select actor when choosing items.
- Item scene re-worked to show actor items & allow trading.
Script
Script located here:
Individuality.txt (Size: 62.66 KB / Downloads: 2)
(Edit as of 16 April, 2008) PK use no longer supported. If you can't figure it out, I will not help. (/edit)
Instructions
To add an item to a person in the party, with 0 being the leader and 1, 2, or 3 being the second, third, or fourth person in the party list:
Code:
$game_party.actors[actor_position].gain_item(item_id, number)
$game_party.actors[actor_position].gain_weapon(weapon_id, number)
$game_party.actors[actor_position].gain_armor(armor_id, number)
$game_party.actors[actor_position].gain_gold(amount)
In order to add stuff to a specific actor in the database, rather than a person in the party, do it this way instead:
Code:
$game_actors[actor_id].gain_item(item_id, number)
$game_actors[actor_id].gain_weapon(weapon_id, number)
$game_actors[actor_id].gain_armor(armor_id, number)
$game_actors[actor_id].gain_gold(amount)
You can remove anything by either replacing "gain" with "lose" or just using a negative number.
You don't have to recursively fix all your events to give stuff to specific people. Any event command that gives to the party will go actor-by-actor in the party, adding the items one at a time until the full number have been given out. If it's only one item to begin with, the first character in the party gets it.
It also intelligently removes items one at a time from the party. It'll take items one at a time only from people who have them, until either the number in the event has been reached or the party is completely out of said item.
Gold is added by event commands by dividing evenly among the party. It's removed in a more complex way. It will make sure that everybody has their share to be removed. If somebody doesn't, then their gold will be set to zero, the amount they lost subtracted from the total, and everybody else will then lose 1/x of the total remaining to lose, where x is the size of the party minus the people who didn't have enough gold.
FAQ
No faq as of yet.
Compatibility
Issues with Postality Knights solved by Jimme. I modified the script slightly since he did it, but I opened his and made the same minor mods (cutting out the unused methods.) I'll upload that, too. Jimme, you're free to clear your attachment, now. I'll maintain both versions.
Credits and Thanks
Thanks primarily go to SephirothSpawn and Khatharr.
Author's Notes
What I consider the "core" of this script are the modifications to Game_Actor and Game_Party. The rest was fluff designed to make it work with the default scripts so that you could just install it in a virgin project and go.
If you want to edit it to work with a different menu or battle system, feel free. Just make sure that you credit me if you use the core of the script.