|
@@ -17,10 +17,15 @@ if $ARGS[0] = 'communal':
|
|
|
gs 'stat'
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
|
|
|
'An old railway platform, it looks like it was abandoned. The sign is no longer legible, but there''s a hand painted sign from the communal cottages not too far away.'
|
|
|
-
|
|
|
- act 'Return to the road':minut += 15 & nroad = 5 & gt 'road'
|
|
|
*nl
|
|
|
+ gs 'transport_functions', 'set_train_wait_time', 'communal'
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_center'']>> minutes.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+
|
|
|
+ act 'Return to the road': minut += 15 & nroad = 5 & gt 'road'
|
|
|
+
|
|
|
if transportVars['trainpass_day'] > daystart:
|
|
|
+ *nl
|
|
|
func('transport_functions', 'display_trainpass_time')
|
|
|
act 'Go to platforms': gt 'train', 'communal_trains'
|
|
|
else
|
|
@@ -43,6 +48,10 @@ if $ARGS[0] = 'communal_trains':
|
|
|
$menu_arg = 'communal_trains'
|
|
|
menu_off = 0
|
|
|
|
|
|
+ gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_center'']>> minutes.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+
|
|
|
act 'Leave the platform': gt 'train', 'communal'
|
|
|
|
|
|
act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''center'')>>)': gt 'train', 'communal_center'
|
|
@@ -66,10 +75,15 @@ if $ARGS[0] = 'village':
|
|
|
gs 'stat'
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
|
|
|
'A fairly nondescript railway platform. The small village of Gadukino where your grandparents reside is not far from here.'
|
|
|
-
|
|
|
- act 'Walk to the road (0:15)':minut += 15 & nroad = 10 & gt 'road'
|
|
|
*nl
|
|
|
+ gs 'transport_functions', 'set_train_wait_time', 'village'
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_center'']>> minutes.')
|
|
|
+
|
|
|
+ act 'Walk to the road (0:15)': minut += 15 & nroad = 10 & gt 'road'
|
|
|
+
|
|
|
if transportVars['trainpass_day'] > daystart:
|
|
|
+ *nl
|
|
|
func('transport_functions', 'display_trainpass_time')
|
|
|
act 'Go to platforms': gt 'train', 'village_trains'
|
|
|
else
|
|
@@ -92,12 +106,16 @@ if $ARGS[0] = 'village_trains':
|
|
|
$menu_arg = 'village_trains'
|
|
|
menu_off = 0
|
|
|
|
|
|
+ gs 'transport_functions', 'set_train_wait_time', 'village'
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<transportVars[''train_wait_center'']>> minutes.')
|
|
|
+
|
|
|
act 'Leave the platform': gt 'train', 'village'
|
|
|
|
|
|
- act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''pavlovsk'')>>)': gt 'train', 'village_pavlovsk'
|
|
|
- act 'Take a train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''communal'')>>)': gt 'train', 'village_communal'
|
|
|
- act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''ind'')>>)': gt 'train', 'village_ind'
|
|
|
- act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''center'')>>)': gt 'train', 'village_center'
|
|
|
+ act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''pavlovsk'', ''pavlovsk'')>>)': gt 'train', 'village_pavlovsk'
|
|
|
+ act 'Take a train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''communal'', ''center'')>>)': gt 'train', 'village_communal'
|
|
|
+ act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''ind'', ''center'')>>)': gt 'train', 'village_ind'
|
|
|
+ act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''village'', ''center'', ''center'')>>)': gt 'train', 'village_center'
|
|
|
end
|
|
|
|
|
|
|
|
@@ -121,7 +139,8 @@ if $ARGS[0] = 'center_ind':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'ind')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_center_ind'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -149,7 +168,8 @@ if $ARGS[0] = 'center_communal':
|
|
|
$loc_arg = 'communal'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'communal')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_center_communal'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -175,7 +195,8 @@ if $ARGS[0] = 'center_village':
|
|
|
$loc_arg = 'village'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'village')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_center_village'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -201,7 +222,8 @@ if $ARGS[0] = 'center_pavlovsk':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'pavlovsk')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_center_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -238,8 +260,8 @@ if $ARGS[0] = 'ind_center':
|
|
|
$loc_arg = 'start'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- *clr & cla
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'center')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_ind_center'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -269,7 +291,8 @@ if $ARGS[0] = 'ind_communal':
|
|
|
$loc_arg = 'communal'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'communal')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_ind_communal'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -288,7 +311,8 @@ if $ARGS[0] = 'ind_village':
|
|
|
$loc_arg = 'village'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'village')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_ind_village'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -314,7 +338,8 @@ if $ARGS[0] = 'ind_pavlovsk':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'pavlovsk')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_ind_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -351,7 +376,8 @@ if $ARGS[0] = 'communal_center':
|
|
|
$loc_arg = 'start'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'center')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_communal_center'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -377,7 +403,8 @@ if $ARGS[0] = 'communal_ind':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'ind')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_communal_ind'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -396,7 +423,8 @@ if $ARGS[0] = 'communal_village':
|
|
|
$loc_arg = 'village'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'village')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_communal_village'] + transportVars['train_wait_pavlovsk']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -414,9 +442,10 @@ if $ARGS[0] = 'communal_pavlovsk':
|
|
|
$loc = 'pav_train_hall'
|
|
|
$loc_arg = ''
|
|
|
$location_type = 'public_indoors'
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk')
|
|
|
- minut += transportVars['timecost']
|
|
|
menu_off = 1
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_communal_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
+ minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
@@ -445,7 +474,8 @@ if $ARGS[0] = 'village_center':
|
|
|
$loc_arg = 'start'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'center')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_village_center'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -471,7 +501,8 @@ if $ARGS[0] = 'village_ind':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'ind')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_village_ind'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -496,9 +527,10 @@ if $ARGS[0] = 'village_communal':
|
|
|
$loc = 'train'
|
|
|
$loc_arg = 'communal'
|
|
|
$location_type = 'public_indoors'
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'communal')
|
|
|
- minut += transportVars['timecost']
|
|
|
menu_off = 1
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_village_communal'] + transportVars['train_wait_center']
|
|
|
+ minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 20: gt 'train_events', 'events'
|
|
@@ -515,9 +547,10 @@ if $ARGS[0] = 'village_pavlovsk':
|
|
|
$loc = 'pav_train_hall'
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'pavlovsk')
|
|
|
- minut += transportVars['timecost']
|
|
|
menu_off = 1
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_village_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
+ minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
@@ -549,7 +582,8 @@ if $ARGS[0] = 'pavlovsk_center':
|
|
|
$loc_arg = 'start'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'center')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_pavlovsk_center'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -581,7 +615,8 @@ if $ARGS[0] = 'pavlovsk_ind':
|
|
|
$loc_arg = 'platform'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'ind')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_pavlovsk_ind'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -611,7 +646,8 @@ if $ARGS[0] = 'pavlovsk_communal':
|
|
|
$loc_arg = 'communal'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'communal')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_pavlovsk_communal'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
@@ -637,7 +673,8 @@ if $ARGS[0] = 'pavlovsk_village':
|
|
|
$loc_arg = 'village'
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'village')
|
|
|
+ gs 'transport_functions', 'set_train_wait_time'
|
|
|
+ transportVars['timecost'] = transportVars['train_time_pavlovsk_village'] + transportVars['train_wait_center']
|
|
|
minut += transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|