[EDITED/UPDATED] Feature Request: More variables for conditional statements
Page 1 of 1
[EDITED/UPDATED] Feature Request: More variables for conditional statements
UPDATE: Having slept, I noted it's somewhat stupid of me to just ask for sounds. It'd make a lot more sense to upgrade the already existing system conditional statements and add a bunch of engine-side variables to work with. I'm thinking along the lines of stuff like:
$if (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']<300)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; null
Track.Announce Musterstadt.ogg; 0
$elseif (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']>=300 && train.timetable['delay']<600)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute ca. 5min später --- Delay approx. 5min --- 5min plus tard ---'
Track.Announce Musterstadt5min.ogg; 0
$elseif (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']>=600 && train.timetable['delay']<900)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute ca. 10min später --- Delay approx. 10min --- 10min plus tard ---'
Track.Announce Musterstadt10min.ogg; 0
$else
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute unbestimmt verspätet --- Delayed indeterminately --- retardé indéterminié ---'
Track.Announce MusterstadtUnbestimmt.ogg; 0
$endif
Original text:
Conditional sounds could be used e.g. for station announcements depending on the delay (other connecting services etc.), for time dependant sounds like church bells, minaret calls, factory shift change sirens and so on, or they could be timed with animated point objects for realistic point engine sound, etc.
$if (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']<300)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; null
Track.Announce Musterstadt.ogg; 0
$elseif (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']>=300 && train.timetable['delay']<600)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute ca. 5min später --- Delay approx. 5min --- 5min plus tard ---'
Track.Announce Musterstadt5min.ogg; 0
$elseif (train.atStop[3]==true && train.doorsOpen==true && train.timetable['delay']>=600 && train.timetable['delay']<900)
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute ca. 10min später --- Delay approx. 10min --- 10min plus tard ---'
Track.Announce Musterstadt10min.ogg; 0
$else
Track.TextedObj 0; 243; -3; 3.5; 0; 0; 0; 'Heute unbestimmt verspätet --- Delayed indeterminately --- retardé indéterminié ---'
Track.Announce MusterstadtUnbestimmt.ogg; 0
$endif
Original text:
Conditional sounds could be used e.g. for station announcements depending on the delay (other connecting services etc.), for time dependant sounds like church bells, minaret calls, factory shift change sirens and so on, or they could be timed with animated point objects for realistic point engine sound, etc.
Quork- Posts : 1438
Join date : 2012-05-05
Age : 33
Location : Hofheim a.T., Hessen (Hesse), European Union
Similar topics
» Feature Request: Font/text object support
» Request.
» Manuel High Speed Trains
» Variables and other suggestions
» Object Viewer crashes when new variables are used in .animated files
» Request.
» Manuel High Speed Trains
» Variables and other suggestions
» Object Viewer crashes when new variables are used in .animated files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum