The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on October 09, 2016, 12:45:05 AM

Title: Special text labels for the tutorial.
Post by: Yona-TYT on October 09, 2016, 12:45:05 AM



I would like that "label_x.create(coord, player_x (pl)," Text ")" Be able to to create a text label that can be removed by any player and can be placed anywhere, this would be very nice. ;D


The service of the public have two problems:
1- They can not be eliminated by another player using "tile_x(coord.x, coord.y, coord.z).remove_object(player_x(pl) mo_label)".


2- No can be placed anywhere,  for example in the constructions of the city.
Title: Re: Special text labels for the tutorial.
Post by: Dwachs on October 09, 2016, 09:33:20 AM
The labels can be removed by the player who constructed it. What would you have more than one player acting in a tutorial?
Title: Re: Special text labels for the tutorial.
Post by: Yona-TYT on October 09, 2016, 02:04:15 PM
Quote from: Dwachs on October 09, 2016, 09:33:20 AM
The labels can be removed by the player who constructed it. What would you have more than one player acting in a tutorial?
Yes, but can not be placed anywhere and also cost money.
Title: Re: Special text labels for the tutorial.
Post by: Tjoeker on October 11, 2016, 12:18:08 PM
I think he wants the scenario to automatically create labels as the government player, but the player should be able to delete them?
edit: also the goverment can't create labels on top of citybuildings (as they are owned by player null).
Title: Re: Special text labels for the tutorial.
Post by: Yona-TYT on October 11, 2016, 03:45:02 PM

Exactly, maybe it can be used  this "player null" for creating free labels, which can be eliminated by any player and they can be placed anywhere ... this would be very nice. 8)