How to make a storage system?

SnowyOxygen
01 Jun 2014, 19:23
Could someone help me with making a storage system? For example a chest that you can store your items in.

HegemonKhan
01 Jun 2014, 23:20
Sora's Stackable Library:

viewtopic.php?f=18&t=3515

-----

as for the actual physically storing~organizing of objects:

simply make a heirarchy~directory of 'immovable' (non-dropable, non-take'able, non-useable, non-give'able, etc etc etc) open'able~close'able container objects, either on your Player Object or use a global storage object:

Object: "player" Player Object // or "global_storage_object" Object Object // or a "chest" Object Object in some Room Object that can be gotten to during game play
-> storage_object
->-> equipment_storage_object
->->-> weapon_storage_object
->->->-> melee_weapon_storage_object
->->->->-> sword_storage_object
->->->->->-> claymore
->->->->->-> long sword
->->->->->-> etc etc etc
->->->->-> axe_storage_object
->->->->-> blunt_storage_object
->->->->-> dagger_storage_object
->->->->-> whip_storage_object
->->->->-> claws_and_or_fist_storage_object
->->->-> ranged_weapon_storage_object
->->->->-> bow_sotorage_object
->->->->-> crossbow_storage_object
->->->->-> gun_storage_object
->->->->-> throwing_storage_object
->->-> armor_storage_object
->->->-> headwear_storage_object
->->->-> etc etc etc
->->-> clothing_storage_object
->->->-> etc etc etc
->-> item_storage_object
->->-> consumable_item_storage_object
->->-> battle_item_storage_object
->->-> etc etc etc
->-> spell_storage_object
->->-> fire_spell_storage_object
->->-> etc etc etc
->-> etc etc etc

-----------

and for doing actions upon your stored Objects:

objectlist and~or objectdictionary

( see the quest wiki on 'using lists' and 'using dictionaries' )

------------

hope this helps! :D