123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751 |
- # train
- !2021/05/06
- !!============================================!!
- !! !!
- !! Train Stations !!
- !! !!
- !!============================================!!
- !!-----------------------!!
- !! !!
- !! communal !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'communal':
- gs 'shortgs', 'setloc', 'train', 'communal'
- $location_type = 'public_outdoors'
- menu_off = 0
- 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.'
- *nl
- gs 'transport_functions', 'set_train_wait_time', 'communal'
- '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'
- if transportVars['trainpass_day'] > daystart:
- *nl
- func('transport_functions', 'display_trainpass_time')
- act 'Go to platforms': gt 'train', 'communal_trains'
- else
- act 'Buy a ticket': gt 'train', 'communal_tickets'
- end
- elseif $ARGS[0] = 'communal_tickets':
- gs 'shortgs', 'setloc', 'train', 'communal_tickets'
- menu_off = 0
- act 'Leave the ticket office': gt 'train', 'communal'
- act 'Look at the train schedule':
- *clr & cla
- gs 'transport_functions', 'display_train_schedule'
- *nl
- *nl
- gs 'transport_functions', 'display_train_schedule', 'pc'
- act 'Stop looking at the schedule': gt 'train', 'communal_tickets'
- end
- gs 'transport_functions', 'buy_train_ticket', 'communal'
- elseif $ARGS[0] = 'communal_trains':
- gs 'shortgs', 'setloc', 'train', '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(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'
- act 'Look at the train schedule':
- *clr & cla
- gs 'transport_functions', 'display_train_schedule'
- *nl
- *nl
- gs 'transport_functions', 'display_train_schedule', 'pc'
- act 'Stop looking at the schedule': gt 'train', 'communal_trains'
- end
- 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 industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''ind'')>>)': gt 'train', 'communal_ind'
- act 'Take a train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''gadukino'')>>)': gt 'train', 'communal_gadukino'
- act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''communal'', ''pavlovsk'')>>)': gt 'train', 'communal_pavlovsk'
- end
- !!-----------------------!!
- !! !!
- !! gadukino !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'gadukino':
- gs 'shortgs', 'setloc', 'train', 'gadukino'
- $location_type = 'public_outdoors'
- display_bb = 0
- menu_off = 0
-
- *clr & cla
- 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.'
- *nl
- gs 'transport_functions', 'set_train_wait_time', 'gadukino'
- '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'
- if transportVars['trainpass_day'] > daystart:
- *nl
- func('transport_functions', 'display_trainpass_time')
- act 'Go to platforms': gt 'train', 'gadukino_trains'
- else
- act 'Buy a ticket': gt 'train', 'gadukino_tickets'
- end
- elseif $ARGS[0] = 'gadukino_tickets':
- gs 'shortgs', 'setloc', 'train', 'gadukino_tickets'
- menu_off = 0
-
- act 'Leave the ticket office': gt 'train', 'gadukino'
- act 'Look at the train schedule':
- *clr & cla
- gs 'transport_functions', 'display_train_schedule', 'pc'
- *nl
- *nl
- gs 'transport_functions', 'display_train_schedule'
- act 'Stop looking at the schedule': gt 'train', 'gadukino_tickets'
- end
- gs 'transport_functions', 'buy_train_ticket', 'gadukino', 'pc'
- elseif $ARGS[0] = 'gadukino_trains':
- gs 'shortgs', 'setloc', 'train', 'gadukino_trains'
- menu_off = 0
- gs 'transport_functions', 'set_train_wait_time', 'gadukino'
- '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'
- act 'Look at the train schedule':
- *clr & cla
- gs 'transport_functions', 'display_train_schedule', 'pc'
- *nl
- *nl
- gs 'transport_functions', 'display_train_schedule'
- act 'Stop looking at the schedule': gt 'train', 'gadukino_tickets'
- end
- act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''pavlovsk'')>>)': gt 'train', 'gadukino_pavlovsk'
- act 'Take a train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''communal'')>>)': gt 'train', 'gadukino_communal'
- act 'Take a train to St. Petersburg city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''ind'')>>)': gt 'train', 'gadukino_ind'
- act 'Take a train to St. Petersburg city center (<<func(''transport_functions'', ''display_train_timecost'', ''gadukino'', ''center'')>>)': gt 'train', 'gadukino_center'
- end
- !!============================================!!
- !! !!
- !! Train Transport !!
- !! !!
- !!============================================!!
- !!-----------------------!!
- !! !!
- !! center !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'center_ind':
- $loc = 'city_industrial_train'
- $loc_arg = 'inside'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'ind') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 9:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 23:
- gt 'train_events', 'private'
- elseif temp_transportVars['rand'] <= 31:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'center_communal':
- $loc = 'train'
- $loc_arg = 'communal'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'communal') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 19:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'center_gadukino':
- $loc = 'train'
- $loc_arg = 'gadukino'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 19:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
- '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
- elseif $ARGS[0] = 'center_pavlovsk':
- $loc = 'pav_train_hall'
- $loc_arg = ''
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'center', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 20:
- gt 'train_events', 'private'
- elseif temp_transportVars['rand'] <= 45:
- gt 'train_events', 'Gopnik'
- elseif temp_transportVars['rand'] <= 51:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
- '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
- end
- end
- !!-----------------------!!
- !! !!
- !! industrial !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'ind_center':
- $loc = 'city_train'
- $loc_arg = 'start'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'center') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 9:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 23:
- gt 'train_events', 'private'
- 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 <<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'
- gt $loc, $loc_arg
- end
- elseif $ARGS[0] = 'ind_communal':
- $loc = 'train'
- $loc_arg = 'communal'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'communal') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 17:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'ind_gadukino':
- $loc = 'train'
- $loc_arg = 'gadukino'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 19:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
- '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
- elseif $ARGS[0] = 'ind_pavlovsk':
- $loc = 'pav_train_hall'
- $loc_arg = ''
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'ind', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 20:
- gt 'train_events', 'private'
- elseif temp_transportVars['rand'] <= 45:
- gt 'train_events', 'Gopnik'
- elseif temp_transportVars['rand'] <= 51:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
- '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
- end
- end
- !!-----------------------!!
- !! !!
- !! communal !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'communal_center':
- $loc = 'city_train'
- $loc_arg = 'start'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'center') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 19:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'communal_ind':
- $loc = 'city_industrial_train'
- $loc_arg = 'inside'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'ind') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 16:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'communal_gadukino':
- $loc = 'train'
- $loc_arg = 'gadukino'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'gadukino') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 16:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
- '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
- elseif $ARGS[0] = 'communal_pavlovsk':
- $loc = 'pav_train_hall'
- $loc_arg = ''
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'communal', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 20:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 28:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
- '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
- !!-----------------------!!
- !! !!
- !! gadukino !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'gadukino_center':
- $loc = 'city_train'
- $loc_arg = 'start'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'center') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 24:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'gadukino_ind':
- $loc = 'city_industrial_train'
- $loc_arg = 'inside'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'ind') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 24:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'gadukino_communal':
- $loc = 'train'
- $loc_arg = 'communal'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'communal') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 16:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'gadukino_pavlovsk':
- $loc = 'pav_train_hall'
- $loc_arg = ''
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'gadukino', 'pavlovsk') + temp_transportVars['train_wait_pavlovsk']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 20:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 28:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
- '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
- end
- end
- !!-----------------------!!
- !! !!
- !! pavlovsk !!
- !! !!
- !!-----------------------!!
- if $ARGS[0] = 'pavlovsk_center':
- $loc = 'city_train'
- $loc_arg = 'start'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'center') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 20:
- gt 'train_events', 'private'
- elseif temp_transportVars['rand'] <= 45:
- gt 'train_events', 'Gopnik'
- elseif temp_transportVars['rand'] <= 55:
- gt 'train_events', 'weed'
- elseif temp_transportVars['rand'] <= 61:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'pavlovsk_ind':
- $loc = 'city_industrial_train'
- $loc_arg = 'inside'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'ind') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 6:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 20:
- gt 'train_events', 'private'
- elseif temp_transportVars['rand'] <= 45:
- gt 'train_events', 'Gopnik'
- elseif temp_transportVars['rand'] <= 51:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'pavlovsk_communal':
- $loc = 'train'
- $loc_arg = 'communal'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'communal') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 38:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
- '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
- end
- elseif $ARGS[0] = 'pavlovsk_gadukino':
- $loc = 'train'
- $loc_arg = 'gadukino'
- $location_type = 'public_indoors'
- menu_off = 1
- gs 'transport_functions', 'set_train_wait_time'
- temp_transportVars['timecost'] = func('transport_functions', 'get_train_timecost', 'pavlovsk', 'gadukino') + temp_transportVars['train_wait_center']
- minut += temp_transportVars['timecost']
- gs 'stat'
- temp_transportVars['rand'] = rand(1, 100)
- if temp_transportVars['rand'] <= 10:
- gt 'train_incidental', 'events'
- elseif transportVars['train_event_day'] ! daystart:
- if temp_transportVars['rand'] <= 19:
- gt 'train_events', 'events'
- end
- end
- '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
- '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 ---------------------------------
|