city_commcenter.qsrc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. # city_commcenter
  2. ! Refactored 24 Aug 22
  3. ! Amended by Hooded Silence
  4. ! Author Validation:
  5. ! Industrial Community center - used for gaining life skills
  6. ! Events - Driving Lessons, Singing classes, Secretarial Training & Masseuse.
  7. ! V .01 - Refactored to break down into event sections and expand on content, and to create hot links for city_industrial navigation.
  8. ! v .02 - Added variable index documentation and minor text tweaks.
  9. !
  10. ! - Introduction to Alexei as singing teacher and music agent
  11. !
  12. ! - Quest/Logic variables-
  13. !
  14. ! --- Game Variables ---
  15. ! daystart = daily game clock counter, used to track interactions and calendar functions.
  16. ! week - week day
  17. ! minut = track game clock time
  18. ! money = used to pay for lessons
  19. ! karta = used to pay for lessons
  20. ! $loc, $loc_arg = navigation to various locations/acts.
  21. ! age - character age
  22. ! linked location(s): city_industrial.
  23. !
  24. ! --- Driving ---
  25. ! skulday = Course lock to prevent repeat same day visits.
  26. ! prava = driving licence
  27. ! avtoskul = Driving lessons tracker.
  28. !
  29. ! --- Secretary ---
  30. ! masseuse_lesson = Course lock to prevent repeat same day visits.
  31. ! secrDiplom = Secretarial diploma, used for the following locations (s): burger, office
  32. ! sekrObu = Secretarial lessons tracker.
  33. !
  34. ! --- Masseuse ---
  35. ! masseuse_lesson = Course lock to prevent repeat same day visits.
  36. ! masseuse[''certification''] = tracker for the masseuse course. Used for the following location(s): salon
  37. ! Notes - There is no diploma for this course. Possible future change if the masseuse role is extended.
  38. !
  39. ! --- Singing---
  40. ! vokalday = Course lock to prevent repeat same day visits.
  41. ! alexeyQW = Alexei quest - Work in progress for character developments.
  42. ! vokal_exp = increase singing trait experience global stat.
  43. !
  44. ! --- End ---
  45. if $ARGS[0] = 'start':
  46. $loc = 'city_commcenter'
  47. $loc_arg = 'start'
  48. $menu_loc = 'city_commcenter'
  49. $menu_arg = 'start'
  50. $location_type = 'public_indoors'
  51. menu_off = 0
  52. gs 'stat'
  53. gs 'city_commcenter', 'lessons'
  54. act 'Leave the center': minut += 5 & gt 'city_industrial'
  55. end
  56. if $ARGS[0] = 'lessons':
  57. '<center><b>The Vladimir Lenin community center</b></center>'
  58. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/dk1.jpg"></center>'
  59. *nl
  60. 'Vladimir Lenin is open from 9am through to 5pm on weekdays, and closed on weekends.
  61. It''s available to teach essential life skills such as driving, life coaching or finding new job skills this is the place to learn. '
  62. *nl
  63. '<B><center>Currently available courses:</center></B>'
  64. '<center>'
  65. '<table border=0 align="center">'
  66. '<TR>'
  67. if prava = 0 and avtoskul = 0:
  68. '<TR><TD>Driving lessons - 30,000 <b>₽</b>.</TD><TD>10 classes</TD><TD><a href="exec:gt ''city_commcenter'', ''drivingschool''">Book a driving course.</a></TD></TR>'
  69. elseif avtoskul < 11 and prava = 0 and skulday ! daystart:
  70. '<TR><TD>Driving lessons -</TD><TD></TD><TD><a href="exec:gt ''city_commcenter'', ''drivingschool''">Attend your driving lesson.</a></TD></TR>'
  71. elseif avtoskul < 12 and prava = 0 and skulday ! daystart:
  72. '<TR><TD>Driving lessons -</TD><TD></TD><TD><a href="exec:gt ''city_commcenter'', ''drivingschool''">Attend driving theory lesson.</a></TD></TR>'
  73. elseif avtoskul <= 12 and prava = 0 and skulday ! daystart:
  74. '<TR><TD>Driving lessons -</TD><TD></TD><TD><a href="exec:gt ''city_commcenter'', ''drivingschool''">Attend your driving test.</a></TD></TR>'
  75. elseif prava = 0 and skulday = daystart:
  76. '<TR><TD>Driving lessons - You have already attended your driving lesson for today.</TD></TR>'
  77. end
  78. '<TR><TD>Secretarial diploma - 15,000 <b>₽</b>.</TD><TD>10 classes</TD><TD><a href="exec:gt ''city_commcenter'', ''secretarialschool''">Classes in room 204.</a></TD></TR>'
  79. '<TR><TD>Massage lessons - 10,000 <b>₽</b>.</TD><TD>10 classes</TD><TD><a href="exec:gt ''city_commcenter'', ''masseuse''">Classes in room 203. </a></TD></TR>'
  80. '<TR><TD>Singing lessons - 500 <b>₽</b>.</TD><TD>Per class</TD><TD><a href="exec:gt ''city_commcenter'', ''singingtutor''">Classes in room 213. </TD></a></TR>'
  81. !!'<TR><TD>Personal development - 1,000 <b>₽</b>.</TD><TD>Per class</TD><TD>Classes in room 201 (Learn to assert yourself)</TD></TR>'
  82. !!'Medium for new opportunities - only here only freebie.'
  83. '</TR>'
  84. '</table>'
  85. '</center>'
  86. '<center><B>Lessons Completed:</B>'
  87. *nl
  88. if masseuse['certification'] = -1:
  89. 'You''ve enrolled into the masseuse class but still have to attend your first lesson.'
  90. end
  91. if masseuse['certification'] > 0 and masseuse['certification'] < 10:
  92. 'You have completed <<masseuse[''certification'']>> out of 10 massage therapist lessons.'
  93. end
  94. if secrDiplom = 0 and sekrObu > 1 and sekrObu <11:
  95. sekrObuA = sekrObu - 1 & 'Secretarial training - <<sekrObuA>> of 10 sessions completed.'
  96. elseif secrDiplom = 0 and sekrObu = 1:
  97. 'You need to attend your first Secretarial Class'
  98. elseif secrDiplom = 0 and sekrObu > 10:
  99. 'You''ve completed the course, it''s time to collect your diploma.'
  100. end
  101. if prava = 0 and avtoskul = 1:
  102. 'You''ve registered with the driving school and still have to take your first lesson.'
  103. elseif prava = 0 and avtoskul > 1 and avtoskul < 11:
  104. 'You have taken <<avtoskul-1>> driving lesson(s).'
  105. elseif prava = 0 and avtoskul = 11:
  106. 'Time to take your driving theory exam.'
  107. elseif prava = 0 and avtoskul = 12:
  108. 'Time to take your driving exam.'
  109. end
  110. '</center>'
  111. end
  112. !! Payment processor pass three variables: Lesson Type, Payment Type and amount.
  113. if $ARGS[0] = 'payments':
  114. if $ARGS[2] = 'money': money -= ARGS[3]
  115. if $ARGS[2] = 'karta': karta -= ARGS[3]
  116. '<center>You pay for your <<$ARGS[1]>> course and are now booked in for your first lesson. Please refer to the noticeboard for class times and rooms.</center>'
  117. gs 'stat'
  118. act 'Return': gt $loc, $loc_arg
  119. end
  120. if $ARGS[0] = 'drivingschool':
  121. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/dk2.jpg"></center>'
  122. *nl
  123. 'You enter the community center with excitement with your thoughts full about getting your driving licence and the freedom to achieve your dreams.'
  124. 'The driving school is government run and they check personal details against state registration database. As such a fake ID will not work, you have to be 18 or above.'
  125. *nl
  126. if prava ! 0:
  127. 'You''ve already got your driving licence.'
  128. act 'Return': gt $loc, $loc_arg
  129. exit
  130. end
  131. if avtoskul = 0 and age >= 18 and (money >= 30000 or karta >= 30000):
  132. act 'Book a driving training course (30,000 <b>₽</b>)':
  133. cla
  134. menu_off = 1
  135. !! This text should be rewritten
  136. 'You briefly look around for information about driving lessons, and approach the receptionist who gives you the necessary papers to fill in and she warns you that they will be checked by the agency to prevent fraud. You pay her the money and she gives you a small information pack about the driving lessons and you quickly skim through them to see you can now take a 2-hour driving lessons on each workday.'
  137. if money >= 30000:
  138. act 'Pay with for lessons with cash':
  139. avtoskul = 1
  140. gt 'city_commcenter', 'payments', 'driving lessons ', 'money', 30000
  141. end
  142. end
  143. if karta >= 30000:
  144. act 'Pay with your card':
  145. avtoskul = 1
  146. gt 'city_commcenter', 'payments', 'driving lessons', 'karta', 30000
  147. end
  148. end
  149. act 'Return': gt $loc, $loc_arg
  150. end
  151. elseif skulday = daystart:
  152. 'You''ve taken your driving lesson for today.'
  153. elseif hour >= 9 and hour <= 17 and week < 6:
  154. if avtoskul >= 1 and avtoskul < 11:
  155. act 'Driving lesson':
  156. *clr & cla
  157. skulday = daystart
  158. avtoskul += 1
  159. minut += 120
  160. gs 'stat'
  161. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/dk2.jpg"></center>'
  162. 'You spend two hours following your driving instructor''s orders and listening to suggestions on how to handle a car.'
  163. 'By the end of the lesson, you feel like you are a little more competent at driving.'
  164. act 'Return': gt $loc, $loc_arg
  165. end
  166. elseif avtoskul = 11:
  167. act 'Driving theory':
  168. *clr & cla
  169. menu_off = 1
  170. skulday = daystart
  171. avtoskul = 12
  172. minut += 120
  173. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/dk2.jpg"></center>'
  174. 'You dedicate two hours to a boring but necessary lecture on traffic signs, regulations, scenarios and some information on how to keep a car in working order.'
  175. act 'Return': gt $loc, $loc_arg
  176. !!if nikpravaQW = 1:end
  177. end
  178. elseif avtoskul = 12:
  179. act 'Driving test':
  180. *clr & cla
  181. menu_off = 1
  182. minut += 120
  183. avtoskul = 0
  184. prava = 1
  185. minut += 120
  186. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/dk3.jpg"></center>'
  187. 'You feel nervous as you enter this car for, hopefully, the last time. The traffic officer is a man who can look jovial at one moment and stern the next.'
  188. 'For 2 hours, you follow his directions around the city, park the car where he tells you to and feel your heart stop at every tiny mistake you make, wondering if you messed it up. But he lets you continue without comment and at the end, he seems satisfied and claims that you will get better with experience.'
  189. '"So, congratulations, you''ve passed! Here is your license", he smiles and hands you your brand new driver''s license. Now, all you need is a car...'
  190. act 'Return': gt $loc, $loc_arg
  191. end
  192. end
  193. end
  194. !! corrupt instructor idea, chance of instructor deliberately failing the test based on player stats, or is a bimbo and is open to bribes.
  195. act 'Return': gt $loc, $loc_arg
  196. end
  197. if $ARGS[0] = 'secretarialschool':
  198. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/kurs.jpg"></center>'
  199. '<center><b>Secretarial Training</b></center>'
  200. 'The center offers a wide range of business related skills including computer training, secretarial work, PA, management and accounting'
  201. if secrDiplom ! 0:
  202. 'You''ve already got your secretarial diploma.'
  203. act 'Return': gt $loc, $loc_arg
  204. exit
  205. end
  206. if sekrObu = 0:
  207. if money >= 15000 or karta >= 15000:
  208. act 'Book a secretarial course (15,000 <b>₽</b>)':
  209. cla
  210. menu_off = 1
  211. !! This text should be rewritten
  212. 'You pay the money for the course, once you''ve filled in the blanks on an application paper, and can now attend secretary training each day for 2 hours. You need to attend 10 training lessons to earn a diploma.'
  213. if money >= 15000:
  214. act 'Pay with for lessons with cash':
  215. sekrObu = 1
  216. gt 'city_commcenter', 'payments', 'secretarial class', 'money', 15000
  217. end
  218. end
  219. if karta >= 15000:
  220. act 'Pay with your card':
  221. sekrObu = 1
  222. gt 'city_commcenter', 'payments', 'secretarial class', 'karta', 15000
  223. end
  224. end
  225. act 'Return': gt $loc, $loc_arg
  226. end
  227. else
  228. 'You could take lessons here if you had sufficient funds with you. '
  229. end
  230. elseif secrday = daystart:
  231. 'You''ve had your lesson for today, come back another day.'
  232. elseif sekrObu > 0 and sekrObu < 11:
  233. act 'Secretarial class':
  234. *clr & cla
  235. menu_off = 1
  236. secrday = daystart
  237. sekrObu += 1
  238. minut += 120
  239. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/kurs.jpg"></center>'
  240. 'You go into a classroom with many computers. Unsurprisingly, most students in this course are women. The teacher - a woman in a sharp office dress - enters the class and starts lecturing you on the intricacies of secretarial work and the basics of computer programs used in offices today.'
  241. if (cumloc[6] = 1 or cumloc[7] = 1):pcs_horny += 10 & 'You nervously shift around on your chair, trying to hide the semen stains on your clothes, but anything you do to remove or cover them only seems to make them more obvious. By the end of the class, you''ve earned pitying or disgusted looks from just about everybody in the room, including the teacher.'
  242. act 'Return': gt $loc, $loc_arg
  243. end
  244. elseif sekrObu >= 11:
  245. act 'Secretarial diploma':
  246. *clr & cla
  247. menu_off = 1
  248. secrday = daystart
  249. sekrObu = 0
  250. minut += 15
  251. secrDiplom = 1
  252. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/kurs.jpg"></center>'
  253. 'You go into a classroom with many computers. Unsurprisingly, most students in this course are women. The teacher - a woman in a sharp office dress - enters the class and starts lecturing you on the intricacies of secretarial work and the basics of computer programs used in offices today.'
  254. 'At the end of it, as the teacher goes through her attendance list as usual, she looks at you and gives you an approving, professional look.'
  255. '"Congratulations, <<$pcs_nickname>>. It seems that you have earned your diploma."'
  256. 'She pulls a document out of her briefcase, fills in your name, signs it and sends you to reception with it.'
  257. 'With the receptionists'' signature and the community center''s seal, you are now officially qualified for secretary work!'
  258. act 'Return': gt $loc, $loc_arg
  259. end
  260. end
  261. act 'Return': gt $loc, $loc_arg
  262. end
  263. if $ARGS[0] = 'masseuse':
  264. '<center><img <<$set_imgh>> src="images/locations/city/industrial/community/masseuse_training.jpg"></center>'
  265. *nl
  266. if masseuse['certification'] = 0:
  267. if money >= 10000 or karta >= 10000:
  268. 'You enter a room and are greeted with by a young lady, she looks are you with a welcoming smile and asks "Are you here for the lessons?" You reply and she quickly gives you the course details of the course and a pamphlet to read.'
  269. *nl
  270. 'The basic course is 10 lessons, and the class costs 10,000 <b>₽</b>'
  271. if money >= 10000:
  272. act 'Pay with for lessons with cash':
  273. masseuse['certification'] = -1
  274. gt 'city_commcenter', 'payments', 'masseuse class', 'money', 10000
  275. end
  276. end
  277. if karta >= 10000:
  278. act 'Pay with your card':
  279. masseuse['certification'] = -1
  280. gt 'city_commcenter', 'payments', 'masseuse class', 'karta', 10000
  281. end
  282. end
  283. else
  284. end
  285. elseif masseuse_lesson = daystart:
  286. 'You look around the empty room and realised you''ve had your lesson today and the class instructor has left.'
  287. elseif masseuse['certification'] <= 10:
  288. masseuse_lesson = daystart
  289. if masseuse['certification'] < 0:
  290. masseuse['certification'] = 1
  291. else
  292. masseuse['certification'] += 1
  293. end
  294. minut += 120
  295. gs 'stat'
  296. 'You enter the room and see the tables laid out for your lesson. The instructor welcomes you and takes down your name. You notice some people coming in for a free massage from your course.'
  297. 'The next two hours are dedicated to reading detailed guides to how to relieve pain or tension in certain muscles and to putting these guides into practice with partners attending the course and some local students looking for a freebie.'
  298. *nl
  299. if masseuse['certification'] >= 10:
  300. 'Congratulations that was your final lesson! You''ve completed the basic course, you are issued a certificate that shows you are a certified masseuse.This is your first step in providing a wonderful service to your clients.'
  301. end
  302. elseif masseuse['certification'] >= 10:
  303. 'Sorry we don''t have any new classes to offer yet. You could speak to Xian at the Galleria''s Beauty Bar if you''re looking for work as she usually has openings for new staff.'
  304. end
  305. act 'Return': gt $loc, $loc_arg
  306. !! Advanced Wellness or Massage expansion either through the city sauna or the beauty bar for poor performance or to get better money.
  307. end
  308. if $ARGS[0] = 'singingtutor':
  309. if vokalday = daystart:
  310. 'The classroom is empty, you play on the piano for a few minutes before heading back to the hall. Maybe come back another time to see if there''s more classes.'
  311. elseif money < 500:
  312. 'You see Alexei in the classroom, but you don''t have enough cash to take a lesson.'
  313. else
  314. 'The center offers singing lessons with Alexei, an established local singer and musician who works with up and coming talent. Unlike the centers other classes he only ever accepts cash for his lessons.'
  315. act 'Singing lessons (500 <b>₽</b>)':
  316. *clr & cla
  317. menu_off = 1
  318. minut += 60
  319. alexeyQW += 1
  320. gs 'exp_gain', 'vokal', rand(5,10)
  321. vokalday = daystart
  322. money -= 500
  323. gs 'stat'
  324. if alexeyQW = 1:
  325. 'When you enter the office, you see a middle aged man with long hair that''s been pulled back in a ponytail. He gives you a confident look and says, with a particularly well-modulated voice: "Are you here to learn how to sing, Miss?" You nod and hand him 500 <b>₽</b>.'
  326. 'He pockets it and introduces himself: "I''m Alexei. What is your name?" You respond that your name is <<$pcs_nickname>>. Acknowledging your answer with little more than a nod, the man immediately moves on to the lesson. Before you even notice, an hour has passed. You head out and the man politely wishes you goodbye.'
  327. elseif alexeyQW = 2:
  328. 'You enter the small classroom eager to your lesson, Alexei is sitting at a piano and indicates you should sit on a chair to it. He asks you practice the scales as he plays each note on the piano. You quickly gain confidence and he touches your knee whenever you do well. '
  329. 'After an hour you feel drained but feel that you have learned more about singing. You have a good voice Alexei says, but you still need to practice breathing and control, touching your breasts and throat as he says each word.'
  330. gs 'arousal', 'foreplay', 15
  331. gs 'stat'
  332. else
  333. 'You enter the small classroom eager to start your next lesson, Alexei is sitting at his normal place by the piano and waves hand to your chair. He asks you practice the warm up scales as he plays the notes on the piano. You are fairly accomplished now and quickly finish the warm up.'
  334. 'Halfway through the lesson Alexei gives you another music sheet to sing from and starts playing the piano indicating you should start, after the lesson you feel exhausted from the class but keen to attend your next lesson.'
  335. end
  336. act 'Return': gt $loc, $loc_arg
  337. end
  338. end
  339. act 'Return': gt $loc, $loc_arg
  340. end
  341. --- city_commcenter ---------------------------------