Hi,
Looking through the API I couldn't see the right method. I want the AI I am coding to pop up a message to the player. Even better would be the player could click accept or reject. But just a pop up window would be sufficient. Can you point me in the right direction? Thanks
AI communicate with player
Moderator: OpenTTD Developers
Re: AI communicate with player
AIs can't do this (although I've long thought it would be nice if they could write to the multiplayer chat). They can only write to the AI debug log.
If you want dialogues the player interacts with, you need a GameScript.
If you want dialogues the player interacts with, you need a GameScript.
-
- Engineer
- Posts: 2
- Joined: 31 Oct 2019 07:27
Re: AI communicate with player
Thanks. Can my AI script import a GameScript library, or do I need to write a separate GameScript which would then be located in the GS folder instead of the AI folder?
Who is online
Users browsing this forum: No registered users and 15 guests