123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- # food_menu
- !!pcs_drank and pcs_ate variables track how much Sveta consumes each day. Vars are reset each day.
- !!food_loc returns food and beverage menus back to the food_menu.
- !!How to use the food_menu location in a mod
- !!Step 1: set up $_eat and $_drink in the mod
- !!Step 2: add the following three lines to the mod:
- !!*clr & cla
- !!killvar '$_drink'
- !!killvar '$_eat'
- !!Step 3: call your own $_eat and $_drink afterwards
- !!Step 4: call this location with gs 'food_menu', 'mod'
- menu_off = 1
- gs 'themes', 'food_menu'
- if $ARGS[0] ! 'mod':
- *clr & cla
- food_loc = 1
- killvar '$_drink'
- killvar '$_eat'
- end
- act 'Return':
- killvar 'food_loc'
- minut += 5
- gt $loc, $metka
- end
- if $loc = 'burger':
- '<center><b><font color="maroon">Diner Bystroeshka</font></b></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/menus/burger.jpg"</center><br>'
- !'<center><img <<$set_imgh>> src="images/shared/drinks/dinerdrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Onion Rings'
- $_eat['0,type'] = 'onring'
- $_eat['0,price'] = 80
- $_eat['1,name'] = 'Vegie Burger'
- $_eat['1,type'] = 'vegburg'
- $_eat['1,price'] = 240
- $_eat['2,name'] = 'Turkey Burger'
- $_eat['2,type'] = 'turburg'
- $_eat['2,price'] = 260
- $_eat['3,name'] = 'Battered Fish & Fries'
- $_eat['3,type'] = 'batfish'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Cheeseburger & Fries'
- $_eat['4,type'] = 'cheburg'
- $_eat['4,price'] = 310
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 55
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 70
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 110
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 120
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 180
- elseif $loc = 'gkafe':
- '<center><b><font color="maroon">Borislav''s cafe</font></b></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/menus/borislav.jpg"</center><br>'
- !'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
- if storyline = 1 and home_owned[2] = 1:
- $_eat['0,name'] = 'Vegetarian Piroshki'
- $_eat['0,type'] = 'pirosh'
- $_eat['0,price'] = 'Free'
- $_eat['1,name'] = 'Herring Blini'
- $_eat['1,type'] = 'blini'
- $_eat['1,price'] = 'Free'
- $_eat['2,name'] = 'Golubtsy'
- $_eat['2,type'] = 'golub'
- $_eat['2,price'] = 'Free'
- $_eat['3,name'] = 'Pozharsky Cutlets'
- $_eat['3,type'] = 'pozhar'
- $_eat['3,price'] = 'Free'
- $_eat['4,name'] = 'Rueben Sandwich'
- $_eat['4,type'] = 'reuben'
- $_eat['4,price'] = 'Free'
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 'Free'
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 'Free'
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 'Free'
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 'Free'
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 'Free'
- else
- $_eat['0,name'] = 'Vegetarian Piroshki'
- $_eat['0,type'] = 'pirosh'
- $_eat['0,price'] = 100
- $_eat['1,name'] = 'Herring Blini'
- $_eat['1,type'] = 'blini'
- $_eat['1,price'] = 190
- $_eat['2,name'] = 'Golubtsy'
- $_eat['2,type'] = 'golub'
- $_eat['2,price'] = 210
- $_eat['3,name'] = 'Pozharsky Cutlets'
- $_eat['3,type'] = 'pozhar'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Rueben Sandwich'
- $_eat['4,type'] = 'reuben'
- $_eat['4,price'] = 340
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 80
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 120
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 130
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 200
- end
- elseif $loc = 'brothel':
- '<center><h3>Hotel Bar</h3></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/drinks/bardrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Toasted rye snacks'
- $_eat['0,type'] = 'ryesna'
- $_eat['0,price'] = 30
- $_eat['1,name'] = 'Bowl of flavoured crisps'
- $_eat['1,type'] = 'crisps'
- $_eat['1,price'] = 40
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Beer on tap'
- $_drink['1,type'] = 'bev_bee'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Vodka'
- $_drink['2,type'] = 'bev_vod'
- $_drink['2,price'] = 120
- $_drink['3,name'] = 'Scotch'
- $_drink['3,type'] = 'bev_sco'
- $_drink['3,price'] = 140
- $_drink['4,name'] = 'Glass of Wine'
- $_drink['4,type'] = 'bev_win'
- $_drink['4,price'] = 160
- $_drink['5,name'] = 'Black Russian'
- $_drink['5,type'] = 'bev_bla'
- $_drink['5,price'] = 250
- if hotelWhore = 1:
- $_drink['6,name'] = 'Blue-blooded Russian'
- $_drink['6,type'] = 'bev_bbr'
- $_drink['6,price'] = 'Free'
- end
- elseif $loc = 'cafe_parco':
- '<center><h4><font color="maroon">Cafe "Del Parco"</font></h4></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/menus/del_parco.jpg"</center><br>'
- !'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Vegetarian Piroshki'
- $_eat['0,type'] = 'pirosh'
- $_eat['0,price'] = 100
- $_eat['1,name'] = 'Herring Blini'
- $_eat['1,type'] = 'blini'
- $_eat['1,price'] = 190
- $_eat['2,name'] = 'Golubtsy'
- $_eat['2,type'] = 'golub'
- $_eat['2,price'] = 210
- $_eat['3,name'] = 'Pozharsky Cutlets'
- $_eat['3,type'] = 'pozhar'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Rueben Sandwich'
- $_eat['4,type'] = 'reuben'
- $_eat['4,price'] = 340
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 80
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 120
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 130
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 200
- elseif $loc = 'kafe':
- '<center><b><font color="maroon">The Roadhouse</font></b></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/menus/roadhouse.jpg"</center><br>'
- !'<center><img <<$set_imgh>> src="images/shared/drinks/dinerdrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Onion Rings'
- $_eat['0,type'] = 'onring'
- $_eat['0,price'] = 80
- $_eat['1,name'] = 'Vegie Burger'
- $_eat['1,type'] = 'vegburg'
- $_eat['1,price'] = 240
- $_eat['2,name'] = 'Turkey Burger'
- $_eat['2,type'] = 'turburg'
- $_eat['2,price'] = 260
- $_eat['3,name'] = 'Battered Fish & Fries'
- $_eat['3,type'] = 'batfish'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Cheeseburger & Fries'
- $_eat['4,type'] = 'cheburg'
- $_eat['4,price'] = 310
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 55
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 70
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 110
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 120
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 180
- elseif $loc = 'lakecafe':
- '<center><B><font color=maroon>The Lake Cafe</font></B></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Vegetarian Piroshki'
- $_eat['0,type'] = 'pirosh'
- $_eat['0,price'] = 100
- $_eat['1,name'] = 'Herring Blini'
- $_eat['1,type'] = 'blini'
- $_eat['1,price'] = 190
- $_eat['2,name'] = 'Golubtsy'
- $_eat['2,type'] = 'golub'
- $_eat['2,price'] = 210
- $_eat['3,name'] = 'Pozharsky Cutlets'
- $_eat['3,type'] = 'pozhar'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Rueben Sandwich'
- $_eat['4,type'] = 'reuben'
- $_eat['4,price'] = 340
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 80
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 120
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 130
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 200
- elseif $loc = 'liamelkafe':
- '<center><B><font color=maroon>Tiny Cafe</font></B></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Onion Rings'
- $_eat['0,type'] = 'onring'
- $_eat['0,price'] = 80
- $_eat['1,name'] = 'Vegie Burger'
- $_eat['1,type'] = 'vegburg'
- $_eat['1,price'] = 240
- $_eat['2,name'] = 'Turkey Burger'
- $_eat['2,type'] = 'turburg'
- $_eat['2,price'] = 260
- $_eat['3,name'] = 'Battered Fish & Fries'
- $_eat['3,type'] = 'batfish'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Cheeseburger & Fries'
- $_eat['4,type'] = 'cheburg'
- $_eat['4,price'] = 310
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 80
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 120
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 130
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 200
- elseif $loc = 'ParkKafe':
- '<center><B><font color=maroon>Park Cafe</font></B></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Vegetarian Piroshki'
- $_eat['0,type'] = 'pirosh'
- $_eat['0,price'] = 100
- $_eat['1,name'] = 'Herring Blini'
- $_eat['1,type'] = 'blini'
- $_eat['1,price'] = 190
- $_eat['2,name'] = 'Golubtsy'
- $_eat['2,type'] = 'golub'
- $_eat['2,price'] = 210
- $_eat['3,name'] = 'Pozharsky Cutlets'
- $_eat['3,type'] = 'pozhar'
- $_eat['3,price'] = 290
- $_eat['4,name'] = 'Rueben Sandwich'
- $_eat['4,type'] = 'reuben'
- $_eat['4,price'] = 340
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Kvass'
- $_drink['1,type'] = 'bev_kva'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Juice'
- $_drink['2,type'] = 'bev_jui'
- $_drink['2,price'] = 80
- $_drink['3,name'] = 'Spiced Tea'
- $_drink['3,type'] = 'bev_tea'
- $_drink['3,price'] = 120
- $_drink['4,name'] = 'Black Coffee'
- $_drink['4,type'] = 'bev_cof'
- $_drink['4,price'] = 130
- $_drink['5,name'] = 'Milkshake'
- $_drink['5,type'] = 'bev_mil'
- $_drink['5,price'] = 200
- elseif $loc = 'qwBarPolet':
- '<center><b><font color="maroon">Bar "Rabotnik"</font></b></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/drinks/bardrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Toasted rye snacks'
- $_eat['0,type'] = 'ryesna'
- $_eat['0,price'] = 30
- $_eat['1,name'] = 'Bowl of flavoured crisps'
- $_eat['1,type'] = 'crisps'
- $_eat['1,price'] = 40
- $_drink['0,name'] = 'Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Beer on tap'
- $_drink['1,type'] = 'bev_bee'
- $_drink['1,price'] = 60
- $_drink['2,name'] = 'Vodka'
- $_drink['2,type'] = 'bev_vod'
- $_drink['2,price'] = 120
- $_drink['3,name'] = 'Scotch'
- $_drink['3,type'] = 'bev_sco'
- $_drink['3,price'] = 140
- $_drink['4,name'] = 'Glass of Wine'
- $_drink['4,type'] = 'bev_win'
- $_drink['4,price'] = 160
- $_drink['5,name'] = 'Black Russian'
- $_drink['5,type'] = 'bev_bla'
- $_drink['5,price'] = 250
- elseif $loc = 'restoran':
- '<center><b><font color="maroon">Babel</font></b></center>'
- *nl
- '<center><img <<$set_imgh>> src="images/shared/menus/babel.jpg"</center><br>'
- !'<center><img <<$set_imgh>> src="images/shared/drinks/fancydrinks.jpg"</center><br>'
- $_eat['0,name'] = 'Vareniki with Potatoes'
- $_eat['0,type'] = 'varenfan'
- $_eat['0,price'] = 760
- $_eat['1,name'] = 'Borscht and French Baguette'
- $_eat['1,type'] = 'borfan'
- $_eat['1,price'] = 900
- $_eat['2,name'] = 'Atlantic Salmon Steak'
- $_eat['2,type'] = 'salfan'
- $_eat['2,price'] = 1000
- $_eat['3,name'] = 'Beef & Mushroom Stroganoff'
- $_eat['3,type'] = 'strofan'
- $_eat['3,price'] = 1200
- $_eat['4,name'] = 'Red Caviar Blinchiki'
- $_eat['4,type'] = 'blifan'
- $_eat['4,price'] = 1360
- $_drink['0,name'] = 'Spring Water'
- $_drink['0,type'] = 'bev_wat'
- $_drink['0,price'] = 'Free'
- $_drink['1,name'] = 'Imported Tea'
- $_drink['1,type'] = 'bev_tea'
- $_drink['1,price'] = 180
- $_drink['2,name'] = 'Imported Beer'
- $_drink['2,type'] = 'bev_bee'
- $_drink['2,price'] = 200
- $_drink['3,name'] = 'Vodka Martini'
- $_drink['3,type'] = 'bev_mar'
- $_drink['3,price'] = 400
- $_drink['4,name'] = 'Glass of Wine'
- $_drink['4,type'] = 'bev_win'
- $_drink['4,price'] = 800
- $_drink['5,name'] = 'Glass of Champagne'
- $_drink['5,type'] = 'bev_cha'
- $_drink['5,price'] = 900
- end
- $_str = '<center><table border="0" width="800" cellpadding="0" cellspacing="1">'
- food_loop = 0
- :loop_diner_drinks
- $_str += '<tr><td bgcolor='+iif(food_loop mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+' height="30" width="40%" align="center"><font color="<<$fcolor1>>">'+$_eat['<<food_loop>>,name']+'</td><td bgcolor='+iif(food_loop mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+' height="30" width="10%" align="right">'+iif(money >= val($_eat['<<food_loop>>,price']),'<a href="exec:pcs_ate += 1 & gt''food'',$_eat[''<<food_loop>>,type''],<<food_loop>>">'+$_eat['<<food_loop>>,price']+'</a>',$_eat['<<food_loop>>,price'])+''+iif($_eat['<<food_loop>>,price'] ! '','<font color="<<$fcolor1>>"><b> ₽. </b>', '')+'</td><td bgcolor=<<$bcolor3>> border="0" width="50" cellpadding="0" cellspacing="0" ></td><td bgcolor='+iif(food_loop mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+' height="30" width="40%" align="center"><font color="<<$fcolor1>>">'+$_drink['<<food_loop>>,name']+'</td><td bgcolor='+iif(food_loop mod 2 = 0,'<<$bcolor1>>','<<$bcolor2>>')+' height="30" width="10%" align="right">'+iif(money >= val($_drink['<<food_loop>>,price']),'<a href="exec:pcs_drank += 1 & gt''beverage'',$_drink[''<<food_loop>>,type''],<<food_loop>>">'+$_drink['<<food_loop>>,price']+'</a>',$_drink['<<food_loop>>,price'])+''+iif($_drink['<<food_loop>>,price'] ! '','<font color="<<$fcolor1>>"><b> ₽. </b>', '')+'</td></tr>'
- food_loop += 1
- if food_loop < arrsize('$_drink')/3:jump 'loop_diner_drinks'
- $_str += '</table></center></font>'
- '<center>Please place your order</center>:<br><br>'+$_str
- killvar '$_str'
- killvar 'food_loop'
- killvar '$fcolor1'
- killvar '$bcolor1'
- killvar '$bcolor2'
- killvar '$bcolor3'
- --- food_menu ---------------------------------
|