pav_disco_classmates.qsrc 11 KB

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