BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[EDITED/UPDATED] Feature Request: More variables for conditional statements

Go down

[EDITED/UPDATED] Feature Request: More variables for conditional statements Empty [EDITED/UPDATED] Feature Request: More variables for conditional statements

Post by Quork Wed Jun 22, 2016 3:51 am

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.
Quork
Quork

Posts : 1437
Join date : 2012-05-05
Age : 32
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum