Highway Toll Game Script
Moderator: OpenTTD Developers
Highway Toll Game Script
Hi. I just finished my first game script.
http://binaries.openttd.org/bananas/gam ... l-1.tar.gz
This GS works only in multiplayer. The company has to pay road tax for cars driving on roads owned by other companies. Every day for each vehicle, the charge is deducted from the company account and credited to the account of the company owning the road.
http://binaries.openttd.org/bananas/gam ... l-1.tar.gz
This GS works only in multiplayer. The company has to pay road tax for cars driving on roads owned by other companies. Every day for each vehicle, the charge is deducted from the company account and credited to the account of the company owning the road.
Re: Highway Toll Game Script
Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.
Re: Highway Toll Game Script
Super Script! But for your script stored on the Bananas server, it would be good to set the URL referencing the discussion in this forum.
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Highway Toll Game Script
Thanks, updatedagentw4b wrote:Super Script! But for your script stored on the Bananas server, it would be good to set the URL referencing the discussion in this forum.
Re: Highway Toll Game Script
Hi, I'll look at it. It should be done through toll gates. The entrance or exit of the highway could be marked with a sign, even with a price, and if the car was passing through the gate, it would have to pay.acs121 wrote:Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.
Edit: The possibility of a price change could be dangerous. The player may raise the price just before the car passes.
- Attachments
-
- highwaytoll.JPG
- (209.67 KiB) Not downloaded yet
Re: Highway Toll Game Script
I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies. 

Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Highway Toll Game Script
Hi, yes, it is possible. But how to solve it? If you want, you can create a new company at any time and simply send money to you.agentw4b wrote:I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies.
Re: Highway Toll Game Script
Yes, but here it is with buses to take the money borrowed from the bank. Send money borrowed from the bank is not possible.kraken wrote:Hi, yes, it is possible. But how to solve it? If you want, you can create a new company at any time and simply send money to you.agentw4b wrote:I've tested it. Unfortunately, it is easily exploited to steal money from artificially created companies.
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Highway Toll Game Script
The player won't stay forever to change toll prices.kraken wrote:Hi, I'll look at it. It should be done through toll gates. The entrance or exit of the highway could be marked with a sign, even with a price, and if the car was passing through the gate, it would have to pay.acs121 wrote:Great ! Too bad it doesn't applicate to sections we choose - it'd be good to have tolled roads, but that's for a patch.
Edit: The possibility of a price change could be dangerous. The player may raise the price just before the car passes.
It'd also be good to pay a different tax for different cargoes. For example, because of security reasons, trucks transporting chemicals would pay a lot more than trucks transporting goods.
Re: Highway Toll Game Script
Okay, I'll try to implement itacs121 wrote:kraken wrote:acs121 wrote: It'd also be good to pay a different tax for different cargoes. For example, because of security reasons, trucks transporting chemicals would pay a lot more than trucks transporting goods.
Re: Highway Toll Game Script
By that, i mean players fixing a price for each cargo.
Re: Highway Toll Game Script
Hi, here is alpha version of HighwayToll2.
There are 3 modes.
1. Mode 0 - pay on all foreign roads (same as HighwayToll v1)
2. Mode 1 - pay from sign to sign on foreign roads
3. Mode 2 - pay from sign to sign on all roads
I implemented the option to mark a road section with signs. It does not matter what text on the sign will be. There can be for example name of the road or exit number on highway.
Different cargo feature is not implemented yet. Maybe in next version
Here is example how it works. If vehicle ride from Exit1 to Exit2 the fee will be charged per every day the vehicle will be between the signs.

Please report any problems. Thank you.
There are 3 modes.
1. Mode 0 - pay on all foreign roads (same as HighwayToll v1)
2. Mode 1 - pay from sign to sign on foreign roads
3. Mode 2 - pay from sign to sign on all roads
I implemented the option to mark a road section with signs. It does not matter what text on the sign will be. There can be for example name of the road or exit number on highway.
Different cargo feature is not implemented yet. Maybe in next version

Here is example how it works. If vehicle ride from Exit1 to Exit2 the fee will be charged per every day the vehicle will be between the signs.
Please report any problems. Thank you.
- Attachments
-
- HighwayToll_2alpha.zip
- Alpha version of HighwayToll2
- (17.13 KiB) Downloaded 308 times
-
- Example of using signs
- highwaysigns.JPG (174.58 KiB) Viewed 2732 times
Who is online
Users browsing this forum: No registered users and 15 guests