1
0
Selaa lähdekoodia

[fixed] killed the extra line breaks at top of page from table being QSP-y

Kevin_Smarts 2 vuotta sitten
vanhempi
säilyke
9776925dd0
1 muutettua tiedostoa jossa 14 lisäystä ja 10 poistoa
  1. 14 10
      locations/pav_beach_chat.qsrc

+ 14 - 10
locations/pav_beach_chat.qsrc

@@ -11,16 +11,18 @@ if $ARGS[0] = 'beach_hangout':
 	minut += 5
 	if hour < 15 and sunWeather = 1:
 		'<center><b><font color="maroon">Beach</font></b></center>'
-		'<center><table><tr><td colspan = 8>Some of the cool kids and jocks are lounging around tanning and chatting while others are wading and swimming out in the lake.</td></tr>'
+		'Some of the cool kids and jocks are lounging around tanning and chatting while others are wading and swimming out in the lake.'
+		
+		$table_beach = '<center><table><tr>'
 
 		i = 1
 		i2 = 0
 		:beachcool_loop
 			if npc_grupTipe['A<<i>>'] = 1:
-				if i2 = 0: '<tr>'
+				if i2 = 0: $table_beach += '<tr>'
 				i2 += 1
-				'<td width =12.5%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: i = <<i>> & gt ''pav_beach_chat'', ''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_beach += '<td width =12.5%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: i = <<i>> & gt ''pav_beach_chat'', ''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><td colspan=7></td>'
+				if i2 mod 8 = 0: i2 = 0 & $table_beach += '</tr>'
 			end
 			i += 1
 		if i <= aarraynumber:jump 'beachcool_loop'
@@ -28,24 +30,26 @@ if $ARGS[0] = 'beach_hangout':
 		i = 1
 		:beachjock_loop
 			if npc_grupTipe['A<<i>>'] = 2 and i ! 141:
-				if i2 = 0: '<tr>'
+				if i2 = 0: $table_beach += '<tr>'
 				i2 += 1
-				'<td width =12.5%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: i = <<i>> & gt ''pav_beach_chat'', ''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_beach += '<td width =12.5%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: i = <<i>> & gt ''pav_beach_chat'', ''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><td colspan=7></td>'
+				if i2 mod 8 = 0: i2 = 0 & $table_beach += '</tr>'
 			end
 			i += 1
 		if i <= aarraynumber:jump 'beachjock_loop'
 		if i2 mod 8 <> 0:
 			:beach_loopi21
 			i2 += 1
-			'<td></td>'
+			$table_beach += '<td></td>'
 			if i2 mod 8 = 0:
 				i2 = 0
-				'</tr>'
+				$table_beach += '</tr>'
 			else
 				jump 'beach_loopi21'
 			end
-		end		
+		end
+		$table_beach += '</table>'
+		$table_beach
 		act'Go back':gt'pav_lake'
 	else
 		'It seems everyone has had their fill of hanging out at the beach today. You see several of them have already left and the rest are either walking away or are gathering up their stuff and saying their goodbyes to each another. You are soon the last person left.'