How to use existing property in expression?

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

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

How to use existing property in expression?

Post by AlphaCentauriBear »

Hello, fellow developers.

I want to proportionally change cargo prices. I don't want to set them to certain calculated value just multiply them all by a factor.
Let's say for starter I want to double cost of coal. How do I do it?
I understand how to set property to constant but how do I retrieve existing value of the property to multiply it by two?

Another example would be to set train running cost based on their speed/power or something like that.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 25 guests