1
0

intro_sg_select_custom.qsrc 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. # intro_sg_select_custom
  2. if $ARGS[0] = 'start':
  3. $start_type['group'] = 'custom'
  4. $start_type['cat'] = 'custom'
  5. act 'Pick a social group': gt 'intro_sg_select_custom','modgrup'
  6. act 'Set relationships': gt 'intro_sg_select_custom','modrel'
  7. act 'Confirm these options':
  8. dynamic 'grupvalue[<<grupTipe>>] = 600'
  9. if $soc_grup = 'nerd':
  10. pcs_traits['nerd_points'] = 60
  11. pcs_traits['nerd_status'] = 2
  12. pcs_traits['nerd_lernHome'] = 5
  13. elseif $soc_grup = 'gopnik':
  14. pcs_traits['nerd_points'] = -20
  15. end
  16. if pcs_inhib < 10: pcs_inhib = 10
  17. !!This line should get sveta to wear school uniform because she has no other clothing with > 50
  18. if pcs_inhib > 50: gs 'clothing', 'wear', 'gm_school', 6
  19. if bag = 1:
  20. !!using current combination should prevent having more than 1 bag at the start of game.
  21. dynamic $currentpursetype + '_purses[<<currentpursenumber>>] = 1'
  22. gs 'obj_din', 'old'
  23. end
  24. gs 'intro_functions', 'reset_sgclasses'
  25. gt $loc, $loc_arg
  26. end
  27. end
  28. !!This is used to set value, is used to avoid any values that go below 5.
  29. if $ARGS[0] = 'setval':
  30. nstat = 0
  31. nstat = input 'Enter value in multiples of 5. For example, 5, 10, 15 etc.'
  32. if nstat > 100:
  33. msg 'Please enter a value less than or equal to 100'
  34. gs 'intro_sg_select_custom', 'setval'
  35. elseif nstat < 5:
  36. msg 'Please enter a value greater than or equal to 5'
  37. gs 'intro_sg_select_custom', 'setval'
  38. elseif nstat mod 5 ! 0:
  39. msg 'Please enter a value in multiples of 5'
  40. gs 'intro_sg_select_custom', 'setval'
  41. else
  42. gs 'stat'
  43. exit
  44. end
  45. end
  46. !!This is used to set values, that can go below 5 and ranges from 100 to -100.
  47. if $ARGS[0] = 'setval2':
  48. nstat = 0
  49. nstat = input 'Enter value in multiples of 5. For example, 5, 0, -5 etc.'
  50. if nstat > 100:
  51. msg 'Please enter a value less than or equal to 100'
  52. gs 'intro_sg_select_custom', 'setval2'
  53. elseif nstat < -100:
  54. msg 'Please enter a value greater than or equal to -100'
  55. gs 'intro_sg_select_custom', 'setval2'
  56. elseif nstat mod 5 ! 0:
  57. msg 'Please enter a value in multiples of 5'
  58. gs 'intro_sg_select_custom', 'setval2'
  59. else
  60. exit
  61. end
  62. end
  63. !!This is used to set values, that can go to 0 and ranges from 0 to 100.
  64. if $ARGS[0] = 'setval3':
  65. nstat = 0
  66. nstat = input 'Enter value in multiples of 5. For example, 0, 5, 10 etc.'
  67. if nstat > 100:
  68. msg 'Please enter a value less than or equal to 100'
  69. gs 'intro_sg_select_custom', 'setval3'
  70. elseif nstat < 0:
  71. msg 'Please enter a value greater than or equal to 0'
  72. gs 'intro_sg_select_custom', 'setval3'
  73. elseif nstat mod 5 ! 0:
  74. msg 'Please enter a value in multiples of 5'
  75. gs 'intro_sg_select_custom', 'setval3'
  76. else
  77. exit
  78. end
  79. end
  80. if $ARGS[0] = 'modgrup':
  81. *clr & cla
  82. 'Your current social group is <<$soc_grup>>.'
  83. act 'Nerd':
  84. killvar 'grupvalue'
  85. $start_type['group'] = 'nerd'
  86. $soc_grup = 'Nerd'
  87. grupTipe = 3
  88. grupvalue[1] = 200
  89. grupvalue[2] = 100
  90. grupvalue[3] = 800
  91. grupvalue[4] = 100
  92. grupvalue[6] = 600
  93. gt 'intro_sg_select_custom','modgrup'
  94. end
  95. act 'Jock':
  96. killvar 'grupvalue'
  97. $start_type['group'] = 'jock'
  98. $soc_grup = 'Jock'
  99. grupTipe = 2
  100. grupvalue[1] = 400
  101. grupvalue[2] = 800
  102. grupvalue[3] = 100
  103. grupvalue[4] = 200
  104. grupvalue[6] = 400
  105. gt 'intro_sg_select_custom','modgrup'
  106. end
  107. act 'Popular':
  108. killvar 'grupvalue'
  109. $start_type['group'] = 'cool'
  110. $soc_grup = 'Cool'
  111. grupTipe = 1
  112. grupvalue[1] = 800
  113. grupvalue[2] = 400
  114. grupvalue[3] = 200
  115. grupvalue[4] = 100
  116. grupvalue[6] = 400
  117. gt 'intro_sg_select_custom','modgrup'
  118. end
  119. act 'Gopnik':
  120. killvar 'grupvalue'
  121. $start_type['group'] = 'gopnik'
  122. $soc_grup = 'Gopnik'
  123. grupTipe = 4
  124. grupvalue[1] = 200
  125. grupvalue[2] = 300
  126. grupvalue[3] = 100
  127. grupvalue[4] = 800
  128. grupvalue[6] = 100
  129. gt 'intro_sg_select_custom','modgrup'
  130. end
  131. act 'Outcast':
  132. killvar 'grupvalue'
  133. $start_type['group'] = 'outcast'
  134. $soc_grup = 'Outcast'
  135. grupTipe = 5
  136. grupvalue[1] = 200
  137. grupvalue[2] = 200
  138. grupvalue[3] = 200
  139. grupvalue[4] = 200
  140. grupvalue[6] = 200
  141. gt 'intro_sg_select_custom','modgrup'
  142. end
  143. act 'Return': gt 'intro_customization', 'start'
  144. end
  145. if $ARGS[0] = 'none':
  146. !!Attributes Reset - I know most of these att&skl are not in need of reset, but I dont know how to use loops and I wanted this to clear all changes made by choosing social group and/or player choices.
  147. gs 'intro_functions', 'set_base_stats'
  148. !!social group Reset
  149. grupTipe = 0
  150. grupvalue[1] = 0
  151. grupvalue[2] = 0
  152. grupvalue[3] = 0
  153. grupvalue[4] = 0
  154. grupvalue[6] = 0
  155. gs 'npc_relationship', 'socialgroup_setting', 0, 0, 0, 0, 0, 0
  156. !!npc relationship Reset
  157. npc_rel['A11'] = 60
  158. npc_rel['A28'] = 50
  159. npc_rel['A29'] = 50
  160. npc_rel['A33'] = 70
  161. npc_rel['A34'] = 50
  162. npc_rel['A129'] = 30
  163. npc_rel['A133'] = 30
  164. !!items Reset
  165. fakepassport = 0
  166. BookVars['fantasy_pages'] = 0
  167. gs 'piercing_management', 'full_reset'
  168. !!apprnc & sex stat reset
  169. pcs_vag = 10
  170. pcs_ass = 10
  171. pcs_throat = 10
  172. stat['bj'] = 0
  173. stat['hj'] = 0
  174. stat['vaginal'] = 0
  175. $soc_grup = 'outcast'
  176. grupTipe = 5
  177. end
  178. if $ARGS[0] = 'modrel':
  179. act 'Family': gt 'intro_sg_select_custom','modrel_fam'
  180. act 'Popular Kids': gt 'intro_sg_select_custom','modrel_pop'
  181. act 'Athletes': gt 'intro_sg_select_custom','modrel_ath'
  182. act 'Nerds': gt 'intro_sg_select_custom','modrel_ner'
  183. act 'Gopniks': gt 'intro_sg_select_custom','modrel_gop'
  184. act 'Outcasts/Loners': gt 'intro_sg_select_custom', 'modrel_out'
  185. act 'Teachers/Coaches': gt 'intro_sg_select_custom', 'modrel_tea'
  186. act 'Others': gt 'intro_sg_select_custom', 'modrel_oth'
  187. act 'Return': gt 'intro_customization', 'start'
  188. end
  189. if $ARGS[0] = 'modrel_fam':
  190. if npc_rel['A28'] < 0: npc_rel['A28'] = 0
  191. if npc_rel['A29'] < 0: npc_rel['A29'] = 0
  192. if npc_rel['A33'] < 0: npc_rel['A33'] = 0
  193. if npc_rel['A34'] < 0: npc_rel['A34'] = 0
  194. if npc_rel['A28'] > 100: npc_rel['A28'] = 100
  195. if npc_rel['A29'] > 100: npc_rel['A29'] = 100
  196. if npc_rel['A33'] > 100: npc_rel['A33'] = 100
  197. if npc_rel['A34'] > 100: npc_rel['A34'] = 100
  198. '<center><b>Family relationship levels</b></center>'
  199. *nl
  200. *nl
  201. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  202. '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Stepfather: <<npc_rel[''A28'']>></TD><TD><a href="exec:npc_rel[''A28''] = 0 & gt ''intro_sg_select_custom'', ''modrel_fam''">zero</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A28''] -= 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 10</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A28''] -= 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A28''] += 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A28''] += 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 10</a></TD><TD><a href="exec:npc_rel[''A28''] = 100 & gt ''intro_sg_select_custom'', ''modrel_fam''">100</a></TD>'
  203. '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Mother: <<npc_rel[''A29'']>></TD><TD><a href="exec:npc_rel[''A29''] = 0 & gt ''intro_sg_select_custom'', ''modrel_fam''">zero</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A29''] -= 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 10</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A29''] -= 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A29''] += 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A29''] += 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 10</a></TD><TD><a href="exec:npc_rel[''A29''] = 100 & gt ''intro_sg_select_custom'', ''modrel_fam''">100</a></TD>'
  204. '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Sister: <<npc_rel[''A33'']>></TD><TD><a href="exec:npc_rel[''A33''] = 0 & gt ''intro_sg_select_custom'', ''modrel_fam''">zero</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A33''] -= 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 10</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A33''] -= 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A33''] += 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A33''] += 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 10</a></TD><TD><a href="exec:npc_rel[''A33''] = 100 & gt ''intro_sg_select_custom'', ''modrel_fam''">100</a></TD>'
  205. '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Brother: <<npc_rel[''A34'']>></TD><TD><a href="exec:npc_rel[''A34''] = 0 & gt ''intro_sg_select_custom'', ''modrel_fam''">zero</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A34''] -= 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 10</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''A34''] -= 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">minus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A34''] += 5 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''A34''] += 10 & gt ''intro_sg_select_custom'', ''modrel_fam''">plus 10</a></TD><TD><a href="exec:npc_rel[''A34''] = 100 & gt ''intro_sg_select_custom'', ''modrel_fam''">100</a></TD>'
  206. '</table></center>'
  207. act 'Return': gt 'intro_sg_select_custom','modrel'
  208. end
  209. if $ARGS[0] = 'modrel_setup':
  210. if npc_rel['<<$ARGS[1]>>'] < 0: npc_rel['<<$ARGS[1]>>'] = 0
  211. if npc_rel['<<$ARGS[1]>>'] > 100: npc_rel['<<$ARGS[1]>>'] = 100
  212. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD><<$npc_firstname[''<<$ARGS[1]>>'']>> <<$npc_lastname[''<<$ARGS[1]>>'']>>: <<npc_rel[''<<$ARGS[1]>>'']>></TD><TD><a href="exec:npc_rel[''<<$ARGS[1]>>''] = 0 & gt ''intro_sg_select_custom'', $locM_arg">zero</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''<<$ARGS[1]>>''] -= 10 & gt ''intro_sg_select_custom'', $locM_arg">minus 10</a></TD><TD bgcolor=#ff9999><a href="exec:npc_rel[''<<$ARGS[1]>>''] -= 5 & gt ''intro_sg_select_custom'', $locM_arg">minus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''<<$ARGS[1]>>''] += 5 & gt ''intro_sg_select_custom'', $locM_arg">plus 5</a></TD><TD bgcolor=#99ff99><a href="exec:npc_rel[''<<$ARGS[1]>>''] += 10 & gt ''intro_sg_select_custom'', $locM_arg">plus 10</a></TD><TD><a href="exec:npc_rel[''<<$ARGS[1]>>''] = 100 & gt ''intro_sg_select_custom'', $locM_arg">100</a></TD>'
  213. end
  214. if $ARGS[0] = 'modrel_pop':
  215. $locM_arg = 'modrel_pop'
  216. '<center><b>Popular kids relationship levels</b></center>'
  217. *nl
  218. killvar '$table_display'
  219. gs 'intro_sg_select_custom', 'modrel_setup', 'A1'
  220. gs 'intro_sg_select_custom', 'modrel_setup', 'A4'
  221. gs 'intro_sg_select_custom', 'modrel_setup', 'A14'
  222. gs 'intro_sg_select_custom', 'modrel_setup', 'A15'
  223. gs 'intro_sg_select_custom', 'modrel_setup', 'A17'
  224. gs 'intro_sg_select_custom', 'modrel_setup', 'A22'
  225. gs 'intro_sg_select_custom', 'modrel_setup', 'A146'
  226. gs 'intro_sg_select_custom', 'modrel_setup', 'A147'
  227. gs 'intro_sg_select_custom', 'modrel_setup', 'A148'
  228. gs 'intro_sg_select_custom', 'modrel_setup', 'A25'
  229. gs 'intro_sg_select_custom', 'modrel_setup', 'A139'
  230. gs 'intro_sg_select_custom', 'modrel_setup', 'A140'
  231. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  232. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all boys in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 1, nstat & gt ''intro_sg_select_custom'',''modrel_pop''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  233. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all girls in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 1, nstat & gt ''intro_sg_select_custom'',''modrel_pop''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  234. $table_display
  235. '</table></center>'
  236. act 'Return': gt 'intro_sg_select_custom','modrel'
  237. end
  238. if $ARGS[0] = 'modrel_ath':
  239. $locM_arg = 'modrel_ath'
  240. '<center><b>Jocks relationship levels</b></center>'
  241. *nl
  242. killvar '$table_display'
  243. gs 'intro_sg_select_custom', 'modrel_setup', 'A3'
  244. gs 'intro_sg_select_custom', 'modrel_setup', 'A5'
  245. gs 'intro_sg_select_custom', 'modrel_setup', 'A8'
  246. gs 'intro_sg_select_custom', 'modrel_setup', 'A13'
  247. gs 'intro_sg_select_custom', 'modrel_setup', 'A18'
  248. gs 'intro_sg_select_custom', 'modrel_setup', 'A19'
  249. gs 'intro_sg_select_custom', 'modrel_setup', 'A23'
  250. gs 'intro_sg_select_custom', 'modrel_setup', 'A149'
  251. gs 'intro_sg_select_custom', 'modrel_setup', 'A150'
  252. gs 'intro_sg_select_custom', 'modrel_setup', 'A141'
  253. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  254. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all boys in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 2, nstat & gt ''intro_sg_select_custom'',''modrel_ath''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  255. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all girls in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 2, nstat & gt ''intro_sg_select_custom'',''modrel_ath''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  256. $table_display
  257. '</table></center>'
  258. act 'Return': gt 'intro_sg_select_custom','modrel'
  259. end
  260. if $ARGS[0] = 'modrel_ner':
  261. $locM_arg = 'modrel_ner'
  262. '<center><b>Nerds relationship levels</b></center>'
  263. *nl
  264. killvar '$table_display'
  265. gs 'intro_sg_select_custom', 'modrel_setup', 'A2'
  266. gs 'intro_sg_select_custom', 'modrel_setup', 'A6'
  267. gs 'intro_sg_select_custom', 'modrel_setup', 'A12'
  268. gs 'intro_sg_select_custom', 'modrel_setup', 'A16'
  269. gs 'intro_sg_select_custom', 'modrel_setup', 'A151'
  270. gs 'intro_sg_select_custom', 'modrel_setup', 'A152'
  271. gs 'intro_sg_select_custom', 'modrel_setup', 'A153'
  272. gs 'intro_sg_select_custom', 'modrel_setup', 'A142'
  273. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  274. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all boys in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 3, nstat & gt ''intro_sg_select_custom'',''modrel_ner''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  275. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all girls in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 3, nstat & gt ''intro_sg_select_custom'',''modrel_ner''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  276. $table_display
  277. '</table></center>'
  278. act 'Return': gt 'intro_sg_select_custom','modrel'
  279. end
  280. if $ARGS[0] = 'modrel_gop':
  281. $locM_arg = 'modrel_gop'
  282. '<center><b>Gopnik kids relationship levels</b></center>'
  283. *nl
  284. killvar '$table_display'
  285. gs 'intro_sg_select_custom', 'modrel_setup', 'A9'
  286. gs 'intro_sg_select_custom', 'modrel_setup', 'A10'
  287. gs 'intro_sg_select_custom', 'modrel_setup', 'A11'
  288. gs 'intro_sg_select_custom', 'modrel_setup', 'A20'
  289. gs 'intro_sg_select_custom', 'modrel_setup', 'A21'
  290. gs 'intro_sg_select_custom', 'modrel_setup', 'A24'
  291. gs 'intro_sg_select_custom', 'modrel_setup', 'A154'
  292. gs 'intro_sg_select_custom', 'modrel_setup', 'A155'
  293. gs 'intro_sg_select_custom', 'modrel_setup', 'A156'
  294. gs 'intro_sg_select_custom', 'modrel_setup', 'A157'
  295. gs 'intro_sg_select_custom', 'modrel_setup', 'A158'
  296. gs 'intro_sg_select_custom', 'modrel_setup', 'A143'
  297. gs 'intro_sg_select_custom', 'modrel_setup', 'A144'
  298. gs 'intro_sg_select_custom', 'modrel_setup', 'A145'
  299. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  300. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all boys in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 4, nstat & gt ''intro_sg_select_custom'',''modrel_gop''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  301. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all girls in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 4, nstat & gt ''intro_sg_select_custom'',''modrel_gop''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  302. $table_display
  303. '</table></center>'
  304. act 'Return': gt 'intro_sg_select_custom','modrel'
  305. end
  306. if $ARGS[0] = 'modrel_out':
  307. $locM_arg = 'modrel_out'
  308. '<center><b>Outcast kids relationship levels</b></center>'
  309. *nl
  310. killvar '$table_display'
  311. gs 'intro_sg_select_custom', 'modrel_setup', 'A7'
  312. gs 'intro_sg_select_custom', 'modrel_setup', 'A159'
  313. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  314. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all boys in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 5, nstat & gt ''intro_sg_select_custom'',''modrel_out''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  315. !! $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all girls in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 5, nstat & gt ''intro_sg_select_custom'',''modrel_out''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  316. $table_display
  317. '</table></center>'
  318. act 'Return': gt 'intro_sg_select_custom','modrel'
  319. end
  320. if $ARGS[0] = 'modrel_tea':
  321. $locM_arg = 'modrel_tea'
  322. '<center><b>Teacher relationship levels</b></center>'
  323. *nl
  324. killvar '$table_display'
  325. gs 'intro_sg_select_custom', 'modrel_setup', 'A26'
  326. gs 'intro_sg_select_custom', 'modrel_setup', 'A128'
  327. gs 'intro_sg_select_custom', 'modrel_setup', 'A129'
  328. gs 'intro_sg_select_custom', 'modrel_setup', 'A130'
  329. gs 'intro_sg_select_custom', 'modrel_setup', 'A131'
  330. gs 'intro_sg_select_custom', 'modrel_setup', 'A132'
  331. gs 'intro_sg_select_custom', 'modrel_setup', 'A133'
  332. gs 'intro_sg_select_custom', 'modrel_setup', 'A134'
  333. gs 'intro_sg_select_custom', 'modrel_setup', 'A135'
  334. gs 'intro_sg_select_custom', 'modrel_setup', 'A136'
  335. gs 'intro_sg_select_custom', 'modrel_setup', 'A137'
  336. gs 'intro_sg_select_custom', 'modrel_setup', 'A138'
  337. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  338. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all men in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 0, 6, nstat & gt ''intro_sg_select_custom'',''modrel_tea''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  339. $table_display += '<TR bgcolor=<<$theme[''table_bg'']>>><TD>Set relationship level for all women in this group</TD><TD><a href="exec: gs ''intro_sg_select_custom'',''setval2'' & gs ''intro_sg_select_custom'', ''pol_grup_set'', 1, 6, nstat & gt ''intro_sg_select_custom'',''modrel_tea''">set value</a></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>'
  340. $table_display
  341. '</table></center>'
  342. act 'Return': gt 'intro_sg_select_custom','modrel'
  343. end
  344. if $ARGS[0] = 'modrel_oth':
  345. $locM_arg = 'modrel_oth'
  346. '<center><b>Others relationship levels</b></center>'
  347. *nl
  348. killvar '$table_display'
  349. gs 'intro_sg_select_custom', 'modrel_setup', 'A69'
  350. gs 'intro_sg_select_custom', 'modrel_setup', 'A112'
  351. '<center><table border=0 cellspacing=0 cellpadding=25 bgcolor=#808080><TH></TH><TH>Set to zero</TH><TH>Minus 10</TH><TH>Minus 5</TH><TH>Plus 5</TH><TH>Plus 10</TH><TH>Set to 100</TH>'
  352. $table_display
  353. '</table></center>'
  354. !!Volleyball Coach is here because it wasnt being controlled by grup6 the teachers/coaches.
  355. act 'Return': gt 'intro_sg_select_custom','modrel'
  356. end
  357. if $ARGS[0] = 'pol_grup_set':
  358. !!ARGS[1] 0 is boys, 1 is girls. ARGS[2] 1nerd 2jock 3cool 4gopnik 5outcast 6teachers. ARGS[3] is changes to value
  359. r = 1
  360. :pol_grup_set_loop
  361. if npc_gender['A<<r>>'] = ARGS[1] and npc_grupTipe['A<<r>>'] = ARGS[2]:
  362. npc_rel['A<<r>>'] = ARGS[3]
  363. end
  364. r += 1
  365. if r <= aarraynumber :jump 'pol_grup_set_loop'
  366. end
  367. --- intro_sg_select_custom ---------------------------------