Browse Source

[canged] Moves the variable os Anushka's brother's quest into an array.

bgkjdgbizgblzdgbr 3 years ago
parent
commit
5b93240666

+ 3 - 3
locations/anushapt.qsrc

@@ -240,9 +240,9 @@ if $ARGS[0] = 'home':
 				end
 			end
 		else
-			if maksimQW = 0:
+			if maksimQW['QWstage'] = 0:
 				*clr & cla
-				maksimQW = 1
+				maksimQW['QWstage'] = 1
 				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/anushapt/maksim.jpg"></center>'
 				'You stand outside the Konstantinov household and wait for Anushka to open the door, but Maksim answers instead.'
 				'He looks you over from head to toe, obviously trying to imagine you naked. "What?" he asks.'
@@ -365,7 +365,7 @@ if $ARGS[0] = 'bathroom':
 					act 'Get out of the shower': gt 'anushapt','bathroom'
 				end
 			end
-		elseif temp = 1 and maksimQW >= 5:
+		elseif temp = 1 and maksimQW['QWstage'] >= 5:
 			inhib_exp += 1
 			'Despite the pattering noise of the running water, you hear the bathroom door creaking slightly. Looking past the shower curtain you see that the bathroom door has been cracked open a little bit. Through the small crack in the doorway, you notice Maksim, Anushka''s younger brother, peeking in to watch you shower.'
 			act 'Yell at him':

+ 10 - 10
locations/anushaptbr.qsrc

@@ -14,8 +14,8 @@ if $ARGS[0] = 'brotherroom':
 	
 	act 'Leave':gt 'anushapt', 'hallway'
 	
-	if AnushkaLoc = 3 and maksimQW = 0:
-		maksimQW = 1
+	if AnushkaLoc = 3 and maksimQW['QWstage'] = 0:
+		maksimQW['QWstage'] = 1
 		menu_off = 1
 		minut += 5
 		gs 'stat'
@@ -62,8 +62,8 @@ if $ARGS[0] = 'brotherroom':
 				end
 			end
 		end
-	elseif AnushkaLoc = 3 and maksimQW = 1:
-		if maksimQW = 1: maksimQW = 2
+	elseif AnushkaLoc = 3 and maksimQW['QWstage'] = 1:
+		if maksimQW['QWstage'] = 1: maksimQW['QWstage'] = 2
 		menu_off = 1
 		minut += 3
 		gs 'stat'
@@ -137,8 +137,8 @@ if $ARGS[0] = 'brotherroom':
 	elseif AnushkaLoc ! 3:
 		brotherroom = rand(1,6)
 		menu_off = 1
-		if brotherroom = 1 and maksimQW >= 3:
-			if maksimQW = 3: maksimQW = 4
+		if brotherroom = 1 and maksimQW['QWstage'] >= 3:
+			if maksimQW['QWstage'] = 3: maksimQW['QWstage'] = 4
 			minut += 2
 			gs 'stat'
 			'You open the door and look in the brothers'' room. You see the boys sitting there talking about something. Maksim is maybe 13 or 14, the age when boys start paying attention to girls. Timofey is about a year or two younger.'
@@ -183,9 +183,9 @@ if $ARGS[0] = 'brotherroom':
 					end	
 				end
 			end	
-		elseif brotherroom = 2 and maksimQW >= 4:
+		elseif brotherroom = 2 and maksimQW['QWstage'] >= 4:
 			gs 'stat'
-			if maksimQW = 4: maksimQW = 5
+			if maksimQW['QWstage'] = 4: maksimQW['QWstage'] = 5
 			'You open the door and look in the brothers'' room. You see the two brothers fighting on Maksim''s bed. They immediately stop when they see you.'
 			act 'What are you doing?':
 				*clr & cla
@@ -219,9 +219,9 @@ if $ARGS[0] = 'brotherroom':
 					end
 				end	
 			end
-		elseif brotherroom = 3 and maksimQW >= 2:
+		elseif brotherroom = 3 and maksimQW['QWstage'] >= 2:
 			gs 'stat'
-			if maksimQW = 2: maksimQW = 3
+			if maksimQW['QWstage'] = 2: maksimQW['QWstage'] = 3
 			'You open the door and look in the brothers'' room. You see Maksim in there alone, playing some first person shooter on the PlayStation.'
 			act 'Ask where Timofey is':
 				*clr & cla

+ 1 - 1
locations/anushkachat.qsrc

@@ -608,7 +608,7 @@ if $ARGS[0] = 'chat':
 		'She looks a bit surprised as well as a bit abashed, which is a new look on her. "Yeah sorry, I didn''t think about it. Feel free to just grab something if you want in the future, but come on."'
 		act 'Follow her':gt 'anushapt','snack'
 	end
-	if maksimQW >= 3:
+	if maksimQW['QWstage'] >= 3:
 		act 'Rematch with your brothers':
 			*clr & cla
 			minut += 1

+ 1 - 1
locations/saveg.qsrc

@@ -16,6 +16,6 @@
 version_major = 0
 version_minor = 8
 version_revision = 2
-version_patch = 4
+version_patch = 5
 --- saveg ---------------------------------
 

+ 6 - 0
locations/saveupdater.qsrc

@@ -961,6 +961,12 @@ if ((100*version_major +version_minor)*100+version_revision)*100+version_patch
 
 end
 
+if ((100*version_major +version_minor)*100+version_revision)*100+version_patch  < 00080205:
+
+	!! Migrates Anushka''s brother''s quest into a array.
+	if maksimQW > 0: maksimQW['QWstage'] = maksimQW
+
+end
 
 
 --- saveupdater ---------------------------------