AIEngine::GetPrice

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
Attila7
Engineer
Engineer
Posts: 37
Joined: 31 May 2010 21:06

AIEngine::GetPrice

Post by Attila7 »

This function appears to return exactly half the amount that the vehicle actually costs.

I tried vehicle 147 (ore truck) and get 7444 which is half of the 14888 reported in the New Road Vehicles list.
Attila
"Artificial intelligence is no match for natural stupidity."
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: AIEngine::GetPrice

Post by planetmaker »

Your money probably is not set to pounds but to $US or to Euros. The conversion rate to those currencies is a factor of two. Internally OpenTTD always uses pounds.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 8 guests