Browse Source

[Fixes] Bad loop method was causing qsp to crash.

VioletKitten 4 years ago
parent
commit
17e76e5d26
1 changed files with 30 additions and 20 deletions
  1. 30 20
      locations/foto_models2.qsrc

+ 30 - 20
locations/foto_models2.qsrc

@@ -1235,28 +1235,22 @@ if $ARGS[0] = 'nush_chat1':
 end
 
 if $ARGS[0] = 'nush_modeling':
-	*clr & cla
-	minut += 5
-	gs 'stat'
-	if nush_model = 1 or nushmodeling_rand = 1:
-		nush_modeling_rand = 0 & gt 'foto_models2', 'nush_photoshoot1'
-	elseif nush_model = 2 or nushmodeling_rand = 2:
-		nush_modeling_rand = 0 & gt 'foto_models2', 'nush_photoshoot2'
-	elseif nush_model = 3 or nushmodeling_rand = 3:
-		nush_modeling_rand = 0 & gt 'foto_models2', 'nush_photoshoot3'
-	elseif nush_model = 4 or nushmodeling_rand = 4:
-		nush_modeling_rand = 0 & gt 'foto_models2', 'nush_photoshoot4'
-	elseif nush_model = 5 or nushmodeling_rand = 5:
-		nush_modeling_rand = 0 & gt 'foto_models2', 'nush_photoshoot5'
+	if nush_model = 0:nush_model = 1
+	if nush_model < 6:
+		gt 'foto_models2', 'nush_photoshoot<<nush_model>>'
 	else
-		nush_modeling_rand = rand(1,5) & gt 'foto_models2', 'nush_modeling'
+		gt 'foto_models2', 'nush_photoshoot<<rand(1,5)>>'
 	end
 end
-	
+
 if $ARGS[0] = 'nush_photoshoot1':
 	*clr & cla
 	minut += 15
-	nush_model += 1
+	if nush_model > 6:
+		nush_model = 6
+	else	
+		nush_model += 1
+	end
 	gs 'stat'
 	'<center><b><font color="maroon">Anushka Photoshoot</font></b></center>'
 	'<center><img src="images/characters/pavlovsk/school/girl/anushka/nush_model/set1/1.jpg"></center>'
@@ -1335,7 +1329,11 @@ end
 if $ARGS[0] = 'nush_photoshoot2':
 	*clr & cla
 	minut += 15
-	nush_model += 1
+	if nush_model > 6:
+		nush_model = 6
+	else	
+		nush_model += 1
+	end
 	gs 'stat'
 	'<center><b><font color="maroon">Anushka Photoshoot</font></b></center>'
 	'<center><img src="images/characters/pavlovsk/school/girl/anushka/nush_model/set2/1.jpg"></center>'
@@ -1406,7 +1404,11 @@ end
 if $ARGS[0] = 'nush_photoshoot3':
 	*clr & cla
 	minut += 15
-	nush_model += 1
+	if nush_model > 6:
+		nush_model = 6
+	else	
+		nush_model += 1
+	end
 	gs 'stat'
 	'<center><b><font color="maroon">Anushka Photoshoot</font></b></center>'
 	'<center><img src="images/characters/pavlovsk/school/girl/anushka/nush_model/set3/1.jpg"></center>'
@@ -1486,7 +1488,11 @@ end
 if $ARGS[0] = 'nush_photoshoot4':
 	*clr & cla
 	minut += 15
-	nush_model += 1
+	if nush_model > 6:
+		nush_model = 6
+	else	
+		nush_model += 1
+	end
 	gs 'stat'
 	'<center><b><font color="maroon">Anushka Photoshoot</font></b></center>'
 	'<center><img src="images/characters/pavlovsk/school/girl/anushka/nush_model/set4/1.jpg"></center>'
@@ -1565,7 +1571,11 @@ end
 if $ARGS[0] = 'nush_photoshoot5':
 	*clr & cla
 	minut += 15
-	nush_model += 1
+	if nush_model > 6:
+		nush_model = 6
+	else	
+		nush_model += 1
+	end
 	gs 'stat'
 	'<center><b><font color="maroon">Anushka Photoshoot</font></b></center>'
 	'<center><img src="images/characters/pavlovsk/school/girl/anushka/nush_model/set5/1.jpg"></center>'