# SgrupDisco
*clr & cla
gs 'themes', 'food_menu'
gs 'stat'
act 'Move away':gt $loc, $metka
'
Disco'
gs 'gschool_lessons', 'npc_data'
!! First string for popular kids
$textgrup = ''
count1 = 0
i = 1
''
:gruploop
if count1 = 6 : $textgrup += ''
if grupTipe[i] = 1 and discoenable[i] = 1:
count1 += 1
$textgrup += '' + '> align="center"> ' + $npcGo[i]
end
if count1< 6 and grupTipe[i] = 1:
$textgrup += ' | '
elseif count1 = 6 and grupTipe[i] = 1:
$textgrup +='
' & count1 = 0
end
i += 1
if i <= maxnpcs:jump 'gruploop'
!! Force new line for gopniks
$textgrup +='
'
!! Second string for gopniks
$textgrup2 = ''
count1 = 0
i = 1
''
:gruploop2
if count1 = 6 : $textgrup2 += ''
if grupTipe[i] = 4 and discoenable[i] = 1:
count1 += 1
$textgrup2 += '' + '> align="center"> ' + $npcGo[i]
end
if count1< 6 and grupTipe[i] = 4:
$textgrup2 += ' | '
elseif count1 = 6 and grupTipe[i] = 4:
$textgrup2 +='
' & count1 = 0
end
i += 1
if i <= maxnpcs:jump 'gruploop2'
'<<$textgrup>>'
*nl
'<<$textgrup2>>'
'Most the cool kids are dancing, while the gopnics are standing in the corner of the room, keeping to themselves.'
if hour >= 21 and hour < 23 and week=5: 'At the entrance of the disco hall stands Coach Mikhail Nikolayevich'
'
'
--- SgrupDisco ---------------------------------