statues and ads in all cities at once

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Starbud
Traffic Manager
Traffic Manager
Posts: 210
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

statues and ads in all cities at once

Post by Starbud »

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?
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
User avatar
odisseus
Traffic Manager
Traffic Manager
Posts: 169
Joined: 01 Nov 2017 21:19

Re: statues and ads in all cities at once

Post by odisseus »

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.
Starbud
Traffic Manager
Traffic Manager
Posts: 210
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: statues and ads in all cities at once

Post by Starbud »

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.
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
Eddi
Tycoon
Tycoon
Posts: 7529
Joined: 17 Jan 2007 00:14

Re: statues and ads in all cities at once

Post by Eddi »

don't you have to click that advertisment button like every 7 seconds to keep the 100%?
You might not exactly be interested in Ferion, but if you are, have fun :)
Starbud
Traffic Manager
Traffic Manager
Posts: 210
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: statues and ads in all cities at once

Post by Starbud »

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
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
Firrel
Engineer
Engineer
Posts: 37
Joined: 13 Aug 2019 17:06

Re: statues and ads in all cities at once

Post by Firrel »

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.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 5 guests