Cargo destinations via scripts?

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
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Cargo destinations via scripts?

Post by Hyronymus »

I just had this brainwave (I accept congratulations :P): is it possible to (ab)use the script framework to create cargo destinations?
Aali
Traffic Manager
Traffic Manager
Posts: 144
Joined: 01 Oct 2008 00:04
Location: Sweden

Re: Cargo destinations via scripts?

Post by Aali »

Considering that one of the major problems with cargo destinations is excessive CPU usage I dont know if sticking it in the SQVM is such a good idea.
TrueBrain
OpenTTD Developer
OpenTTD Developer
Posts: 1370
Joined: 31 May 2004 09:21

Re: Cargo destinations via scripts?

Post by TrueBrain »

I am sorry to tell you that you are (by far) not the first to suggest that. I am sorry about that :(

More ontopic, I have little to add. Sadly :(
The only thing necessary for the triumph of evil is for good men to do nothing.
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Cargo destinations via scripts?

Post by Hyronymus »

TrueBrain wrote:I am sorry to tell you that you are (by far) not the first to suggest that. I am sorry about that :(

More ontopic, I have little to add. Sadly :(
Darn, should use the search engine better then.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo destinations via scripts?

Post by Alberth »

You can give out subsidies to users that bring cargo to the right destination.
If you make it the only way to make money (not sure if you can do that), I am sure people will take the bait :p
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Cargo destinations via scripts?

Post by Hyronymus »

Alberth wrote:You can give out subsidies to users that bring cargo to the right destination.
If you make it the only way to make money (not sure if you can do that), I am sure people will take the bait :p
It doesn't have to be the only way, just a more interesting way.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: Amazon [Bot] and 7 guests