Moderator: OpenTTD Developers
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?
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.
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.
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
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.
Users browsing this forum: No registered users and 5 guests