|
@@ -12,14 +12,20 @@ if $ARGS[0] = 'communal':
|
|
*clr & cla
|
|
*clr & cla
|
|
$menu_loc = 'train'
|
|
$menu_loc = 'train'
|
|
$menu_arg = 'communal'
|
|
$menu_arg = 'communal'
|
|
|
|
+ $location_type = 'public_outdoors'
|
|
menu_off = 0
|
|
menu_off = 0
|
|
gs 'stat'
|
|
gs 'stat'
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
|
|
'<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.'
|
|
'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
|
|
*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:
|
|
if transportVars['trainpass_day'] > daystart:
|
|
|
|
+ *nl
|
|
func('transport_functions', 'display_trainpass_time')
|
|
func('transport_functions', 'display_trainpass_time')
|
|
act 'Go to platforms': gt 'train', 'communal_trains'
|
|
act 'Go to platforms': gt 'train', 'communal_trains'
|
|
else
|
|
else
|
|
@@ -42,6 +48,10 @@ if $ARGS[0] = 'communal_trains':
|
|
$menu_arg = 'communal_trains'
|
|
$menu_arg = 'communal_trains'
|
|
menu_off = 0
|
|
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 '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'
|
|
act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''center'')>>)': gt 'train', 'communal_center'
|
|
@@ -57,6 +67,7 @@ if $ARGS[0] = 'village':
|
|
$loc_arg = 'village'
|
|
$loc_arg = 'village'
|
|
$menu_loc = 'train'
|
|
$menu_loc = 'train'
|
|
$menu_arg = 'village'
|
|
$menu_arg = 'village'
|
|
|
|
+ $location_type = 'public_outdoors'
|
|
display_bb = 0
|
|
display_bb = 0
|
|
menu_off = 0
|
|
menu_off = 0
|
|
|
|
|
|
@@ -64,10 +75,15 @@ if $ARGS[0] = 'village':
|
|
gs 'stat'
|
|
gs 'stat'
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
|
|
'<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.'
|
|
'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
|
|
*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:
|
|
if transportVars['trainpass_day'] > daystart:
|
|
|
|
+ *nl
|
|
func('transport_functions', 'display_trainpass_time')
|
|
func('transport_functions', 'display_trainpass_time')
|
|
act 'Go to platforms': gt 'train', 'village_trains'
|
|
act 'Go to platforms': gt 'train', 'village_trains'
|
|
else
|
|
else
|
|
@@ -90,12 +106,16 @@ if $ARGS[0] = 'village_trains':
|
|
$menu_arg = 'village_trains'
|
|
$menu_arg = 'village_trains'
|
|
menu_off = 0
|
|
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 '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
|
|
end
|
|
|
|
|
|
|
|
|
|
@@ -117,8 +137,10 @@ end
|
|
if $ARGS[0] = 'center_ind':
|
|
if $ARGS[0] = 'center_ind':
|
|
$loc = 'city_industrial_train'
|
|
$loc = 'city_industrial_train'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -144,8 +166,10 @@ end
|
|
if $ARGS[0] = 'center_communal':
|
|
if $ARGS[0] = 'center_communal':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'communal'
|
|
$loc_arg = 'communal'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -169,8 +193,10 @@ end
|
|
if $ARGS[0] = 'center_village':
|
|
if $ARGS[0] = 'center_village':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'village'
|
|
$loc_arg = 'village'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -194,8 +220,10 @@ end
|
|
if $ARGS[0] = 'center_pavlovsk':
|
|
if $ARGS[0] = 'center_pavlovsk':
|
|
$loc = 'pav_train_hall'
|
|
$loc = 'pav_train_hall'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -230,9 +258,10 @@ end
|
|
if $ARGS[0] = 'ind_center':
|
|
if $ARGS[0] = 'ind_center':
|
|
$loc = 'city_train'
|
|
$loc = 'city_train'
|
|
$loc_arg = 'start'
|
|
$loc_arg = 'start'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -260,8 +289,10 @@ end
|
|
if $ARGS[0] = 'ind_communal':
|
|
if $ARGS[0] = 'ind_communal':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'communal'
|
|
$loc_arg = 'communal'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -278,8 +309,10 @@ end
|
|
if $ARGS[0] = 'ind_village':
|
|
if $ARGS[0] = 'ind_village':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'village'
|
|
$loc_arg = 'village'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -303,8 +336,10 @@ end
|
|
if $ARGS[0] = 'ind_pavlovsk':
|
|
if $ARGS[0] = 'ind_pavlovsk':
|
|
$loc = 'pav_train_hall'
|
|
$loc = 'pav_train_hall'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -339,8 +374,10 @@ end
|
|
if $ARGS[0] = 'communal_center':
|
|
if $ARGS[0] = 'communal_center':
|
|
$loc = 'city_train'
|
|
$loc = 'city_train'
|
|
$loc_arg = 'start'
|
|
$loc_arg = 'start'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -364,8 +401,10 @@ end
|
|
if $ARGS[0] = 'communal_ind':
|
|
if $ARGS[0] = 'communal_ind':
|
|
$loc = 'city_industrial_train'
|
|
$loc = 'city_industrial_train'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -382,8 +421,10 @@ end
|
|
if $ARGS[0] = 'communal_village':
|
|
if $ARGS[0] = 'communal_village':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'village'
|
|
$loc_arg = 'village'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -400,9 +441,11 @@ end
|
|
if $ARGS[0] = 'communal_pavlovsk':
|
|
if $ARGS[0] = 'communal_pavlovsk':
|
|
$loc = 'pav_train_hall'
|
|
$loc = 'pav_train_hall'
|
|
$loc_arg = ''
|
|
$loc_arg = ''
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk')
|
|
|
|
- minut += transportVars['timecost']
|
|
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
@@ -429,8 +472,10 @@ end
|
|
if $ARGS[0] = 'village_center':
|
|
if $ARGS[0] = 'village_center':
|
|
$loc = 'city_train'
|
|
$loc = 'city_train'
|
|
$loc_arg = 'start'
|
|
$loc_arg = 'start'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -454,8 +499,10 @@ end
|
|
if $ARGS[0] = 'village_ind':
|
|
if $ARGS[0] = 'village_ind':
|
|
$loc = 'city_industrial_train'
|
|
$loc = 'city_industrial_train'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
@@ -479,9 +526,11 @@ end
|
|
if $ARGS[0] = 'village_communal':
|
|
if $ARGS[0] = 'village_communal':
|
|
$loc = 'train'
|
|
$loc = 'train'
|
|
$loc_arg = 'communal'
|
|
$loc_arg = 'communal'
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'communal')
|
|
|
|
- minut += transportVars['timecost']
|
|
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 20: gt 'train_events', 'events'
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 20: gt 'train_events', 'events'
|
|
@@ -497,9 +546,11 @@ end
|
|
if $ARGS[0] = 'village_pavlovsk':
|
|
if $ARGS[0] = 'village_pavlovsk':
|
|
$loc = 'pav_train_hall'
|
|
$loc = 'pav_train_hall'
|
|
$loc_arg = 'platform'
|
|
$loc_arg = 'platform'
|
|
- transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'village', 'pavlovsk')
|
|
|
|
- minut += transportVars['timecost']
|
|
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
@@ -526,113 +577,121 @@ end
|
|
!! !!
|
|
!! !!
|
|
!!-----------------------!!
|
|
!!-----------------------!!
|
|
|
|
|
|
-if $ARGS[0] = 'pavlovsk_village':
|
|
|
|
- $loc = 'train'
|
|
|
|
- $loc_arg = 'village'
|
|
|
|
|
|
+if $ARGS[0] = 'pavlovsk_center':
|
|
|
|
+ $loc = 'city_train'
|
|
|
|
+ $loc_arg = 'start'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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_center'] + transportVars['train_wait_center']
|
|
minut += transportVars['timecost']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
transportVars['rand'] = rand(1, 100)
|
|
transportVars['rand'] = rand(1, 100)
|
|
- if transportVars['rand'] <= 10:
|
|
|
|
|
|
+ if transportVars['rand'] <= 14:
|
|
|
|
+ gt 'train_events', 'private'
|
|
|
|
+ elseif transportVars['rand'] <= 39:
|
|
|
|
+ gt 'train_events', 'Gopnik'
|
|
|
|
+ elseif transportVars['rand'] <= 45:
|
|
gt 'train_incidental', 'events'
|
|
gt 'train_incidental', 'events'
|
|
- elseif transportVars['rand'] <= 27:
|
|
|
|
|
|
+ elseif transportVars['rand'] <= 56:
|
|
gt 'train_events', 'events'
|
|
gt 'train_events', 'events'
|
|
|
|
+ elseif tranportVars['rand'] <= 66:
|
|
|
|
+ gt 'train_events', 'weed'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
|
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
|
|
|
|
+ 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
|
|
act 'Get off the train':
|
|
act 'Get off the train':
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
- gt 'train', 'village'
|
|
|
|
|
|
+ gt 'city_train', 'start'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'pavlovsk_communal':
|
|
|
|
- $loc = 'train'
|
|
|
|
- $loc_arg = 'communal'
|
|
|
|
|
|
+if $ARGS[0] = 'pavlovsk_ind':
|
|
|
|
+ $loc = 'city_industrial_train'
|
|
|
|
+ $loc_arg = 'platform'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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_ind'] + transportVars['train_wait_center']
|
|
minut += transportVars['timecost']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
transportVars['rand'] = rand(1, 100)
|
|
transportVars['rand'] = rand(1, 100)
|
|
- if transportVars['rand'] <= 10:
|
|
|
|
|
|
+ if transportVars['rand'] <= 14:
|
|
|
|
+ gt 'train_events', 'private'
|
|
|
|
+ elseif transportVars['rand'] <= 39:
|
|
|
|
+ gt 'train_events', 'Gopnik'
|
|
|
|
+ elseif transportVars['rand'] <= 45:
|
|
gt 'train_incidental', 'events'
|
|
gt 'train_incidental', 'events'
|
|
- elseif transportVars['rand'] <= 38:
|
|
|
|
|
|
+ elseif transportVars['rand'] <= 56:
|
|
gt 'train_events', 'events'
|
|
gt 'train_events', 'events'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
|
|
|
|
- 'After <<transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
|
|
|
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
|
|
|
|
+ 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
act 'Get off the train':
|
|
act 'Get off the train':
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
- gt 'train', 'communal'
|
|
|
|
|
|
+ gt 'city_industrial_train', 'inside'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'pavlovsk_ind':
|
|
|
|
- $loc = 'city_industrial_train'
|
|
|
|
- $loc_arg = 'platform'
|
|
|
|
|
|
+if $ARGS[0] = 'pavlovsk_communal':
|
|
|
|
+ $loc = 'train'
|
|
|
|
+ $loc_arg = 'communal'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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_communal'] + transportVars['train_wait_center']
|
|
minut += transportVars['timecost']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
transportVars['rand'] = rand(1, 100)
|
|
transportVars['rand'] = rand(1, 100)
|
|
- if transportVars['rand'] <= 14:
|
|
|
|
- gt 'train_events', 'private'
|
|
|
|
- elseif transportVars['rand'] <= 39:
|
|
|
|
- gt 'train_events', 'Gopnik'
|
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
|
|
|
+ if transportVars['rand'] <= 10:
|
|
gt 'train_incidental', 'events'
|
|
gt 'train_incidental', 'events'
|
|
- elseif transportVars['rand'] <= 56:
|
|
|
|
|
|
+ elseif transportVars['rand'] <= 38:
|
|
gt 'train_events', 'events'
|
|
gt 'train_events', 'events'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
|
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
|
|
|
|
+ 'After <<transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
|
|
act 'Get off the train':
|
|
act 'Get off the train':
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
- gt 'city_industrial_train', 'inside'
|
|
|
|
|
|
+ gt 'train', 'communal'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'pavlovsk_center':
|
|
|
|
- $loc = 'city_train'
|
|
|
|
- $loc_arg = 'start'
|
|
|
|
|
|
+if $ARGS[0] = 'pavlovsk_village':
|
|
|
|
+ $loc = 'train'
|
|
|
|
+ $loc_arg = 'village'
|
|
|
|
+ $location_type = 'public_indoors'
|
|
menu_off = 1
|
|
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_village'] + transportVars['train_wait_center']
|
|
minut += transportVars['timecost']
|
|
minut += transportVars['timecost']
|
|
gs 'stat'
|
|
gs 'stat'
|
|
|
|
|
|
if transportVars['train_event_day'] ! daystart:
|
|
if transportVars['train_event_day'] ! daystart:
|
|
transportVars['rand'] = rand(1, 100)
|
|
transportVars['rand'] = rand(1, 100)
|
|
- if transportVars['rand'] <= 14:
|
|
|
|
- gt 'train_events', 'private'
|
|
|
|
- elseif transportVars['rand'] <= 39:
|
|
|
|
- gt 'train_events', 'Gopnik'
|
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
|
|
|
+ if transportVars['rand'] <= 10:
|
|
gt 'train_incidental', 'events'
|
|
gt 'train_incidental', 'events'
|
|
- elseif transportVars['rand'] <= 56:
|
|
|
|
|
|
+ elseif transportVars['rand'] <= 27:
|
|
gt 'train_events', 'events'
|
|
gt 'train_events', 'events'
|
|
- elseif tranportVars['rand'] <= 64:
|
|
|
|
- gt 'train_events', 'weed'
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
|
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
|
|
|
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
|
|
|
|
+ 'After <<transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
act 'Get off the train':
|
|
act 'Get off the train':
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
- gt 'city_train', 'start'
|
|
|
|
|
|
+ gt 'train', 'village'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|