The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on October 14, 2018, 09:34:53 PM

Title: [Tutorial] Problems with elevated tracks
Post by: Yona-TYT on October 14, 2018, 09:34:53 PM
The use of elevated tracks breaks the scenario.
I needed a method to filter the elevated tracks so they do not show up in the toolbar or some other way to prevent them from being built.
(https://www.mediafire.com/convkey/60d8/yhqg4qlpb4ggkdo6g.jpg)
Title: Re: [Tutorial] Problems with elevated tracks
Post by: An_dz on October 15, 2018, 12:55:24 AM
Seems like rules::forbid_way_tool would need a fourth optional value for systemtype_t
Title: Re: [Tutorial] Problems with elevated tracks
Post by: Yona-TYT on November 04, 2018, 07:34:34 PM
Quote from: An_dz on October 15, 2018, 12:55:24 AMSeems like rules::forbid_way_tool would need a fourth optional value for systemtype_t
I would be very happy to be able to use that.  ;D ;D ;D

Maybe another rule for the "systemtype".  ;)

example:rules.forbid_way_system_tool (pl, tool_id, st_ type)