|
@@ -55,17 +55,7 @@ if $ARGS[0] = 'communal_tickets':
|
|
|
'You don''t have enough money for this ticket.'
|
|
|
end
|
|
|
end
|
|
|
-
|
|
|
- act 'Buy a ticket to the old platform by the old town (75 <b>₽</b>)':
|
|
|
- if money >= 75:
|
|
|
- money -= 75
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'communal_oldtown'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
+
|
|
|
act 'Buy a ticket to Pavlovsk (100 <b>₽</b>)':
|
|
|
if money >= 100:
|
|
|
money -= 100
|
|
@@ -90,8 +80,6 @@ if $ARGS[0] = 'communal_trains':
|
|
|
|
|
|
act 'Take a train to the village of Gadukino': gt 'train', 'communal_village'
|
|
|
|
|
|
- act 'Take a train to the old platform by the old town': gt 'train', 'communal_oldtown'
|
|
|
-
|
|
|
act 'Take a train to Pavlovsk': gt 'train', 'communal_pavlovsk'
|
|
|
end
|
|
|
|
|
@@ -143,22 +131,6 @@ if $ARGS[0] = 'communal_village':
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'communal_oldtown':
|
|
|
- $loc = 'train'
|
|
|
- $metka = 'oldtown'
|
|
|
- minut += 20
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 10: gt 'train_incidental', 'events'
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
|
|
|
- 'After 20 minutes, the train stops at old platform by the old town of Pushkin. Famous for its extensive park and old historic buildings, the locals are known to be eccentric but that adds to the charm.'
|
|
|
- act 'Get off the train':
|
|
|
- if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'train', 'oldtown'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
if $ARGS[0] = 'communal_pavlovsk':
|
|
|
$loc = 'pavtrainhall'
|
|
|
$metka = 'platform'
|
|
@@ -234,17 +206,7 @@ if $ARGS[0] = 'village_tickets':
|
|
|
'You don''t have enough money for this ticket.'
|
|
|
end
|
|
|
end
|
|
|
-
|
|
|
- act 'Buy a ticket to the old town (50 <b>₽</b>)':
|
|
|
- if money >= 50:
|
|
|
- money -= 50
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'village_oldtown'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
+
|
|
|
act 'Buy a ticket to Pavlovsk (75 <b>₽</b>)':
|
|
|
if money >= 75:
|
|
|
money -= 75
|
|
@@ -269,8 +231,6 @@ if $ARGS[0] = 'village_trains':
|
|
|
|
|
|
act 'Take a train to the communal village': gt 'train', 'village_communal'
|
|
|
|
|
|
- act 'Take a train to the old town': gt 'train', 'village_oldtown'
|
|
|
-
|
|
|
act 'Take a train to Pavlovsk': gt 'train', 'village_pavlovsk'
|
|
|
end
|
|
|
|
|
@@ -321,21 +281,6 @@ if $ARGS[0] = 'village_communal':
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'village_oldtown':
|
|
|
- $loc = 'train'
|
|
|
- $metka = 'oldtown'
|
|
|
- minut += 10
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
|
|
|
- 'After 10 minutes, the train stops at old platform by the old town of Pushkin. Famous for its extensive park and old historic buildings, the locals are known to be eccentric but that adds to the charm.'
|
|
|
- act 'Get off the train':
|
|
|
- if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'train', 'oldtown'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
if $ARGS[0] = 'village_pavlovsk':
|
|
|
$loc = 'pavtrainhall'
|
|
|
$metka = 'platform'
|
|
@@ -355,181 +300,6 @@ if $ARGS[0] = 'village_pavlovsk':
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-if $ARGS[0] = 'oldtown':
|
|
|
- *clr & cla
|
|
|
- $menu_loc = 'train'
|
|
|
- $menu_arg = 'oldtown'
|
|
|
- menu_off = 0
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
|
|
|
- 'A fairly modern railway platform. The old town of Pushkin is just a five minute walk away from here, on the other side of the road.'
|
|
|
-
|
|
|
- act 'Return to the road':minut += 15 & nroad = 15 & gt 'road'
|
|
|
- *nl
|
|
|
- if Trainpass_day > daystart:
|
|
|
- 'You have <<Trainpass_day - daystart>> days left on your train pass.'
|
|
|
- act 'Go to platforms': gt 'train', 'oldtown_trains'
|
|
|
- else
|
|
|
- act 'Buy a ticket': gt 'train', 'oldtown_tickets'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_tickets':
|
|
|
- $menu_loc = 'train'
|
|
|
- $menu_arg = 'oldtown_tickets'
|
|
|
- menu_off = 0
|
|
|
-
|
|
|
- act 'Leave the ticket office': gt 'train', 'oldtown'
|
|
|
-
|
|
|
- act 'Buy a ticket to St. Petersburg city center (125 <b>₽</b>)':
|
|
|
- if money >= 125:
|
|
|
- money -= 125
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'oldtown_centre'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
- act 'Buy a ticket to St. Petersburg city industrial area (100 <b>₽</b>)':
|
|
|
- if money >= 100:
|
|
|
- money -= 100
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'oldtown_ind'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
- act 'Buy a ticket to the old platform by the communal village (75 <b>₽</b>)':
|
|
|
- if money >= 75:
|
|
|
- money -= 75
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'oldtown_communal'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
- act 'Buy a ticket to the village of Gadukino (50 <b>₽</b>)':
|
|
|
- if money >= 50:
|
|
|
- money -= 50
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'oldtown_village'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
- act 'Buy a ticket to Pavlovsk (50 <b>₽</b>)':
|
|
|
- if money >= 50:
|
|
|
- money -= 50
|
|
|
- menu_off = 1
|
|
|
- gt 'train', 'oldtown_pavlovsk'
|
|
|
- else
|
|
|
- 'You don''t have enough money for this ticket.'
|
|
|
- end
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_trains':
|
|
|
- $menu_loc = 'train'
|
|
|
- $menu_arg = 'oldtown_trains'
|
|
|
- menu_off = 0
|
|
|
-
|
|
|
- act 'Leave the platform': gt 'train', 'oldtown'
|
|
|
-
|
|
|
- act 'Take a train to St. Petersburg city center': gt 'train', 'oldtown_centre'
|
|
|
-
|
|
|
- act 'Take a train to St. Petersburg city industrial area': gt 'train', 'oldtown_ind'
|
|
|
-
|
|
|
- act 'Take a train to the old platform by the communal village': gt 'train', 'oldtown_communal'
|
|
|
-
|
|
|
- act 'Take a train to the village of Gadukino': gt 'train', 'oldtown_village'
|
|
|
-
|
|
|
- act 'Take a train to Pavlovsk': gt 'train', 'oldtown_pavlovsk'
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_centre':
|
|
|
- $loc = 'cityTrain'
|
|
|
- $metka = 'inside'
|
|
|
- minut += 35
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) < 15: gt 'train', 'private'
|
|
|
- if rand(1, 100) < 30: gt 'train', 'Gopnik'
|
|
|
- if rand(1, 100) <= 10: gt 'train_incidental', 'events'
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
|
|
|
- 'After 35 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 train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'cityTrain', 'inside'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_ind':
|
|
|
- $loc = 'nordtrain'
|
|
|
- $metka = 'platform'
|
|
|
- minut += 30
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 10: gt 'train_incidental', 'events'
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
|
|
|
- 'After 30 minutes, the train stops at the St. Petersburg city industrial area station.'
|
|
|
- act 'Get off the train':
|
|
|
- if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'nordtrain', 'platform'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_communal':
|
|
|
- $loc = 'train'
|
|
|
- $metka = 'communal'
|
|
|
- minut += 20
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 10: gt 'train_incidental', 'events'
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
|
|
|
- 'After 20 minutes you arrive at an old railway platform near the communal village.'
|
|
|
- act 'Get off the train':
|
|
|
- if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'train', 'communal'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_village':
|
|
|
- $loc = 'train'
|
|
|
- $metka = 'village'
|
|
|
- minut += 10
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
|
|
|
- 'After 10 minutes, the train stops at the small station near the village of Gadukino.'
|
|
|
- act 'Get off the train':
|
|
|
- if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'train', 'village'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'oldtown_pavlovsk':
|
|
|
- $loc = 'pavtrainhall'
|
|
|
- $metka = 'platform'
|
|
|
- minut += 5
|
|
|
- menu_off = 1
|
|
|
- if rand(1, 100) <= 20: gt 'train_incidental', 'events'
|
|
|
- if rand(1, 100) <= 20: gt 'train', 'events'
|
|
|
- gs 'stat'
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
|
|
|
- 'After 5 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 train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
|
|
|
- gt 'pavtrainhall', 'platform'
|
|
|
- end
|
|
|
-end
|
|
|
|
|
|
if $ARGS[0] = 'events':
|
|
|
event_random = rand(15, 100)
|