123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- # gschool_groups
- !2021/05/02
- ! 14/09/22 - edited link to work with new hournal.
- !npc_grupTipe[i] - social group
- !1 - popular
- !2 - jocks
- !3 - nerds
- !4 - Gopnik
- !5 - outcasts
- !6 - teachers
- !1-5 use $npcGoSchool
- !6 use $npcGo
- if $ARGS[0] = 'teachers':
- killvar '$teach_text'
- killvar 'teach_count'
- '<center><table cellspacing="3">'
- i = 1
- :teach_loop
- if npc_grupTipe['A<<i>>'] = 6 and schoolenable['A<<i>>'] = 1:
- $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>'
- teach_count += 1
- if teach_count = 6:
- $teach_text +='</tr><tr>'
- teach_count = 0
- end
- end
- i += 1
- if i <= aarraynumber:jump 'teach_loop'
- '<<$teach_text>>'
- '</table></center>'
- killvar 'i'
- end
- if $ARGS[0] = 'nerds':
- $nerd_text = ''
- nerd_count = 0
- '<center><table cellspacing="3">'
- i = 1
- :nerd_loop
- if npc_grupTipe['A<<i>>'] = 3 and schoolenable['A<<i>>'] = 1:
- $lcase_nerd = $lcase($npc_usedname['A<<i>>'])
- $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>'
- nerd_count += 1
- if nerd_count = 6:
- $nerd_text +='</tr><tr>'
- nerd_count = 0
- end
- end
- i += 1
- if i <= aarraynumber:jump 'nerd_loop'
- '<<$nerd_text>>'
- '</table></center>'
- killvar 'i'
- killvar '$lcase_nerd'
- end
- if $ARGS[0] = 'jocks':
- $jock_text = ''
- jock_count = 0
- '<center><table cellspacing="3">'
- i = 1
- :jock_loop
- if npc_grupTipe['A<<i>>'] = 2 and schoolenable['A<<i>>'] = 1:
- $lcase_jock = $lcase($npc_usedname['A<<i>>'])
- $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>'
- jock_count += 1
- if jock_count = 6:
- $jock_text +='</tr><tr>'
- jock_count = 0
- end
- end
- i += 1
- if i <= aarraynumber:jump 'jock_loop'
- '<<$jock_text>>'
- '</table></center>'
- killvar 'i'
- killvar '$lcase_jock'
- end
- if $ARGS[0] = 'popular':
- $pop_text = ''
- pop_count = 0
- '<center><table cellspacing="3">'
- i = 1
- :pop_loop
- if npc_grupTipe['A<<i>>'] = 1 and schoolenable['A<<i>>'] = 1:
- $lcase_pop = $lcase($npc_usedname['A<<i>>'])
- $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>'
- pop_count += 1
- if pop_count = 6:
- $pop_text +='</tr><tr>'
- pop_count = 0
- end
- end
- i += 1
- if i <= aarraynumber: jump 'pop_loop'
- '<<$pop_text>>'
- '</table></center>'
- killvar 'i'
- killvar '$lcase_pop'
- end
- if $ARGS[0] = 'gopniks':
- $gop_text = ''
- gop_count = 0
- '<center><table cellspacing="3">'
- i = 1
- :gop_loop
- if npc_grupTipe['A<<i>>'] = 4 and schoolenable['A<<i>>'] = 1:
- $lcase_gop = $lcase($npc_usedname['A<<i>>'])
- $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>'
- gop_count += 1
- if gop_count = 6:
- $gop_text +='</tr><tr>'
- gop_count = 0
- end
- end
- i += 1
- if i <= aarraynumber: jump 'gop_loop'
- '<<$gop_text>>'
- '</table></center>'
- killvar 'i'
- killvar '$lcase_gop'
- end
- if $ARGS[0] = 'outcasts':
- $oc_text = ''
- oc_count = 0
- '<center><table cellspacing="3">'
-
- i = 1
- :oc_loop
- if npc_grupTipe['A<<i>>'] = 5 and schoolenable['A<<i>>'] = 1:
- $lcase_oc = $lcase($npc_usedname['A<<i>>'])
- $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>'
- oc_count += 1
- if oc_count = 6:
- $oc_text +='</tr><tr>'
- oc_count = 0
- end
- end
- i += 1
- if i <= aarraynumber: jump 'oc_loop'
- '<<$oc_text>>'
- '</table></center>'
- killvar 'i'
- killvar '$lcase_oc'
- end
- --- gschool_groups ---------------------------------
|