Browse Source

[added] The possibility to use your car to go to the city suburbs

bgkjdgbizgblzdgbr 3 years ago
parent
commit
475bbc2e03
2 changed files with 32 additions and 1 deletions
  1. 30 1
      locations/carF.qsrc
  2. 2 0
      locations/city_suburbs.qsrc

+ 30 - 1
locations/carF.qsrc

@@ -24,6 +24,7 @@ $enddrive = {
 	if cardrive = 25:gt 'city_island'
 	if cardrive = 26:gt 'pav_industrial'
 	if cardrive = 27:gt 'city_industrial', 'redlight'
+	if cardrive = 28:gt 'city_suburbs', 'start'
 }
 
 if $ARGS[0] = 'start':
@@ -104,6 +105,7 @@ if $ARGS[0] = 'salon':
 	if cardrive = 25:'You cross one of the bridges that leads to the island.'
 	if cardrive = 26:'Through the windshield, you can see Pavlovsk''s industrial region.'
 	if cardrive = 27:'Through the windshield, you see St. Petersburg''s red light district.'
+	if cardrive = 28:'Through the windshield, you see St. Petersburg''s suburbs.'
 
 	if prava = 0:'You don''t have a driver''s license.'
 
@@ -211,7 +213,10 @@ if $ARGS[0] = 'other':
 		act 'Go to your mansion':
 			cla
 
-			if car_town ! 1:
+			if cardrive = 28:
+				minut += 1
+				cardrive = 18
+			elseif car_town ! 1:
 				minut += 60
 				benz -= 1
 				teh -= rand(1, 3)
@@ -228,6 +233,30 @@ if $ARGS[0] = 'other':
 		end
 	end
 
+	if cardrive ! 28:
+		act 'Go to the city suburbs':
+			cla
+
+			if cardrive = 18:
+				minut += 1
+				cardrive = 28
+			elseif car_town ! 1:
+				minut += 60
+				benz -= 1
+				teh -= rand(1, 3)
+				cardrive = 28
+			else
+				minut += 10
+				benz -= 1
+				teh -= rand(1, 3)
+				cardrive = 28
+			end
+
+			'You drive to St. Petersburg''s suburbs.'
+			dynamic $enddrive
+		end
+	end
+
 	if cardrive ! 12:
 		act 'Go to the construction site':
 			cla

+ 2 - 0
locations/city_suburbs.qsrc

@@ -12,6 +12,8 @@ if $ARGS[0]='start':
 	'<center><H4>Elite settlement<H4></center>'
 	'<left><img <<$set_imgh>> src="images/locations/city/suburb/settlement.jpg" ></left>'
 
+	if car > 0 and cardrive = 28:'Your <a href="exec:GS ''carF'', ''start''"><<$car>></a> stands on the street.'
+
     if hour >= 4 and hour <= 23:'The <a href="exec: minut += 5 & gt ''metro'', ''start''">Metro</a> station is only a short walk from here.'
 
 	if AlexandriaQW > 6: