Is there a way to build statues in all cities at once?
If not i'd like there to be such a button.
Preferably also a way to buy adverisements in all cities at once.
Just thinking out loud here:
Perhaps there is a script for it already trough consolecommands or something?
statues and ads in all cities at once
Moderator: OpenTTD Developers
Re: statues and ads in all cities at once
Buying advertisement in all towns at once would be a great way to sink the entire company budget in a matter of seconds. I doubt that such feature will ever be included in the trunk.
Why do you need that feature anyway? If you have a well-designed transport network, the station rating should be maintained relatively high on its own. On the other hand, if you have to buy advertisement everywhere jut to keep the rating at Good or Mediocre, then you have a problem with the network design.
Why do you need that feature anyway? If you have a well-designed transport network, the station rating should be maintained relatively high on its own. On the other hand, if you have to buy advertisement everywhere jut to keep the rating at Good or Mediocre, then you have a problem with the network design.
Re: statues and ads in all cities at once
I want to reach 100% rating in stations, i can maintain 93% forever, and 100% when the trains are new.
I just like turning things to max, like making the perfect network and transport EVERYTHING
Preferably on a large map.
One way is to continously renew the trains but that takes manual clicking.
Cost of advertising compared to increased cargo is low when you send the cargo far away.
I just like turning things to max, like making the perfect network and transport EVERYTHING
Preferably on a large map.
One way is to continously renew the trains but that takes manual clicking.
Cost of advertising compared to increased cargo is low when you send the cargo far away.
Re: statues and ads in all cities at once
don't you have to click that advertisment button like every 7 seconds to keep the 100%?
Re: statues and ads in all cities at once
yes, something like that.
Or renew the trains every 2 years i think, that would work too.
Right now i wish my codingskills wouldnt be limited to assembler for microcontrollers, almost all my codingskills relate to microchip and their PIC MCUs
Or renew the trains every 2 years i think, that would work too.
Right now i wish my codingskills wouldnt be limited to assembler for microcontrollers, almost all my codingskills relate to microchip and their PIC MCUs
Re: statues and ads in all cities at once
You can create a Game Script that will do it for you. The general idea is easy to implement, so you can give it a try.
You can check GSTown for HasStatue(), IsActionAvailable(), PerformTownAction() and TownAction enum.
You can start with Minimal GS, which has already prepared monthly function, that can be used to buy advertisements.
To buy all statues at once, you can create a button in StoryPage. Look for MakePushButtonReference(). (Available only in nightly)
For better usability:
You can create a TownList and update it with EventTownFounded. Having a list of towns would allow to enable advertising only to towns that have an industry that has its cargo transported and automatically build statues.
For finding out if the industry is producing you can use GSCargoMonitor.GetTownPickupAmount from superlib.
Alternatively you can iterate over all stations and check IsWithinTownInfluence.
You can check GSTown for HasStatue(), IsActionAvailable(), PerformTownAction() and TownAction enum.
You can start with Minimal GS, which has already prepared monthly function, that can be used to buy advertisements.
To buy all statues at once, you can create a button in StoryPage. Look for MakePushButtonReference(). (Available only in nightly)
For better usability:
You can create a TownList and update it with EventTownFounded. Having a list of towns would allow to enable advertising only to towns that have an industry that has its cargo transported and automatically build statues.
For finding out if the industry is producing you can use GSCargoMonitor.GetTownPickupAmount from superlib.
Alternatively you can iterate over all stations and check IsWithinTownInfluence.
Who is online
Users browsing this forum: No registered users and 18 guests