How to set vehicle purchase price in NewGRF NML?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

How to set vehicle purchase price in NewGRF NML?

Post by AlphaCentauriBear »

Searched through documentation but didn't find anything.
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

Re: How to set vehicle purchase price in NewGRF NML?

Post by AlphaCentauriBear »

Weird. This should be very simple thing to do. Is it not implemented?
User avatar
2TallTyler
Route Supervisor
Route Supervisor
Posts: 507
Joined: 11 Aug 2019 18:15
Contact:

Re: How to set vehicle purchase price in NewGRF NML?

Post by 2TallTyler »

You're looking for "cost_factor", which is available as both a property and a callback. It's a multiplier to the base cost, not the amount in GBP, because the base cost can be changed by other settings and GRFs, scaling purchase prices with it.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 9 guests