How to make Ai?

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
openttdfan2020
Engineer
Engineer
Posts: 7
Joined: 31 May 2019 21:26

How to make Ai?

Post by openttdfan2020 »

I really like those ais.
But i wanna make the ai just like them.
IDK how to make those, Can you help me guys?
:D

User avatar
jfs
Tycoon
Tycoon
Posts: 1163
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: How to make Ai?

Post by jfs »

Long story short:
1. Learn the Squirrel programming language
2. Learn the OpenTTD AI API
3. Look at existing AIs and available AI libraries for examples and bases to start from
4. Write some code

Yexo
Tycoon
Tycoon
Posts: 3657
Joined: 20 Dec 2007 12:49

Re: How to make Ai?

Post by Yexo »

The wiki has a few interesting pages for you:. Start with https://wiki.openttd.org/NoAI and https://wiki.openttd.org/AI:Introduction.

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 4 guests