gschool_groups.qsrc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. # gschool_groups
  2. !2021/05/02
  3. ! 14/09/22 - edited link to work with new hournal.
  4. !npc_grupTipe[i] - social group
  5. !1 - popular
  6. !2 - jocks
  7. !3 - nerds
  8. !4 - Gopnik
  9. !5 - outcasts
  10. !6 - teachers
  11. !1-5 use $npcGoSchool
  12. !6 use $npcGo
  13. if $ARGS[0] = 'teachers':
  14. killvar '$teach_text'
  15. killvar 'teach_count'
  16. '<center><table cellspacing="3">'
  17. i = 1
  18. :teach_loop
  19. if npc_grupTipe['A<<i>>'] = 6 and schoolenable['A<<i>>'] = 1:
  20. $teach_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:numnpc = <<i>> & gt ''Snpc'' "><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>'
  21. teach_count += 1
  22. if teach_count = 6:
  23. $teach_text +='</tr><tr>'
  24. teach_count = 0
  25. end
  26. end
  27. i += 1
  28. if i <= aarraynumber:jump 'teach_loop'
  29. '<<$teach_text>>'
  30. '</table></center>'
  31. killvar 'i'
  32. end
  33. if $ARGS[0] = 'nerds':
  34. $nerd_text = ''
  35. nerd_count = 0
  36. '<center><table cellspacing="3">'
  37. i = 1
  38. :nerd_loop
  39. if npc_grupTipe['A<<i>>'] = 3 and schoolenable['A<<i>>'] = 1:
  40. $lcase_nerd = $lcase($npc_usedname['A<<i>>'])
  41. $nerd_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:gt ''gschool_nerd_chats'', ''<<$lcase_nerd>>'' "><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>'
  42. nerd_count += 1
  43. if nerd_count = 6:
  44. $nerd_text +='</tr><tr>'
  45. nerd_count = 0
  46. end
  47. end
  48. i += 1
  49. if i <= aarraynumber:jump 'nerd_loop'
  50. '<<$nerd_text>>'
  51. '</table></center>'
  52. killvar 'i'
  53. killvar '$lcase_nerd'
  54. end
  55. if $ARGS[0] = 'jocks':
  56. $jock_text = ''
  57. jock_count = 0
  58. '<center><table cellspacing="3">'
  59. i = 1
  60. :jock_loop
  61. if npc_grupTipe['A<<i>>'] = 2 and schoolenable['A<<i>>'] = 1:
  62. $lcase_jock = $lcase($npc_usedname['A<<i>>'])
  63. $jock_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:gt ''gschool_jock_chats'', ''<<$lcase_jock>>'' "><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>'
  64. jock_count += 1
  65. if jock_count = 6:
  66. $jock_text +='</tr><tr>'
  67. jock_count = 0
  68. end
  69. end
  70. i += 1
  71. if i <= aarraynumber:jump 'jock_loop'
  72. '<<$jock_text>>'
  73. '</table></center>'
  74. killvar 'i'
  75. killvar '$lcase_jock'
  76. end
  77. if $ARGS[0] = 'popular':
  78. $pop_text = ''
  79. pop_count = 0
  80. '<center><table cellspacing="3">'
  81. i = 1
  82. :pop_loop
  83. if npc_grupTipe['A<<i>>'] = 1 and schoolenable['A<<i>>'] = 1:
  84. $lcase_pop = $lcase($npc_usedname['A<<i>>'])
  85. $pop_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:gt ''gschool_coolkid_chats'', ''<<$lcase_pop>>'' "><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>'
  86. pop_count += 1
  87. if pop_count = 6:
  88. $pop_text +='</tr><tr>'
  89. pop_count = 0
  90. end
  91. end
  92. i += 1
  93. if i <= aarraynumber: jump 'pop_loop'
  94. '<<$pop_text>>'
  95. '</table></center>'
  96. killvar 'i'
  97. killvar '$lcase_pop'
  98. end
  99. if $ARGS[0] = 'gopniks':
  100. $gop_text = ''
  101. gop_count = 0
  102. '<center><table cellspacing="3">'
  103. i = 1
  104. :gop_loop
  105. if npc_grupTipe['A<<i>>'] = 4 and schoolenable['A<<i>>'] = 1:
  106. $lcase_gop = $lcase($npc_usedname['A<<i>>'])
  107. $gop_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:gt ''gschool_gopnik_chats'', ''<<$lcase_gop>>''"><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>'
  108. gop_count += 1
  109. if gop_count = 6:
  110. $gop_text +='</tr><tr>'
  111. gop_count = 0
  112. end
  113. end
  114. i += 1
  115. if i <= aarraynumber: jump 'gop_loop'
  116. '<<$gop_text>>'
  117. '</table></center>'
  118. killvar 'i'
  119. killvar '$lcase_gop'
  120. end
  121. if $ARGS[0] = 'outcasts':
  122. $oc_text = ''
  123. oc_count = 0
  124. '<center><table cellspacing="3">'
  125. i = 1
  126. :oc_loop
  127. if npc_grupTipe['A<<i>>'] = 5 and schoolenable['A<<i>>'] = 1:
  128. $lcase_oc = $lcase($npc_usedname['A<<i>>'])
  129. $oc_text += '<td><table bgcolor=<<$theme[''table_bg_alt'']>>><tr><td align="center"><a href="exec:gt ''gschool_outcast_chats'', ''<<$lcase_oc>>'' "><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>'
  130. oc_count += 1
  131. if oc_count = 6:
  132. $oc_text +='</tr><tr>'
  133. oc_count = 0
  134. end
  135. end
  136. i += 1
  137. if i <= aarraynumber: jump 'oc_loop'
  138. '<<$oc_text>>'
  139. '</table></center>'
  140. killvar 'i'
  141. killvar '$lcase_oc'
  142. end
  143. --- gschool_groups ---------------------------------