Author: austin(medic)
Author Website:

Requirements: No addons required

Version: 1.0

Short description: Basically a script that will pick some random items out of chernarus life to give the player when he finds an object with the addaction on it.

Date: 2013-06-15 05:06


Comments: (0)
Rating:



 

Chernarus Life Random Item Chance Script

by
austin(medic)


Description:
Basically this script just picks a random number then gives the player that found the object or unit some items such as money and repair kits.
Script can be ran on some objects or units for a moneybag/money grab style thing to do.

You can even edit the items added to the player who found the unit or object by looking in masterarray.sqf and scrolling down to the bottom.


Installation / Usage:
All you need to do is put the script in your mission folder and in the editor place an object or a unit (like a garbage can) and put in that unit's initbox:
this addaction ["Search", "randomchance.sqf"];
It will run the script. It will pick a random number between 1 and 100 then deicde what the person that searched the bin will get.

How to add new items to this:
Open masterarray.sqf in your chernarus life mission file. you will see different names for things. go all the way to the bottom and you will see the item names. geld is money, so put in:
['geld', howmuch$$here] INV_AddInventoryItem;
Then if that number gets picked, it will give the player who searched the bin the amount of money that was set in the script.
You can also change the numbers in the variables to set how high the number needs to be for the person to get that item:
_rnum = floor (random 100);





Enable javascript to be able to download from Armaholic please!



Tags: Chance,   Items,   Random