Hey!
I'm working on an industry set, and I want to change the sprite of the industries based on how much cargo has been delivered to a certain industry. For the primary industries I use `transported_last_month_pct_1` to change the sprites based on how much of the cargo has been delivered, which works just fine. I could make this work in another way, but I might not have to, hence why I ask.
I was wondering if there is a variable like "produced_last_month_1" but for the input cargoes.
Thanks in advance
Industry variable for accepted cargoes delivered?
Moderator: Graphics Moderators
Re: Industry variable for accepted cargoes delivered?
you can probably use the stockpile for that
like, whenever you consume from the stockpile, you increase a counter in your industry's storage registers, and on some monthly callback, you reset that counter
like, whenever you consume from the stockpile, you increase a counter in your industry's storage registers, and on some monthly callback, you reset that counter
Re: Industry variable for accepted cargoes delivered?
Yes, implement the production-on-delivery callback and store the received amount somewhere you can get it again. Then have a monthly (or whatever) callback that resets this value.
Re: Industry variable for accepted cargoes delivered?
I see. How does storing data work in NML?
Who is online
Users browsing this forum: No registered users and 8 guests