Page 1 of 1

Allow always during map gen

Posted: 20 Mar 2019 18:55
by Vanderbildt
hello
I the king of copy and paste will ask frendly for help.

how can i say: during the map generation or in the scenario editor allow only one industrie of this type on the map

for example

if (economy==XXX)
switch (FEAT_INDUSTRIES, SELF, coal_mine_check_map_gen, industry_count =1) {
1: return CB_RESULT_IND_PROBABILITY_FROM_PROPERTY;
coal_mine_check_availability_param;


i couldn`t find a example so the king is naked

Thank you
vanderbildt

Re: Allow always during map gen

Posted: 20 Mar 2019 19:37
by BW89
Set no. of industries to minimal

only one industrie of each type is built

Re: Allow always during map gen

Posted: 20 Mar 2019 19:49
by Vanderbildt
Yes thats true but not that what i want.

Thank you

Re: Allow always during map gen

Posted: 20 Mar 2019 20:48
by PikkaBird
Vanderbildt wrote:for example
Sure, but make sure you've provided the correct parameters to industry_count (it needs a grfid), and reflect on what the value of that variable will be when it hasn't built the industry yet.