Browse Source

[fixed] Put table into string to remove the breaks QSP adds that cause empty lines at top of page

Kevin_Smarts 2 years ago
parent
commit
aa087b70fd
1 changed files with 19 additions and 18 deletions
  1. 19 18
      locations/pav_disco_classmates.qsrc

+ 19 - 18
locations/pav_disco_classmates.qsrc

@@ -28,16 +28,16 @@ if $ARGS[0] = 'classmates':
 	end
 
 	'<center><b><font color="maroon">Disco</font></b></center>'
-	'<center><table><tr><td colspan = 8>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.</td></tr>'
+	$table_disco = '<center><table><tr><td colspan = 8>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.</td></tr>'
 
 	i = 1
 	i2 = 0
 	:discopop_loop
 		if (npc_grupTipe['A<<i>>'] = 1 or $npc_nickname['A<<i>>'] = 'Natasha') and discoenable['A<<i>>'] = 1 and discobloc['A<<i>>'] ! daystart:
-			if i2 = 0: '<tr>'
+			if i2 = 0: $table_disco += '<tr>'
 			i2 += 1
-			'<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
-			if i2 mod 8 = 0: i2 = 0 & '</tr>'
+			$table_disco += '<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
+			if i2 mod 8 = 0: i2 = 0 & $table_disco += '</tr>'
 		end
 		i += 1
 	if i <= aarraynumber:jump 'discopop_loop'
@@ -45,26 +45,26 @@ if $ARGS[0] = 'classmates':
 	i = 1
 	:discojock_loop
 		if npc_grupTipe['A<<i>>'] = 2 and discoenable['A<<i>>'] = 1 and discobloc['A<<i>>'] ! daystart:
-			if i2 = 0: '<tr>'
+			if i2 = 0: $table_disco += '<tr>'
 			i2 += 1
-			'<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
-			if i2 mod 8 = 0: i2 = 0 & '</tr>'
+			$table_disco += '<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
+			if i2 mod 8 = 0: i2 = 0 & $table_disco += '</tr>'
 		end
 		i += 1
 	if i <= aarraynumber:jump 'discojock_loop'
 	if i2 mod 8 <> 0:
 		:disco_loopi21
 		i2 += 1
-		'<td></td>'
+		$table_disco += '<td></td>'
 		if i2 mod 8 = 0:
 			i2 = 0
-			'</tr>'
+			$table_disco += '</tr>'
 		else
 			jump 'disco_loopi21'
 		end
 	end
 
-	'<tr><td colspan=8>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.</td></tr>'
+	$table_disco += '<tr><td colspan=8>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.</td></tr>'
 
 	i = 1
 	:discogop_loop
@@ -73,17 +73,17 @@ if $ARGS[0] = 'classmates':
 			$loopname = $lcase($loopname)
 			if i2 = 0: '<tr>'
 			i2 += 1
-			'<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
+			$table_disco += '<td width =12.5%><table bgcolor=#FFF8DC><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_firstname[''A<<i>>'']>></td></tr></table></td>'
 			if i2 mod 8 = 0: i2 = 0 & '</tr>'
 		end
 		if i = 144:
 			if i2 mod 8 <> 0:
 				:disco_loopi22
 				i2 += 1
-				'<td></td>'
+				$table_disco += '<td></td>'
 				if i2 mod 8 = 0:
 					i2 = 0
-					'</tr>'
+					$table_disco += '</tr>'
 				else
 					jump 'disco_loopi22'
 				end
@@ -94,22 +94,23 @@ if $ARGS[0] = 'classmates':
 	if i2 mod 8 <> 0:
 		:disco_loopi23
 		i2 += 1
-		'<td></td>'
+		$table_disco += '<td></td>'
 		if i2 mod 8 = 0:
 			i2 = 0
-			'</tr>'
+			$table_disco += '</tr>'
 		else
 			jump 'disco_loopi23'
 		end
 	end
 
 	if soniaPS > 0 and discoenable['A25'] = 1 and discobloc['A25'] ! daystart:
-		'<tr><td><table bgcolor=#FFF8DC><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_firstname[''A25'']>></td></tr></table></td><td colspan=7></td></tr>'
+		$table_disco += '<tr><td><table bgcolor=#FFF8DC><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_firstname[''A25'']>></td></tr></table></td><td colspan=7></td></tr>'
 	end
 	if hour >= 21 and hour < 23 and week=5:
-		'<tr><td bgcolor=#FFF8DC align=left width=12.5%><a href="exec: gt ''VolleyTrenerSpeak''"><img  height="100" src="images/characters/shared/headshots_main/69.jpg"></a></td><td valign=bottom align=left bgcolor=white colspan=7>Coach Mikhail Nikolayevich stands at the enterance of the hall.</td></tr>'
+		$table_disco += '<tr><td bgcolor=#FFF8DC align=left width=12.5%><a href="exec: gt ''VolleyTrenerSpeak''"><img  height="100" src="images/characters/shared/headshots_main/69.jpg"></a></td><td valign=bottom align=left bgcolor=white colspan=7>Coach Mikhail Nikolayevich stands at the enterance of the hall.</td></tr>'
 	end
-	'</table></center>'
+	$table_disco += '</table></center>'
+	$table_disco
 	*nl
 
 	!!display of their headshots in a table like the above $args has.