pav_disco_classmates.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. # pav_disco_classmates
  2. !2021/05/02
  3. if $ARGS[0] = 'classmates':
  4. if hour < 20: gt 'pav_disco'
  5. *clr & cla
  6. $loc_arg = ''
  7. $loc = 'pav_disco'
  8. $location_type = 'public_indoors'
  9. $menu_loc = 'pav_disco_coolkids'
  10. $menu_arg = 'classmates'
  11. gs 'anushka_konstantinov_schedule'
  12. gs 'arkadi_fyodorov_schedule'
  13. gs 'radomir_popov_schedule'
  14. gs 'valentin_bogdanov_schedule'
  15. gs 'vicky_meynold_schedule'
  16. gs 'katja_meynold_schedule'
  17. if music_on = 1:
  18. $track_loop = 'sound/komb.mp3'
  19. volume = 80
  20. music_loop = 1
  21. pl '<a href="exec: music_on = 0 & gt $loc">Turn off the music</a>'
  22. else
  23. music_loop = 0
  24. close all
  25. pl '<a href="exec: music_on = 1 & gt $loc">Play music</a>'
  26. end
  27. menu_off = 1
  28. if atdisco['day'] ! daystart or atdisco['hour'] ! hour:
  29. atdisco['day'] = daystart
  30. atdisco['hour'] = hour
  31. gs 'pav_disco_classmates', 'atdisco'
  32. end
  33. '<center><b><font color="maroon">Disco</font></b></center>'
  34. 'Most of the cool kids and jocks are gathered around some tables and couches near the dance floor while the others dance. Some of the other students are hanging around near them or are out dancing.'
  35. $table_disco = '<center><table>'
  36. i = 1
  37. i2 = 0
  38. :discopop_loop
  39. if (npc_grupTipe['A<<i>>'] = 1 or $npc_nickname['A<<i>>'] = 'Natasha') and discoenable['A<<i>>'] = 1 and discobloc['A<<i>>'] ! daystart:
  40. if i2 = 0: $table_disco += '<tr>'
  41. i2 += 1
  42. if theme['is_dark'] = 1:
  43. $table_disco += '<td><table bgcolor=#404040>'
  44. else
  45. $table_disco += '<td><table bgcolor=#FFF8DC>'
  46. end
  47. $table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''cool_list''"><img height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
  48. if i2 mod 6 = 0: i2 = 0 & $table_disco += '</tr>'
  49. end
  50. i += 1
  51. if i <= aarraynumber:jump 'discopop_loop'
  52. i = 1
  53. :discojock_loop
  54. if npc_grupTipe['A<<i>>'] = 2 and discoenable['A<<i>>'] = 1 and discobloc['A<<i>>'] ! daystart:
  55. if i2 = 0: $table_disco += '<tr>'
  56. i2 += 1
  57. if theme['is_dark'] = 1:
  58. $table_disco += '<td><table bgcolor=#404040>'
  59. else
  60. $table_disco += '<td><table bgcolor=#FFF8DC>'
  61. end
  62. $table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''jocks_list''"><img height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
  63. if i2 mod 6 = 0: i2 = 0 & $table_disco += '</tr>'
  64. end
  65. i += 1
  66. if i <= aarraynumber:jump 'discojock_loop'
  67. if i2 mod 6 <> 0:
  68. :disco_loopi21
  69. i2 += 1
  70. $table_disco += '<td></td>'
  71. if i2 mod 6 = 0:
  72. i2 = 0
  73. $table_disco += '</tr>'
  74. else
  75. jump 'disco_loopi21'
  76. end
  77. end
  78. $table_disco += '</table></center>'
  79. $table_disco
  80. 'The gopniks are lounging in the darkest corner of the hall. They''re mostly keeping to themselves, but a few of them are out dancing.'
  81. $table_disco = '<center><table>'
  82. i = 1
  83. :discogop_loop
  84. if npc_grupTipe['A<<i>>'] = 4 and discoenable['A<<i>>'] = 1 and discobloc['A<<i>>'] ! daystart:
  85. $loopname = $npc_nickname['A<<i>>']
  86. $loopname = $lcase($loopname)
  87. if i2 = 0: $table_disco += '<tr>'
  88. i2 += 1
  89. if theme['is_dark'] = 1:
  90. $table_disco += '<td><table bgcolor=#404040>'
  91. else
  92. $table_disco += '<td><table bgcolor=#FFF8DC>'
  93. end
  94. $table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''gop_list''"><img height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
  95. if i2 mod 6 = 0: i2 = 0 & $table_disco += '</tr>'
  96. end
  97. i += 1
  98. if i <= aarraynumber:jump 'discogop_loop'
  99. if i2 mod 6 <> 0:
  100. :disco_loopi23
  101. i2 += 1
  102. $table_disco += '<td></td>'
  103. if i2 mod 6 = 0:
  104. i2 = 0
  105. $table_disco += '</tr>'
  106. else
  107. jump 'disco_loopi23'
  108. end
  109. end
  110. if soniaPS > 0 and discoenable['A25'] = 1 and discobloc['A25'] ! daystart:
  111. if theme['is_dark'] = 1:
  112. $table_disco += '<tr><td><table bgcolor=#404040>'
  113. else
  114. $table_disco += '<tr><td><table bgcolor=#FFF8DC>'
  115. end
  116. $table_disco += '<tr><td align=center><a href="exec:gt ''pav_disco_coolkids'', ''sonia_outcast'' "><img height="100" src="images/characters/shared/headshots_main/25.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A25'']>></td></tr></table></td><td colspan=7></td></tr>'
  117. end
  118. $table_disco += '</table></center>'
  119. $table_disco
  120. if hour >= 21 and hour < 23 and week=5:
  121. 'Coach Mikhail Nikolayevich stands at the entrance of the hall.'
  122. $table_disco = '<center><table>'
  123. if theme['is_dark'] = 1:
  124. $table_disco += '<tr><td><table bgcolor=#404040>'
  125. else
  126. $table_disco += '<tr><td><table bgcolor=#FFF8DC>'
  127. end
  128. $table_disco += '<tr><td align=center><a href="exec: gt ''VolleyTrenerSpeak''"><img height="100" src="images/characters/shared/headshots_main/69.jpg"></a></td></tr><tr><td align=center>Coach</td></tr></table></td><td colspan=7></td></tr>'
  129. $table_disco += '</table></center>'
  130. $table_disco
  131. end
  132. *nl
  133. !!display of their headshots in a table like the above $args has.
  134. !!if you click the head shot it goes to there args for the disco to interact with them.
  135. !!also a more advanced version of the above, can we not only give them a chance to be present, but split the images in two. One them sitting around and one of the ones dancing? SO something like this.
  136. !! 'Most the cool kids and a few of the jocks are mostly gathered around some tables and couches near the dance floor.'
  137. !!display of their headshots in a table like the above $args has of those sitting around
  138. !! 'While several of the cool kids and jocks are out on the dance floor dancing.'
  139. !!display of their headshots in a table like the above $args has of those dancing
  140. !! 'Gopniks are lounging in the darkest corner of the room, mostly keeping to themselves.'
  141. !!display of their headshots in a table like the above $args has of those sitting around
  142. !! 'While a few of the gopniks are out on the dance floor dancing.'
  143. !!display of their headshots in a table like the above $args has of those dancing
  144. !! 'Occasionally you see some of your other classmates here'
  145. !!Natasha and Sonia_outcast are the only ones that can show up here
  146. act 'Move away': gt $loc, $loc_arg
  147. end
  148. if $ARGS[0] = 'jocks_list':
  149. $listname = $npc_nickname['A<<i>>']
  150. $listname = $lcase($listname)
  151. gt 'pav_disco_jocks', $listname
  152. end
  153. if $ARGS[0] = 'cool_list':
  154. $listname = $npc_nickname['A<<i>>']
  155. $listname = $lcase($listname)
  156. gt 'pav_disco_coolkids', $listname
  157. end
  158. if $ARGS[0] = 'gop_list':
  159. $listname = $npc_nickname['A<<i>>']
  160. $listname = $lcase($listname)
  161. gt 'pav_disco_gopniks', $listname
  162. end
  163. if $ARGS[0] = 'atdisco':
  164. !!Dimka
  165. if igor_DimaNos_day = daystart:
  166. discoenable['A1'] = 0
  167. else
  168. gs 'pav_disco_classmates', 'atdisco10', 1
  169. end
  170. !!Igor
  171. if igor_DimaNos_day = daystart:
  172. discoenable['A4'] = 0
  173. else
  174. gs 'pav_disco_classmates', 'atdisco10', 4
  175. end
  176. !!Mefodiy
  177. gs 'pav_disco_classmates', 'atdisco4', 148
  178. !!Marcus
  179. gs 'pav_disco_classmates', 'atdisco10', 146
  180. !!Andrey
  181. gs 'pav_disco_classmates', 'atdisco10', 147
  182. !!Katja
  183. if locat['Katja'] = 8:
  184. gs 'pav_disco_classmates', 'atdisco10', 14
  185. else
  186. discoenable['A14'] = 0
  187. end
  188. !!Viktoriya
  189. if locat['Vicky'] = 14:
  190. gs 'pav_disco_classmates', 'atdisco10', 15
  191. else
  192. discoenable['A15'] = 0
  193. end
  194. !!Irina
  195. gs 'pav_disco_classmates', 'atdisco10', 17
  196. !!Bella
  197. gs 'pav_disco_classmates', 'atdisco10', 22
  198. !!Lizaveta
  199. gs 'pav_disco_classmates', 'atdisco10', 140
  200. !!Stasya
  201. if discoenable['A147'] = 1: discoenable['A139'] = 1
  202. !!Sonia
  203. if soniaPS > 0:
  204. gs 'pav_disco_classmates', 'atdisco4i', 25
  205. else
  206. gs 'pav_disco_classmates', 'atdisco10', 25
  207. end
  208. !!Lazar
  209. if week = 5:
  210. gs 'pav_disco_classmates', 'atdisco3i', 149
  211. else
  212. gs 'pav_disco_classmates', 'atdisco10', 149
  213. end
  214. !!Fedor
  215. if week = 5:
  216. gs 'pav_disco_classmates', 'atdisco3i', 5
  217. else
  218. gs 'pav_disco_classmates', 'atdisco4', 5
  219. end
  220. !!Svyatoslav
  221. if week = 5:
  222. gs 'pav_disco_classmates', 'atdisco3i', 8
  223. else
  224. gs 'pav_disco_classmates', 'atdisco10', 8
  225. end
  226. !!Vanya
  227. gs 'pav_disco_classmates', 'atdisco4', 165
  228. !!Lariska
  229. if week = 5:
  230. gs 'pav_disco_classmates', 'atdisco3i', 13
  231. else
  232. gs 'pav_disco_classmates', 'atdisco4', 13
  233. end
  234. !!Albina
  235. if week = 5:
  236. gs 'pav_disco_classmates', 'atdisco5i', 23
  237. else
  238. gs 'pav_disco_classmates', 'atdisco4i', 23
  239. end
  240. !!Christina
  241. if week = 5:
  242. gs 'pav_disco_classmates', 'atdisco3i', 18
  243. else
  244. gs 'pav_disco_classmates', 'atdisco4', 18
  245. end
  246. !!Lina
  247. if week = 5:
  248. gs 'pav_disco_classmates', 'atdisco3i', 19
  249. else
  250. gs 'pav_disco_classmates', 'atdisco4', 19
  251. end
  252. !!Ivan
  253. if week = 5:
  254. discoenable['A3'] = 0
  255. else
  256. gs 'pav_disco_classmates', 'atdisco10i', 3
  257. end
  258. !!Erast
  259. if week = 5:
  260. discoenable['A150'] = 0
  261. else
  262. gs 'pav_disco_classmates', 'atdisco5i', 150
  263. end
  264. !!Natasha
  265. gs 'pav_disco_classmates', 'atdisco3i', 16
  266. !!Vitek
  267. gs 'pav_disco_classmates', 'atdisco10', 9
  268. !!Dan
  269. if discoenable['A9'] = 1: discoenable['A10'] = 1
  270. !!Vasily
  271. if discoenable['A9'] = 1: discoenable['A11'] = 1
  272. !!Roman
  273. gs 'pav_disco_classmates', 'atdisco4', 157
  274. !!Radomir
  275. if locat['A154'] = 25:
  276. gs 'pav_disco_classmates', 'atdisco4', 154
  277. else
  278. discoenable['A154'] = 0
  279. end
  280. !!Valentin
  281. if locat['A158'] = 25:
  282. gs 'pav_disco_classmates', 'atdisco4', 158
  283. else
  284. discoenable['A158'] = 0
  285. end
  286. !!Arkadi
  287. if locat['A156'] = 25:
  288. gs 'pav_disco_classmates', 'atdisco4', 156
  289. else
  290. discoenable['A156'] = 0
  291. end
  292. !!Nikolai
  293. gs 'pav_disco_classmates', 'atdisco4', 185
  294. !!Lavrenti
  295. gs 'pav_disco_classmates', 'atdisco10', 155
  296. !!Lena
  297. gs 'pav_disco_classmates', 'atdisco4', 20
  298. !!Lera
  299. if discoenable['A20'] = 1: discoenable['A21'] = 1
  300. !!Pauline
  301. gs 'pav_disco_classmates', 'atdisco4', 24
  302. !!Anushka
  303. if locat['A144'] = 25:
  304. gs 'pav_disco_classmates', 'atdisco4', 144
  305. else
  306. discoenable['A144'] = 0
  307. end
  308. !!Alyona
  309. gs 'pav_disco_classmates', 'atdisco2', 143
  310. !!Ronnie
  311. discoenable['A141'] = 0
  312. !!Katyusha
  313. discoenable['A145'] = 0
  314. end
  315. if $ARGS[0] = 'atdisco2':
  316. i = args[1]
  317. if rand(1,2) ! 2:
  318. discoenable['A<<i>>'] = 1
  319. else
  320. discoenable['A<<i>>'] = 0
  321. end
  322. end
  323. if $ARGS[0] = 'atdisco3i':
  324. i = args[1]
  325. if rand(1,3) = 1:
  326. discoenable['A<<i>>'] = 1
  327. else
  328. discoenable['A<<i>>'] = 0
  329. end
  330. end
  331. if $ARGS[0] = 'atdisco4':
  332. i = args[1]
  333. if rand(1,4) ! 4:
  334. discoenable['A<<i>>'] = 1
  335. else
  336. discoenable['A<<i>>'] = 0
  337. end
  338. end
  339. if $ARGS[0] = 'atdisco4i':
  340. i = args[1]
  341. if rand(1,4) = 1:
  342. discoenable['A<<i>>'] = 1
  343. else
  344. discoenable['A<<i>>'] = 0
  345. end
  346. end
  347. if $ARGS[0] = 'atdisco5i':
  348. i = args[1]
  349. if rand(1,5) = 1:
  350. discoenable['A<<i>>'] = 1
  351. else
  352. discoenable['A<<i>>'] = 0
  353. end
  354. end
  355. if $ARGS[0] = 'atdisco10':
  356. i = args[1]
  357. if rand(1,10) ! 10:
  358. discoenable['A<<i>>'] = 1
  359. else
  360. discoenable['A<<i>>'] = 0
  361. end
  362. end
  363. if $ARGS[0] = 'atdisco10i':
  364. i = args[1]
  365. if rand(1,10) = 1:
  366. discoenable['A<<i>>'] = 1
  367. else
  368. discoenable['A<<i>>'] = 0
  369. end
  370. end
  371. --- pav_disco_classmates ---------------------------------