Author: 7erra
Author Website: https://github.com/7erra/Arsenal-Shop

Requirements: No addons required

Version: 1.4

Short description: This script turns the Arsenal into a shop where each defined item costs money. The whole system is customizable to a certain extent.

Date: 2018-10-14 19:46


Comments: (0)
Rating:



 







Virtual Arsenal Shop System

by
7erra


Description:
This script turns the Arsenal into a shop where each defined item costs money. The whole system is customizable to a certain extent. Open the config.sqf for more information.


Installation / Usage:
For usage instructions and information of how to use the Virtual Arsenal Shop System please refer to the included documentation and/or example mission.

Add the following line to your init.sqf:
[] execVM "arsenalShop\config.sqf";

Move the arsenalShop folder to your mission folder
Modify the config.sqf to your likeing

Functions
There are some functions which the system uses. The most useful ones are documented in the config.sqf.
Currently available functions:
TER_fnc_addArsenal
TER_fnc_itemCostFromTable


Notes:
You can make suggestions and report bugs here in the forums or open an issue on GitHub. There you can also find all planned features.


Changelog:
v1.4 - cfgFunctions (14.10.2018)
! IMPORTANT ! The setup of the system has changed. Please refer to the readme.
+ TER_fnc_addArsenal can now be called from the init of an object
+ Credit link when ui is hidden
+ Functions library
~ Backpack names are now displayed correctly in the purchase detail listbox
~ Buy button moved to the purchase detail listbox
~ You no longer can buy undefined items or shop unrelated items
~ Color of the price is now green
~ File structure with better overview

v1.3 - Safety and UI (10.10.2018)
+ New functions:
+ TER_fnc_compareLoadout
+ TER_fnc_arrayChange
+ Purchase details
~ All functions and the cost array are now unchangeable during mission
~ The controls bar will now stay hidden
- Seperate control for displaying the cost of an item it is now displayed on the listbox instead

v1.2 - Better Refunding (07.10.2018)
+ Refunding of items in containers (uniform, vest, backpack)
~ Selecting a new weapon won't add 4 free magazines, neither does removing a weapon delete the compatible mags

v1.1
- Refunding (06.10.2018)
+ Refunding
~ more versatile TER_fnc_addArsenal (see config.sqf)

v1
- Release (05.10.2018)


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Shop,   Money,   Arsenal,   Function,   Fictional,   Support,   Roleplay,   Script