city_hotel.qsrc 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # city_hotel
  2. if $ARGS[0] = 'start' or $ARGS[0] = '':
  3. if hotelRoomDays['city'] - daystart = 0 and hour > 11: hotelRoom['city'] = 0
  4. if hotelRoomDays['city'] - daystart <= 0: hotelRoom['city'] = 0
  5. *clr & cla
  6. nom_o[1] = 100
  7. nom_o[2] = 1000
  8. nom_o[3] = 10000
  9. nom_o[4] = 100000
  10. gs 'shortgs', 'setloc', 'city_hotel', 'start'
  11. $region = 'city'
  12. menu_off = 0
  13. gs 'stat'
  14. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/lobby.jpg"></center>'
  15. 'The hotel lobby is deserted and you only notice an alone bored girl standing at the reception desk.'
  16. act 'Leave': minut += 5 & gt 'city_center'
  17. if hotelRoom['city'] ! 0:
  18. act 'Go to your room':
  19. if hotelRoom['city'] = 1: gt 'HotelRoom', 'normal'
  20. if hotelRoom['city'] = 2: gt 'HotelRoom', 'better'
  21. if hotelRoom['city'] = 3: gt 'HotelRoom', 'best'
  22. end
  23. end
  24. act 'Go to the reception desk': gt 'city_hotel', 'reception'
  25. end
  26. if $ARGS[0] = 'reception':
  27. *clr & cla
  28. menu_off = 1
  29. minut += 1
  30. gs 'stat'
  31. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/receptionist.jpg"></center>'
  32. 'You walk up to the front reception and get greeted by a smiling young woman behind the counter.'
  33. '"How can I help you?" she asks.'
  34. act 'Go back to the foyer': minut += 1 & gt 'city_hotel', 'start'
  35. act 'See the room descriptions':
  36. cla
  37. minut += 1
  38. gs 'stat'
  39. 'There are 4 types of rooms available:'
  40. '1. Budget rooms, our most simplest rooms for the ones that just want a bed to sleep the night. There''s a public bathroom shared with the rest of the floor.'
  41. '2. Standard rooms, our reasonably priced rooms. Every room has a private bathroom and a TV.'
  42. '3. Suites, our luxurious room. Beside a private bathroom there''s also an extra livingroom.'
  43. act 'Continue': gt 'city_hotel', 'reception'
  44. end
  45. if tobiQW = 2000:
  46. act 'Why is the hotel so crowded?':
  47. cla
  48. tobiQW = 2001
  49. minut += 1
  50. '"Why so the hotel so crowded today?" you ask.'
  51. '"There''s a conference on indigenous languages, they meet every year and complain about their disappearing languages." she says laughing.'
  52. act 'Move away': gt 'city_hotel', 'start'
  53. end
  54. end
  55. act 'Rent a room':
  56. menu_off = 1
  57. *clr & cla
  58. gs'stat'
  59. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/receptionist.jpg"></center>'
  60. 'The girl behind the desk smiles at you and asks: "Hello miss! Would you like to rent a room?"'
  61. if hotelRoom['city'] > 0:
  62. *clr & cla
  63. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/receptionist.jpg"></center>'
  64. 'She looks in the computer: "I see you already have a room here. As it is already booked and paid for the only way to change it to a different room, would be to cancel your existing booking. To do so without notice would forfeit your payment, I would advise against this, but you may do so if you wish."'
  65. act'Yes, cancel your booking': hotelRoom['city'] = 0 & gt'city_hotel'
  66. act 'No': gt'city_hotel'
  67. elseif hotelRoom['city'] = 0:
  68. act 'Yes':
  69. *clr & cla
  70. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/receptionist.jpg"></center>'
  71. 'She smiles at you happily: "Excellent! We have the following rooms available right now:"'
  72. 'Standard room - 500 <b>₽</b> / night;'
  73. 'Luxury room - 1500 <b>₽</b> / night;'
  74. 'and the Royal Suite - 10000 <b>₽</b> / night.'
  75. *nl
  76. act'Standard room':
  77. cla
  78. hotelRoomDays['city'] = input ("For how long would you like to stay?")
  79. if hotelRoomDays['city'] > 0 :
  80. totalCost = hotelRoomDays['city'] * 500
  81. '"A standard room for <<hotelRoomDays[''city'']>> days, that will be <<totalCost>><b>₽</b>" says the receptionist, "would you like to pay with cash or with card?"'
  82. gs 'city_hotel', 'pay_the_room', 1
  83. else
  84. gt'city_hotel'
  85. end
  86. end
  87. act 'Luxury room':
  88. cla
  89. hotelRoomDays['city'] = input ("For how long would you like to stay?")
  90. if hotelRoomDays['city'] > 0:
  91. totalCost = hotelRoomDays['city'] * 1500
  92. '"A luxury room for <<hotelRoomDays[''city'']>> days, that would be <<totalCost>><b>₽</b>" says the receptionist, "would you like to pay with cash or with card?"'
  93. $temp_nomoney = '"You can''t afford to stay in a luxury room at this hotel for that long.'
  94. gs 'city_hotel', 'pay_the_room', 2
  95. else
  96. gt'city_hotel'
  97. end
  98. end
  99. act'Royal Suite':
  100. cla
  101. hotelRoomDays['city'] = input ("For how long would you like to stay?")
  102. if hotelRoomDays['city'] > 0:
  103. totalCost = hotelRoomDays['city'] * 10000
  104. '"The royal suite for <<hotelRoomDays[''city'']>> days, that would be <<totalCost>><b>₽</b>" says the receptionist, "would you like to pay with cash or with card?"'
  105. gs 'city_hotel', 'pay_the_room', 3
  106. else
  107. gt'city_hotel'
  108. end
  109. end
  110. act 'Step away from the reception desk': gt'city_hotel'
  111. end
  112. act 'No, thank you': gt'city_hotel'
  113. end
  114. end
  115. end
  116. if $ARGS[0] = 'pay_the_room':
  117. hotel_room_id = ARGS[1]
  118. if money < totalCost and karta < totalCost:
  119. if ARGS[1] = 1: act 'You can''t afford to stay in the hotel for that long.': gt 'city_hotel'
  120. if ARGS[1] = 2: act 'You can''t afford to stay in a luxury room at this hotel for that long.': gt 'city_hotel'
  121. if ARGS[1] = 3: act 'You can''t afford to stay in the Royal Suite at this hotel for that long.': gt 'city_hotel'
  122. killvar 'totalCost'
  123. killvar 'hotel_room_id'
  124. else
  125. if money >= totalCost:
  126. act 'Pay with cash':
  127. cla
  128. money -= totalCost
  129. hotelRoom['city'] = hotel_room_id
  130. hotelRoomDays['city'] = daystart + hotelRoomDays['city']
  131. 'You count the money and give it to her. She gives you the key to your room in return. She says happily: "Thank you ' + iif(pavHotelMaid = 0, 'miss', $pcs_nickname) +', I hope you enjoy your stay!"'
  132. act 'Step away from the reception desk': gt 'city_hotel'
  133. killvar 'totalCost'
  134. killvar 'hotel_room_id'
  135. end
  136. end
  137. if karta >= totalCost:
  138. act 'Pay with card':
  139. cla
  140. karta -= totalCost
  141. 'hotel_room_id: <<hotel_room_id>>'
  142. hotelRoom['city'] = hotel_room_id
  143. hotelRoomDays['city'] = daystart + hotelRoomDays['city']
  144. 'You swipe your card and wait a moment for ''APPROVED'' to appear on the tiny screen. As soon as the receipt is printed, she hands it to you with the key to your room. "Thank you ' + iif(pavHotelMaid = 0, 'miss', $pcs_nickname) +', I hope you enjoy your stay!" she says with a smile.'
  145. act 'Step away from the reception desk': gt 'city_hotel'
  146. killvar 'totalCost'
  147. killvar 'hotel_room_id'
  148. end
  149. end
  150. end
  151. act 'You change your mind':
  152. killvar 'totalCost'
  153. killvar 'hotel_room_id'
  154. gt 'city_hotel'
  155. end
  156. end
  157. --- city_hotel ---------------------------------