[XP] Actor's Inventory System

Started by finalholylight, August 07, 2012, 03:29:15 am

Previous topic - Next topic

finalholylight

August 07, 2012, 03:29:15 am Last Edit: November 30, 2014, 08:20:46 am by finalholylight
Actor's Inventory System
Authors: Death999
Version: 1.7.2
Type: Custom Item System
Key Term: Custom Item System



Introduction

This system will make each actor have a separate inventory.


Features


  • The inventory's limit of each actor is 10 by default, and each 10 basic str of actor (not dependent on str of equipment), the limit will plus 1.
  • Only actor own an item in his inventory can use that item, other actor can not use.
  • Remove party's member will not remove the items that he owned, when that actor are added again, items will be there in his inventory.
  • Shopping now will choose an actor before you choose buy/sell.
  • Small window on right-top in window item shows current kind of items and limit of inventory of actor.



Screenshots

Spoiler: ShowHide





Script

Check in demo


Demo

http://www.mediafire.com/?rfhk3u3bdtrm8ia


Instructions

Put all script above main.


Compatibility

May not compatible with other scripts that write for item system.


Credits and Thanks


  • Death999
  • Yami (for the array things)
  • me for ideas and testing



Author's Notes

In script Game_Actor, find line
def equip(equip_type, id)

and change to
def equip(equip_type, id, actor=$actor_inventory)


some codes use for event in game.

Check an actor has a full inventory:
if $game_party.type_number(ACTOR_ID) == $game_party.type_max(ACTOR_ID)


Plus limit of inventory for an actor:
$inven_type_plus[ACTOR_ID] += ???

ForeverZer0

I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

finalholylight


edmondedi

Is this compatible with Blizz-ABS? I mean if I pick up a drop and my inventory is full it crashes or not?

finalholylight

I already tested with Blizz-ABS, everything seem ok, when you loot item with a full-inventory, item still disappear but you will not have that item in your inventory.