Stash system

Lightning Flash
Scavenger
Posts: 5
Joined: 25 Jun 2015, 03:34

Stash system

Postby Lightning Flash » 14 Feb 2016, 21:48

Hi there,

I am working on a "alternate stash" mod for CoC and was wondering if i could eliminate empty stashes all together.

I have spent a few hours tweaking the amount of loot and so fourth, its still a work in progress of course.

any input and help would be greatly appreciated



Good Hunting
-Lightning

User avatar
Alundaio
S.T.A.L.K.E.R.
Posts: 1368
Joined: 26 May 2012, 22:26

Re: Stash system

Postby Alundaio » 14 Feb 2016, 23:54

You want all stashes to contain loot?

Code: Select all

for i=1, math.floor(caches_count/2) do


If you look for this code in script, it will spawn loot in half of the containers. Just remove the division by 2 if you want all stashes.

like this:

Code: Select all

for i=1, math.floor(caches_count) do
"I have a dream that one day this community will rise up and live out the true meaning of its creed: "We hold these truths to be self-evident; that all mods are created equal."

Lightning Flash
Scavenger
Posts: 5
Joined: 25 Jun 2015, 03:34

Re: Stash system

Postby Lightning Flash » 15 Feb 2016, 13:02

Alundaio wrote:You want all stashes to contain loot?

Code: Select all

for i=1, math.floor(caches_count/2) do


If you look for this code in script, it will spawn loot in half of the containers. Just remove the division by 2 if you want all stashes.

like this:

Code: Select all

for i=1, math.floor(caches_count) do


Thanks, i was wondering also if you could walk me through the treasure manager script and what each part of it does. if thats alright.
Or just the major aspects of each section.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests