|
@@ -26,8 +26,8 @@ if $ARGS[0] = 'communal':
|
|
|
'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.'
|
|
|
*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.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
|
|
|
act 'Return to the road': minut += 15 & nroad = 5 & gt 'road'
|
|
|
|
|
@@ -63,8 +63,8 @@ elseif $ARGS[0] = '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.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
|
|
|
act 'Leave the platform': gt 'train', 'communal'
|
|
|
|
|
@@ -105,8 +105,8 @@ if $ARGS[0] = 'gadukino':
|
|
|
'A fairly nondescript railway platform. The small village of Gadukino where your grandparents reside is not far from here.'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_train_wait_time', 'gadukino'
|
|
|
- '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.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
|
|
|
|
|
|
act 'Walk to the road (0:15)': minut += 15 & nroad = 10 & gt 'road'
|
|
|
|
|
@@ -142,8 +142,8 @@ elseif $ARGS[0] = 'gadukino_trains':
|
|
|
menu_off = 0
|
|
|
|
|
|
gs 'transport_functions', 'set_train_wait_time', 'gadukino'
|
|
|
- '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.')
|
|
|
+ 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
|
|
|
+ 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
|
|
|
|
|
|
act 'Leave the platform': gt 'train', 'gadukino'
|
|
|
|
|
@@ -184,23 +184,23 @@ if $ARGS[0] = 'center_ind':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_center_ind'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'ind') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if tranportVars['rand'] <= 9:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 9:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 23:
|
|
|
+ if temp_transportVars['rand'] <= 23:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 31:
|
|
|
+ elseif temp_transportVars['rand'] <= 31:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -212,22 +212,22 @@ elseif $ARGS[0] = 'center_communal':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_center_communal'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'communal') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 19:
|
|
|
+ if temp_transportVars['rand'] <= 19:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -239,21 +239,21 @@ elseif $ARGS[0] = 'center_gadukino':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_center_gadukino'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 19:
|
|
|
+ if temp_transportVars['rand'] <= 19:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -265,25 +265,25 @@ elseif $ARGS[0] = 'center_pavlovsk':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_center_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
+ elseif temp_transportVars['rand'] <= 45:
|
|
|
gt 'train_events', 'Gopnik'
|
|
|
- elseif transportVars['rand'] <= 51:
|
|
|
+ elseif temp_transportVars['rand'] <= 51:
|
|
|
gt 'train_events', 'events'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -303,24 +303,24 @@ if $ARGS[0] = 'ind_center':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_ind_center'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'center') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 9:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 9:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 23:
|
|
|
+ if temp_transportVars['rand'] <= 23:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 31:
|
|
|
+ elseif temp_transportVars['rand'] <= 31:
|
|
|
gt 'train_events', 'events'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/electri_' + rand(1,5) + '.jpg"></center>'
|
|
|
'You pay for the ticket and board the next train going to the city center.'
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, you see the office blocks and shops at the heart of the city. The train stops at its final destination, the busy station in the city center.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you see the office blocks and shops at the heart of the city. The train stops at its final destination, the busy station in the city center.'
|
|
|
|
|
|
act 'Get off the train at this station':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
@@ -333,21 +333,21 @@ elseif $ARGS[0] = 'ind_communal':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_ind_communal'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'communal') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 17:
|
|
|
+ if temp_transportVars['rand'] <= 17:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -359,21 +359,21 @@ elseif $ARGS[0] = 'ind_gadukino':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_ind_gadukino'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 19:
|
|
|
+ if temp_transportVars['rand'] <= 19:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -385,26 +385,26 @@ elseif $ARGS[0] = 'ind_pavlovsk':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_ind_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
+ elseif temp_transportVars['rand'] <= 45:
|
|
|
gt 'train_events', 'Gopnik'
|
|
|
- elseif transportVars['rand'] <= 51:
|
|
|
+ elseif temp_transportVars['rand'] <= 51:
|
|
|
gt 'train_events', 'events'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -424,21 +424,21 @@ if $ARGS[0] = 'communal_center':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_communal_center'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'center') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 19:
|
|
|
+ if temp_transportVars['rand'] <= 19:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_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':
|
|
|
if transportVars['train_event_day'] ! daystart and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -450,21 +450,21 @@ elseif $ARGS[0] = 'communal_ind':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_communal_ind'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'ind') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 16:
|
|
|
+ if temp_transportVars['rand'] <= 16:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -476,21 +476,21 @@ elseif $ARGS[0] = 'communal_gadukino':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_communal_gadukino'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 16:
|
|
|
+ if temp_transportVars['rand'] <= 16:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -502,21 +502,21 @@ elseif $ARGS[0] = 'communal_pavlovsk':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_communal_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 28:
|
|
|
+ if temp_transportVars['rand'] <= 28:
|
|
|
gt 'train_events', 'events'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
act 'Get off the train': gt $loc, $loc_arg
|
|
|
end
|
|
|
|
|
@@ -533,21 +533,21 @@ if $ARGS[0] = 'gadukino_center':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_gadukino_center'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'center') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 24:
|
|
|
+ if temp_transportVars['rand'] <= 24:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_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':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -559,21 +559,21 @@ elseif $ARGS[0] = 'gadukino_ind':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_gadukino_ind'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'ind') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 24:
|
|
|
+ if temp_transportVars['rand'] <= 24:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -585,21 +585,21 @@ elseif $ARGS[0] = 'gadukino_communal':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_gadukino_communal'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'communal') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 16:
|
|
|
+ if temp_transportVars['rand'] <= 16:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you arrive at an old railway platform near the communal village.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -611,21 +611,21 @@ elseif $ARGS[0] = 'gadukino_pavlovsk':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_gadukino_pavlovsk'] + transportVars['train_wait_pavlovsk']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 28:
|
|
|
+ if temp_transportVars['rand'] <= 28:
|
|
|
gt 'train_events', 'events'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
|
|
|
- 'After <<transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -645,27 +645,27 @@ if $ARGS[0] = 'pavlovsk_center':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_pavlovsk_center'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'center') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
+ elseif temp_transportVars['rand'] <= 45:
|
|
|
gt 'train_events', 'Gopnik'
|
|
|
- elseif tranportVars['rand'] <= 55:
|
|
|
+ elseif temp_transportVars['rand'] <= 55:
|
|
|
gt 'train_events', 'weed'
|
|
|
- elseif transportVars['rand'] <= 61:
|
|
|
+ elseif temp_transportVars['rand'] <= 61:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_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':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -677,25 +677,25 @@ elseif $ARGS[0] = 'pavlovsk_ind':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_pavlovsk_ind'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'ind') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 6:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 6:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 20:
|
|
|
+ if temp_transportVars['rand'] <= 20:
|
|
|
gt 'train_events', 'private'
|
|
|
- elseif transportVars['rand'] <= 45:
|
|
|
+ elseif temp_transportVars['rand'] <= 45:
|
|
|
gt 'train_events', 'Gopnik'
|
|
|
- elseif transportVars['rand'] <= 51:
|
|
|
+ elseif temp_transportVars['rand'] <= 51:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -707,21 +707,21 @@ elseif $ARGS[0] = 'pavlovsk_communal':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_pavlovsk_communal'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'communal') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 38:
|
|
|
+ if temp_transportVars['rand'] <= 38:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes you arrive at an old railway platform near the communal village.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
@@ -733,28 +733,28 @@ elseif $ARGS[0] = 'pavlovsk_gadukino':
|
|
|
$location_type = 'public_indoors'
|
|
|
menu_off = 1
|
|
|
gs 'transport_functions', 'set_train_wait_time'
|
|
|
- transportVars['timecost'] = transportVars['train_time_pavlovsk_gadukino'] + transportVars['train_wait_center']
|
|
|
- minut += transportVars['timecost']
|
|
|
+ temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'gadukino') + temp_transportVars['train_wait_center']
|
|
|
+ minut += temp_transportVars['timecost']
|
|
|
gs 'stat'
|
|
|
|
|
|
- transportVars['rand'] = rand(1, 100)
|
|
|
- if transportVars['rand'] <= 10:
|
|
|
+ temp_transportVars['rand'] = rand(1, 100)
|
|
|
+ if temp_transportVars['rand'] <= 10:
|
|
|
gt 'train_incidental', 'events'
|
|
|
elseif transportVars['train_event_day'] ! daystart:
|
|
|
- if transportVars['rand'] <= 19:
|
|
|
+ if temp_transportVars['rand'] <= 19:
|
|
|
gt 'train_events', 'events'
|
|
|
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.'
|
|
|
+ 'After <<temp_transportVars[''timecost'']>> minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
act 'Get off the train':
|
|
|
if rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
gt $loc, $loc_arg
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-
|
|
|
+killvar 'temp_transportVars'
|
|
|
|
|
|
--- train ---------------------------------
|
|
|
|