Page 1 of 1

What GS CAN do?

Posted: 28 May 2020 05:36
by speeder
So... lots of people keep telling me GS is heavily limited and whatnot.

I found out GS can create news, and setup goals and write to a storybook.

What else it can do, that affects all players or the scenario itself?

Can it generate subsidies and other events?
Can it start or end recession?
Can it generate disasters?
Can it demolish industries? (I know it can build them)
Can it... and so on.

Re: What GS CAN do?

Posted: 28 May 2020 08:27
by Yexo
speeder wrote: 28 May 2020 05:36Can it generate subsidies and other events?
Not yet, this has been recently discussed as an interesting addition. (viewtopic.php?f=65&t=87022)
Can it start or end recession?
AFAIK not, but again, wouldn't be too hard to add probably.
Can it generate disasters?
No. Could be interesting, but might be slightly harder to code.
Can it demolish industries? (I know it can build them)
I think so, but I can't find documentation related to this. I suspect GSTile.DemolishTile() just works.
Can it... and so on.
See for yourself: https://docs.openttd.org/gs-api/annotated.html

Re: What GS CAN do?

Posted: 28 May 2020 08:28
by planetmaker
Well... the most comprehensive list always is the documentation generated from OpenTTD's source code
https://docs.openttd.org/gs-api/annotated.html

Look through it. Generally all methods with "Set" change game state, but of course there are other methods which change things like OpenCloseAirport.