Author: Wolfrug
Author Website: http://www.ofpec.com/

Requirements: No addons required

Version: 0.6

Short description: This script-suite allows you to add a vehicle-variable driven and very customizable RPG-like inventory system to your missions.

Date: 2009-02-18 21:42


Comments: (0)
Rating:



 

5018-rug_inventory_promo.jpg

RUG Inventory
by
Wolfrug


Description:
This script-suite allows you to add a vehicle-variable driven and very customizable RPG-like inventory system to your missions. Create your own items and inventories, and then freely move items from one inventory to the other - even allowing dropping it on the ground! Currently in BETA for testing. Not tested in MP, no support as of now.


Installation:
Just copy the contents of the RUG_Inventroy_Core folder into your MyDocuments/ArmA/Missions folder


Usage:
Try the test mission and read some of the comments on some of the scripts and functions to get a deeper understanding as to how things work. Currently does not contain all planned features, but that shouldn't limit the usability as of now.

Important when porting to your own mission is to copy the custom dialog (RUG_Controls.h and RUG_Inventory.h) as well as the #includes in the description.ext to your own description.ext. Do not move any of the scripts that are inside the RUG_Inventory folder anywhere else, and keep the RUG_Inventory folder in the main folder of your mission (I.e. MissionName\RUG_Inventory).

How to create your own items : see the description in the test mission's comments (specifically TestInventory.sqf).

How to create your own inventories : see the description in the test mission's comments (specifically RUG_Inventory.sqf and TestInventory.sqf, as well as Init.sqf)

How to easily add, remove and transfer items: use RUG_EasyAdd, RUG_EasyRemove and RUG_EasyTransfer. See their script headings for usage!


Change log:
v.0.6 BETA
- Improved RUG_EasyAdd and RUG_EasyTransfer by adding an optional true/false switch for checking if there is space: they now output false and do not move any items if check is set to true and there is not enough size to add/transfer the items
- Added new function, RUG_Inventory_InitVehicleVars, which inits the necessary vehicle variables (RUG_Inventory_Size and RUG_Inventory_Name) independently of the RUG_Inventory.sqf script where they used to be initialized.
- Removed some more nil= appearances from some of the template items. Oops
- Added a "RUG_Inventory_Core.Intro" map to the package -> only contains the scripts and init files, and has properly named and ordered template items so as to avoid the clutter of the other test mission. For advanced users (um, that's me, I guess).
- Added some comments to the HireMan.sqf and BuyVehicle.sqf scripts -> note to users, there are many MUCH better ways of doing this, but since the scripts are there...




Forums Topic:
OFPEC Forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags