//Eventy Pogodowe - te akurat są zmienione nazwy nie odpowiadaja ustawionej pogodzie, zmieniła mi się po drodze koncepcja
event weather1 updatevalues 0.0 __simulation.weather * 0.15 10200 endevent
event weather2 updatevalues 0.0 __simulation.weather * 0.25 8500 endevent
event weather3 updatevalues 0.0 __simulation.weather * 0.35 4450 endevent
event weather4 updatevalues 0.0 __simulation.weather * 0.45 2250 endevent
event weather5 updatevalues 0.0 __simulation.weather * 0.55 1850 endevent

event chmury_low multiple 0 none weather1 randomdelay 180 endevent
event chmury_med multiple 0 none weather2 randomdelay 180 endevent
event chmury_full multiple 0 none weather3 randomdelay 180 endevent
event deszcz_maly multiple 0 none weather4 randomdelay 180 endevent
event deszcz_duzy multiple 0 none weather5 randomdelay 180 endevent

//Dźwięki - deklaracje:
node 1200 0 meg_wolica sound -22754 3 -68637 radiotelefon/wrzosy/ic8310_wolica.wav endsound
event meg_wolica sound 7 meg_wolica 1 endevent

node 1200 0 meg_wolica2 sound -22755 2 -68637 radiotelefon/wrzosy/43411_wolica-dla_ic_8310.wav endsound
event meg_wolica2 sound 0 meg_wolica2 1 endevent

node 1000 0 meg_jerz sound 440 2 -37900 radiotelefon/wrzosy/ic8310_jerzynianka.wav endsound
event meg_jerz sound 3 meg_jerz 1 endevent

node -1 0 meg_debica1 sound -32 -1 -1200 radiotelefon/zapowiedz_zmiany.wav endsound
event meg_debica1 sound 8  meg_debica1 1  endevent

node -1 0 meg_tur1 sound -5000 5 22000 radiotelefon/wrzosy/ic8310_turow_koniec.wav endsound
event meg_tur1 sound 0  meg_tur1 1  endevent

//Radio deklaracje:=================================================
//Wolica-Arkadia: R1
//Arkadia-Nowa Ruda: R7
//Nowa Ruda-Dębica: R2
//Dębica-Turów: R5
//Turów-Sandomierz: R3

//Wolica - Arkadia R1
node -1 0 r1_przesz1 sound -22700 8 -68674 radiotelefon/przeszkadzajka7.wav endsound
event r1_przesz1 sound 2 r1_przesz1 1 1 endevent //r1

node -1 0 r1_przesz2 sound -22700 20 -68674 radiotelefon/przeszkadzajka20.wav endsound
event r1_przesz2 sound 10 r1_przesz2 1 1 endevent //r1

node -1 0 r1_piast1 sound -22700 9 -68674 radiotelefon/wjazd_podany1.wav endsound
event r1_piast1 sound 2 r1_piast1 1 1 endevent //r1

node -1 0 r1_piast2 sound -22700 10 -68674 radiotelefon/pospieszny.wav endsound
event r1_piast2 sound 2 r1_piast2 1 1 endevent //r1

//Arkadia - Nowa Ruda R7
node -1 0 r7_groszex1 sound -5500 0 -60940 radiotelefon/wjezdza_na_bok.wav endsound
event r7_groszex1 sound 10  r7_groszex1 1 7 endevent  //r7

node -1 0 r7_groszex2 sound -5500 2 -60940 radiotelefon/zwierzyniec/sm42-wystarczy.wav endsound
event r7_groszex2 sound 6  r7_groszex2 1 7 endevent  //r7

//N. Ruda - Debica R2

node -1 0 r2_jerz1 sound 470 0 -37150 radiotelefon/do_pol_godz.wav endsound
event r2_jerz1 sound 2  r2_jerz1 1 2 endevent  //r2

node -1 0 r2_jerz2 sound 472 1 -37150 radiotelefon/tor_zwolnic_manewry2.wav endsound
event r2_jerz2 sound 8  r2_jerz2 1 2 endevent  //r2

node -1 0 r2_kuj1 sound 880 1 -27000 radiotelefon/radio6.wav endsound
event r2_kuj1 sound 0  r2_kuj1 1 2 endevent  //r2

node -1 0 r2_kuj2 sound 880 1 -27000 radiotelefon/posp_po_lewo.wav endsound
event r2_kuj2 sound 16  r2_kuj2 1 2 endevent  //r2

node -1 0 r2_ryciny1 sound -580 0 -20200 radiotelefon/wrzosy/radio_14.flac endsound
event r2_ryciny1 sound 2  r2_ryciny1 1 2 endevent  //r2

node -1 0 r2_ryciny2 sound -580 1 -20200 radiotelefon/wrzosy/radio_13.flac endsound
event r2_ryciny2 sound 2  r2_ryciny2 1 2 endevent  //r2

node -1 0 r2_wrzosy1 sound -30 0 -7200 radiotelefon/linia053/l053_noc_ru_wjazdbok.wav endsound
event r2_wrzosy1 sound 2  r2_wrzosy1 1 2 endevent  //r2

node -1 0 r2_wrzosy2 sound -30 2 -7200 radiotelefon/linia053/l053_noc_tu_wjazdpodany.wav endsound
event r2_wrzosy2 sound 2  r2_wrzosy2 1 2 endevent  //r2

node -1 0 r2_wrzosy3 sound -30 3 -7200 radiotelefon/baltyk/baltow_manewr06.wav endsound
event r2_wrzosy3 sound 35  r2_wrzosy3 1 2 endevent  //r2

//Debica - Turow R5

node -1 0 r5_debica1 sound -32 0 -1200 radiotelefon/linia053/l053_poludnie_tu_sz1.wav endsound
event r5_debica1 sound 0  r5_debica1 1 5 endevent  //r5

node -1 0 r2_debica1 sound -32 1 -1200 radiotelefon/linia053/l053_poludnie_tu_sz1.wav endsound
event r2_debica1 sound 0  r2_debica1 1 2 endevent  //r2 dla pewności jakby nie zmienił kanału

node -1 0 r5_debica2 sound -32 2 -1200 radiotelefon/linia053/l053_wieczor_sw_wjazdpodany.wav endsound
event r5_debica2 sound 3  r5_debica2 1 5 endevent  //r5

node -1 0 r5_debica3 sound -32 3 -1200 radiotelefon/linia053/l053_wieczor_ze_wjazdbok.wav endsound
event r5_debica3 sound 3  r5_debica3 1 5 endevent  //r5

node -1 0 r5_debica4 sound -32 4 -1200 radiotelefon/bacznosc_przelot.wav endsound
event r5_debica4 sound 3  r5_debica4 1 5 endevent  //r5

node -1 0 r5_debica5 sound -32 5 -1200 radiotelefon/to_mozna_z_uporka.wav endsound
event r5_debica5 sound 3  r5_debica5 1 5 endevent  //r5

node -1 0 r5_debica6 sound -32 6 -1200 radiotelefon/w_perony.wav endsound
event r5_debica6 sound 25  r5_debica6 1 5 endevent  //r5

node -1 0 r5_podg1 sound -300 6 9940 radiotelefon/linia053/l053_poludnie_sw_sz1.wav endsound
event r5_podg1 sound 2  r5_podg1 1 5 endevent  //r5

node -1 0 r5_sw1 sound -300 6 12630 radiotelefon/sz_wygaslo.wav endsound
event r5_sw1 sound 0  r5_sw1 1 5 endevent  //r5

node -1 0 r5_sw2 sound -300 5 12630 radiotelefon/linia61/l61_bacznosc_elektrycy.wav endsound
event r5_sw2 sound 0  r5_sw2 1 5 endevent  //r5

node -1 0 r5_pp1 sound 130 0 17500 radiotelefon/linia053/l053_poludnie_pawlon_wjazdpodany.wav endsound
event r5_pp1 sound 3  r5_pp1 1 5 endevent  //r5

node -1 0 r5_pp2 sound 130 1 17500 radiotelefon/przelot_zrobiony.wav endsound
event r5_pp2 sound 3  r5_pp2 1 5 endevent  //r5

node -1 0 r5_tur1 sound -5000 0 22000  radiotelefon/linia053/l053_noc_dt_wjazdpodany.wav endsound
event r5_tur1 sound 3  r5_tur1 1 5 endevent  //r5

node -1 0 r5_tur2 sound -5000 1 22000  radiotelefon/linia053/l053_noc_tu_wjazdbok.wav endsound
event r5_tur2 sound 3  r5_tur2 1 5 endevent  //r5

node -1 0 r5_tur3 sound -5000 2 22000  radiotelefon/linia053/l053_wieczor_ru_przelot.wav endsound
event r5_tur3 sound 3  r5_tur3 1 5 endevent  //r5









//Scenariusz IC8310 - Eventy:
event onstart_ruch_osobowy multiple 3 none //wjazd osobowych 43411-33090 
wp_a_s2 wob_A_s4 wob_M_s13a woa_zwr105- woa_zwr106- woa_zwr102- woa_zwr1+ woa_zwr111- woa_zwr112-//wjazd i droga dla 43411
potok_d_s2 potok_102+ woa_z1_s13 woa_zwr121-  woa_zwr120- woa_zwr117- woa_zwr118+  //wjazd i droga dla 33090
meg_wolica2 r1_przesz2
endevent

event final_2t849:event2 multiple 20 none //droga dla 8310
woa_zwr114+ woa_zwr113- woa_zwr112+ woa_zwr101- woa_zwr107- woa_zwr108- woa_zwr105+ woa_zwr106+ woa_zwr102+ woa_zwr1- w_zwr111+ w_zwr2+ 
8310-sem-woa r1_przesz1 chmury_med
randomdelay 45 endevent

event 8310-sem-woa multiple 5 none
wolica_T2_s13a 8310-s-w-d zanik_pwr1
randomdelay 12 endevent

event 8310-s-w-d multiple 6 none
wolica_T2_s11a wob_f_s9
meg_wolica
tem2_z_towarowej
randomdelay 5 endevent

event final_2t731:event1 multiple 0 none //75% że poda się od razu
wp_c_s2 wolica_zwr3+ wolica_zwr2+ up_piast
wob_f_s2 r1_piast1 condition propability 0.75 endevent

event final_2t652:event1 multiple 30 piast_mem //jak nie poda się od razu
wp_c_s2 wolica_zwr3+ wolica_zwr2+ r1_piast1
condition memcompare * * 0 endevent

node -1 0 piast_mem memcell 1.0 1.0 1.0 * 0 0 none endmemcell //* * 0 nie podane od razu
 event up_piast updatevalues 0.0 piast_mem * * 1 endevent // * * 1 podane od razu



event final_2t263:event1 multiple 20 none
zdroj_c_s2
3821_przeloty
randomdelay 80 endevent

event 3821_przeloty multiple 5 none //EP09_3821 od Dek do WoB + Ar_8310
dek_A_s2 ar_a_s2 zdroj_A_s2 wp_a_s9 arkadia_8310 endevent

event arkadia_8310 multiple 90 none
arkadia_z2- arkadia_z1- ar_e_s10a chmury_full
randomdelay 60 endevent

event tem2_z_towarowej multiple 40 none //wyjazd Tem2 z Towarowej + RT1
wt_d_s5
condition propability 0.8 endevent

event final_2t452:event1 multiple 0 none r1_piast2 endevent

/*Mostki Groszex: wyjazd SM42 z Mokrej + wjazd do Groszexu 
Eventlauncher na 16:13 + losowo 4 minuty spóźnienia
*/

node -1 0 sm42_mok-grx_launcher eventlauncher 1 9 9 -1 none 1612 sm42_mok-grx none  end //16:12 z Mokrej rusza do Groszexu SM42 z wagonami na bocznicę.

event sm42_mok-grx multiple 0 none
m_f_s2 groszex_A_s13 groszex_r1- groszex_r2- deszcz_maly 
randomdelay 240 endevent

event grx_rozjazdy:free multiple 25 none
groszex_r1+ groszex_r2+ groszex_B_s2 m_N_s2 m_c_s2 r7_groszex2 zanik_pwr2 randomdelay 30 endevent

event grx113:event1 multiple 0 none
r7_groszex1  //RT na wjazd do Grx
endevent

node -1 0 drez_rakowice_launcher eventlauncher 1 9 7 -1 none 1625 drezyna_ruszaj none  end //16:25 z Rakowic rusza drezyna do Nurzca.

//Nurzec: wjazd dla Drezyny
event drezyna_ruszaj multiple 0 none
rakowice_C_s2 nu_b_sr2 nu_spb_sp2 nu_tob_os2 nu_toe_os1 nu_toa_os4 nu_spA_sp4 nu_A_sr3 nu_tof_os1 nurzec_r2- 
randomdelay 220 endevent

event 1t_track161:event2 multiple 30 none //przelot przez Rakowice dla IC8310 + wyjazd dla R-43412 + NR 8310
nurzec_r2+ nu_e_sr2 nu_toe_os2 rakowice_f_s2 rakowice_A_s2 je_g4_s2
nr_e_s10a nr_101- nr_6-
randomdelay 10 endevent

event nowaruda013:event1 multiple 30 none //8310 zwolnił szlak, wjazd dla osobowego
nr_a_s10a nr_1- nr_2- rakowice_e_s5 deszcz_duzy
randomdelay 50 endevent

event 1t_track248:event2 multiple 30 none //osobowy zwolnił szlak, przelot dla Innf
nr_1+ nr_2+ nr_101+ nr_6+ nr_a_s2 
endevent

event innof1_wyjazd multiple 0 none
je_s_s10 je_35- je_34- je_39- je_40- je_43- je_44- je_45+ je_g4_s2
randomdelay 2 endevent

event 2991_izo:free multiple 30 je_mem //tylko raz, wywoływany przez IC-8310 jak wjeżdża w peron
wyjazd_jerzynianka_ruch je_up1
meg_jerz
condition memcompare * 1 1 endevent

 node -1 0 je_mem memcell  99 99 0 name 1 1 none endmemcell 
 event je_up1 updatevalues 1 je_mem * 2 2 endevent 
 
 
 
event track_wr543:event2 multiple 10 none //wjazd do Jerzynianki, wyjazd InnoFreight
je_A_s5 innof1_wyjazd r2_jerz1
randomdelay 20 endevent

event wyjazd_jerzynianka_ruch multiple 25 none //xdd
je_j_s5 je_o_ms2 je_tm10_ms2 je_tm12_ms2
je_43+ je_44+ je_39+ je_40+ //8310
je_32+ je_31+ je_33- je_58+ je_47- je_48- //sm42+wagony
je_lotos_manewr
semy_8310_dalej deszcz_maly r2_jerz2
randomdelay 25 endevent

event je_lotos_manewr multiple 45 none
je_50- je_45- je_24- je_23- je_36- je_n_ms2 //lotos
endevent



event semy_8310_dalej multiple 7 je_mem2 //wyjazd z Jerzynianki + manewry z Terminala //tylko raz
je_L2_s2 je_j_s2
je_tm3_ms2 je_wk_9o //ms2 dla sm42 Z TERMINALA
je_11- je_12+
je2_up1
condition memcompare * 1 1 endevent

 node -1 0 je_mem2 memcell  99 99 1 name 1 1 none endmemcell 
 event je2_up1 updatevalues 1 je_mem2 * 2 2 endevent


//Kujacin: wyjazd osobówki Elf: wywołuje IC8310 w okolicy p.o. Pole
event wrz_tor2315:event1 multiple 20 none
kujacin_h_s2 je_e_s4 je_u_s13 je_24+ je_45- je_50+ 
randomdelay 35 endevent

event wrz_tor2115:event2 multiple 20 none
kujacin_7- kujacin_6- kujacin_s_s13 chmury_full
randomdelay 20 endevent

event 2024_izo:free multiple 40 none //wyjazd z Ku + przelot Ry
kujacin_c_s10 kujacin_4- kujacin_3- r2_kuj1 r2_kuj2
losujryc_przelot //losowanie wariantu w Rycinach 
losujwrz_przelot // j/w ale Wrzosy
randomdelay 45 endevent

event wrz_tor1644:event1 multiple 3 none ryc_przelot chmury_med zanik_pwr3 endevent


node -1 0 memryc_przelot memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event upryc_przelot updatevalues 0.0 memryc_przelot * 1 1 endevent
 event losujryc_przelot multiple 0.0 none upryc_przelot condition propability 0.5 endevent
 event ryc_przelot multiple 0.0 none mul1ryc_przelot mul2ryc_przelot endevent
 event mul1ryc_przelot multiple 0.0 memryc_przelot ryc_prosto condition memcompare * 0 0 endevent
 event mul2ryc_przelot multiple 0.0 memryc_przelot ryc_nabok condition memcompare * 1 1 endevent
 
 event ryc_prosto multiple 5 none
 ryciny_x_s4 ryciny_d_s10 ryciny_d_w24 ryciny_2- ryciny_1- r2_ryciny2
 randomdelay 10 endevent
 
  event ryc_nabok multiple 10 none
  ryciny_x_s10 ryciny_013- ryciny_011- ryciny_009+ ryciny_c_s2 ryciny_c_w24 r2_ryciny1
 randomdelay 15 endevent
 
 event wrz_tor1073:event1 multiple 1 none //hipolit + wrzosy przelot
 hipolit_d_s2 
 randomdelay 3 endevent
 
 
 
 //Wrzosy 2 warianty
 node -1 0 memwrz_przelot memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event upwrz_przelot updatevalues 0.0 memwrz_przelot * 1 1 endevent
 event losujwrz_przelot multiple 0.0 none upwrz_przelot condition propability 0.5 endevent
 event wrz_przelot multiple 0.0 none mul1wrz_przelot mul2wrz_przelot zanik_pwr3w endevent
 event mul1wrz_przelot multiple 0.0 memwrz_przelot wrz_prosto condition memcompare * 0 0 endevent
 event mul2wrz_przelot multiple 0.0 memwrz_przelot wrz_nabok condition memcompare * 1 1 endevent
 
 event wrz_prosto multiple 0 none
 ter_D_s4 ter_j_s10 t_zwr003-  t_zwr1- r2_wrzosy2 endevent
 
  event wrz_nabok multiple 0 none
 ter_D_s10 t_zwr020- t_zwr019- ter_H_s2 r2_wrzosy1 endevent
 
 event wrz_tor_wyjazd070:event1 multiple 5 none 
 wrz_przelot 
 ter_Tm6_ms2 wk_7o  t_zwr023- t_zwr024- r2_wrzosy3 //manewr SM42
 ter_Tm3_ms2 wk_3o t_zwr008- ter_k2_ms2 t_zwr034- t_zwr035-   //manewr EN57AKL
 losujdeb_wjazd //losowanie wariantu wjazdu do Debicy
 losujw_d_l //losowanie wariantu wyjazdu z Debicy
 randomdelay 10 endevent
 
 
 
 
 
 
 
 //Dębica:=======================================================================
 event tor4159:event1 multiple 5 none
 deb_wjazd chmury_low
 randomdelay 20 endevent
 
 //2 warianty wjazdu: na S5 lub S13
 node -1 0 memdeb_wjazd memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event updeb_wjazd updatevalues 0.0 memdeb_wjazd * 1 1 endevent
 event losujdeb_wjazd multiple 0.0 none updeb_wjazd condition propability 0.3 endevent
 event deb_wjazd multiple 0.0 none mul1deb_wjazd mul2deb_wjazd endevent
 event mul1deb_wjazd multiple 0.0 memdeb_wjazd deb_prosto condition memcompare * 0 0 endevent //70%
 event mul2deb_wjazd multiple 0.0 memdeb_wjazd deb_bok condition memcompare * 1 1 endevent //30%
 
 
 
 event deb_prosto multiple 0 none //wjazd na prosto
 debica_b_s5 r5_debica2
 endevent
 
  event deb_bok multiple 0 none //wjazd na bok
 debica_b_s13 test_zwr43- test_zwr48- test_zwr31- test_zwr32-  r5_debica3
 endevent
 
 //główny event wyjazdu
 event tor2040:event1 multiple 90 none 
 db_wyjazd_bok db_wyjazd_prosto manewry_en57 towarowy_debica2 meg_debica1  losujkrap_podg losujswoszowice_wygas losujpp_wjazd
 deb_tur_rrcrossing_close //event zamykania przejazdów Dębica - Turów
 endevent
 
 
 event db_wyjazd_bok multiple 25 memdeb_wjazd
 zwr033- zwr030- zwr015- zwr020+ zwr019+ db_bok_sem towarowy_debica1
 condition memcompare * 1 1 endevent
 
 event db_bok_sem multiple 10 none
 debica_m_s10 randomdelay 20 endevent


  event db_wyjazd_prosto multiple 35 memdeb_wjazd
 wyjazd_debica_losowy zwr020+ zwr019+ towarowy_debica1
 condition memcompare * 0 0 endevent


 node -1 0 memw_d_l memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event upw_d_l updatevalues 0.0 memw_d_l * 1 1 endevent
 event losujw_d_l multiple 0.0 none upw_d_l condition propability 0.35 endevent
 event wyjazd_debica_losowy multiple 0.0 none mul1w_d_l mul2w_d_l randomdelay 35 endevent
 event mul1w_d_l multiple 0.0 memw_d_l debica_L_s2 condition memcompare * 0 0 endevent //65%
 event mul2w_d_l multiple 38.0 memw_d_l debica_L_s2 condition memcompare * 1 1 endevent //35%
 
 event debica_L_zastepczy multiple 0 none
r2_debica1 r5_debica1 //radio na 2 kanały jakby nie zmienił
L_sz1_debica endevent
event L_sz1_debica multiple 5 none debica_L_sz1 randomdelay 14 endevent


event towarowy_debica1 multiple 0 none //przelot towarowego EU07
debica_p_s2 debica_d_s2 r5_debica4 randomdelay 10 endevent

event towarowy_debica2 multiple 0 none //wjazd ET41 
test_zwr26- debica_o_s13 randomdelay 20 endevent

event manewry_en57 multiple 10 memdeb_wjazd //wykonają się tylko jeśli wjedziemy na wprost
debica_tm18_ms2 test_zwr25- r5_debica5 r5_debica6
condition memcompare * 0 0 endevent

//Krapikowik semafor lub sz1
node -1 0 memkrap_podg memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event upkrap_podg updatevalues 0.0 memkrap_podg * 1 1 endevent
 event losujkrap_podg multiple 0.0 none upkrap_podg condition propability 0.2 endevent
 event krap_podg multiple 0.0 none mul1krap_podg mul2krap_podg endevent
 event mul1krap_podg multiple 1.0 memkrap_podg odstep_c_s5 krap_dalej1 condition memcompare * 0 0 endevent //80%
 event mul2krap_podg multiple 1.0 memkrap_podg krap_sz1 condition memcompare * 1 1 endevent //20%

event tor3112:event2 multiple 5 none
krap_podg
endevent

event krap_dalej1 multiple 20 none
odstep_c_s2 swoszowice_b_s2 swoszowice_k_s2 endevent

event krap_dalej2 multiple 7 none
swoszowice_b_s2 swoszowice_k_s2 endevent

event krap_sz1 multiple 5 none
r5_podg1 podg_podaj_sz1 endevent

event podg_podaj_sz1 multiple 10 none
odstep_C_sz1 krap_dalej2 endevent


//Swoszowice - wygasnięcie semafora wyjazdowego 14%
event tor2297:event2 multiple 3 none
swoszowice_wygas endevent


node -1 0 memswoszowice_wygas memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event upswoszowice_wygas updatevalues 0.0 memswoszowice_wygas * 1 1 endevent
 event losujswoszowice_wygas multiple 0.0 none upswoszowice_wygas condition propability 0.86 endevent
 event swoszowice_wygas multiple 0.0 none mul1swoszowice_wygas mul2swoszowice_wygas endevent
 event mul1swoszowice_wygas multiple 0.0 memswoszowice_wygas swoszowice_k_s1 sw_wyg condition memcompare * 0 0 endevent
 event mul2swoszowice_wygas multiple 0.0 memswoszowice_wygas r5_sw2 condition memcompare * 1 1 endevent

 event sw_wyg multiple 4 none
 r5_sw1 sw_k_zastepczy endevent
 
 event sw_k_zastepczy multiple 4 none swoszowice_k_sz1 endevent
 
 //Psie Pole:
 
 event tor2730:event2 multiple 5 none
 pp_wjazd tunel_e_s2 psiepole_k_s5 losujtur_wjazd randomdelay 10 endevent
 
 node -1 0 mempp_wjazd memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event uppp_wjazd updatevalues 0.0 mempp_wjazd * 1 1 endevent
 event losujpp_wjazd multiple 0.0 none uppp_wjazd condition propability 0.4 endevent
 event pp_wjazd multiple 0.0 none mul1pp_wjazd mul2pp_wjazd endevent
 event mul1pp_wjazd multiple 0.0 mempp_wjazd psiepole_b_s2 psiepole_g_s2 r5_pp2 condition memcompare * 0 0 endevent //przelot 60%
 event mul2pp_wjazd multiple 0.0 mempp_wjazd pp_trzymaj condition memcompare * 1 1 endevent //tylko wjazd 40%
 
 event pp_trzymaj multiple 5 none
 psiepole_b_s5 r5_pp1 endevent
 
 event tor2817:event2 multiple 45 mempp_wjazd
 pp_wyj_podaj
 condition memcompare * 1 1 endevent
 
 event pp_wyj_podaj multiple 0 none psiepole_g_s2 randomdelay 45 endevent
 
 
 //Turów - wjazd na S5 lub S13:
 node -1 0 memtur_wjazd memcell 1.0 1.0 1.0 * 0 0 none endmemcell
 event uptur_wjazd updatevalues 0.0 memtur_wjazd * 1 1 endevent
 event losujtur_wjazd multiple 0.0 none uptur_wjazd condition propability 0.5 endevent
 event tur_wjazd multiple 0.0 none mul1tur_wjazd mul2tur_wjazd endevent
 event mul1tur_wjazd multiple 0.0 memtur_wjazd tur_prosto condition memcompare * 0 0 endevent
 event mul2tur_wjazd multiple 0.0 memtur_wjazd tur_bok condition memcompare * 1 1 endevent
 
 
event tor0036:event2 multiple 5 none
tur_wjazd tur_towar randomdelay 10 endevent

event tur_prosto multiple 0 none
tunel_b_s5 r5_tur1 endevent

event tur_bok multiple 0 none
tunel_b_s13 zwr70- zwr71- r5_tur2 endevent

event tur_towar multiple 40 none
tunel_m_s2 anglik14bd tunel_e_s2 r5_tur3 endevent

event tor0185:event1 multiple 30 none meg_tur1 endevent
