#SKIP_FUNDS_CHECK= in scripts

Post Reply
woolymuffler
Posts: 25
Joined: Tue Dec 26, 2017 4:48 pm

#SKIP_FUNDS_CHECK= in scripts

Post by woolymuffler »

If "#SKIP_FUNDS_CHECK= 1" is set for an event (purchase or research), what exactly does it mean?

Is it just that the AI will make the purchase, even if this runs them into negative mpp (so not checking for funds ahead of purchase)?

Or does the AI not actually have to pay for research/units on events with "#SKIP_FUNDS_CHECK= 1" set?
User avatar
Hubert Cater
Posts: 6063
Joined: Mon Jul 22, 2013 11:42 am
Contact:

Re: #SKIP_FUNDS_CHECK= in scripts

Post by Hubert Cater »

Hi,

It just means that the lack of MPPs will not prevent it from making the purchase, e.g. if it were to go into negative, on the purchase, the available MPPs will be set to zero.

Essentially it allows the AI to not be restricted by unavailable MPPs, sometimes needed as otherwise it may never purchase a Research item (as an example) and it ensures a decent game against the AI. It is a for sure a bit of a helper, but the AI will still spend whatever MPPs it had available to make it happen.

e.g. if it had available MPPs then that extra #SKIP_FUNDS_CHECK flag may not apply. It is turned on for these events as a 'just in case' it is short, and if it is, still make sure the purchase is made exhausting all available MPPs in the process etc.

Hope this helps,
Hubert
woolymuffler
Posts: 25
Joined: Tue Dec 26, 2017 4:48 pm

Re: #SKIP_FUNDS_CHECK= in scripts

Post by woolymuffler »

Thanks, appreciate the information!
Post Reply

Return to “MODS and Scenarios”