Pārlūkot izejas kodu

[fixed] You can now ask you sister to take her picture. It will now also remember if you have taken the picture of a person so you can only do i once. Plus some cleanup of the code.

bgkjdgbizgblzdgbr 2 gadi atpakaļ
vecāks
revīzija
e2885c20e4
1 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 9 9
      locations/camera.qsrc

+ 9 - 9
locations/camera.qsrc

@@ -88,7 +88,7 @@ $camera_people['mother'] = {
 	$camera_requirement = (npc_rel['A29'] >= 50 and month > 2 and month < 9)
 }
 
-$camera_people['sister'] = {
+$camera_people['anya'] = {
 	$camera_description = 'Anya'
 	$camera_event = 'anya'
 	$camera_return_loc = ''
@@ -136,7 +136,7 @@ if $ARGS[0] = 'start':
 		! Assign the variables
 		dynamic $camera_locations[iterator]
 		! Show the player unphotographed locations
-		if $camera_found[$camera_event] <> 1: '<<$camera_description>>'
+		if $camera_found[$camera_event] ! 1: '<<$camera_description>>'
 		iterator += 1
 		if iterator < location_count: jump 'location_loop'
 	end
@@ -149,7 +149,7 @@ if $ARGS[0] = 'start':
 		! Assign the variables
 		dynamic $camera_people[iterator]
 		! If the subject has not been photographed and requirements are met (-1), show the name
-		if $camera_found[$camera_event] <> 1 and $camera_requirement = -1: '<<$camera_description>>'
+		if $camera_found[$camera_event] ! 1 and $camera_requirement = -1: '<<$camera_description>>'
 		iterator += 1
 		if iterator < people_count: jump 'people_loop'
 	end
@@ -159,11 +159,11 @@ end
 
 if $ARGS[0] = 'check_location':
 	! If the player has a camera and this location exists in the array
-	if photographyEv >= 2 and $camera_locations[$loc] <> 0:
+	if photographyEv >= 2 and $camera_locations[$loc] ! 0:
 		! Assign the variables
 		dynamic $camera_locations[$loc]
 		! If they have not already photographed the location
-		if $camera_found[$camera_event] <> 1:
+		if $camera_found[$camera_event] ! 1:
 			! Offer the action
 			act 'Photograph the <<$camera_description>>':
 				$camera_found[$camera_event] = 1
@@ -172,7 +172,7 @@ if $ARGS[0] = 'check_location':
 				gt 'camera', $camera_event
 			end
 		! If they photographed the lake but did not trigger the sonia conditions, offer her
-		elseif $camera_event = 'pav_lake' and $camera_found['sonia'] <> 1 and sunWeather = 1 and soniaPS > 0:
+		elseif $camera_event = 'pav_lake' and $camera_found['sonia'] ! 1 and sunWeather = 1 and soniaPS > 0:
 			gs 'camera', 'pav_lake_sonia', 'describe'
 		end
 	end
@@ -181,11 +181,11 @@ end
 if $ARGS[0] = 'check_person':
 	$targetPerson = $ARGS[1]
 	! If the player has a camera and this person exists in the array
-	if photographyEv >= 2 and $camera_people[$targetPerson] <> 0:
+	if photographyEv >= 2 and $camera_people[$targetPerson] ! 0:
 		! Assign the variables
 		dynamic $camera_people[$targetPerson]
 		! If they have not already photographed the person
-		if $camera_found[$targetPerson] <> 1 and $camera_requirement = -1:
+		if $camera_found[$targetPerson] ! 1 and $camera_requirement = -1:
 			! Offer the action
 			act 'Ask to take a photo':
 				$camera_found[$targetPerson] = 1
@@ -194,9 +194,9 @@ if $ARGS[0] = 'check_person':
 		end
 	end
 
-	KILLVAR '$targetPerson'
 end
 
+
 if $ARGS[0] = 'eugene':
 	*clr & cla
 	npc_rel['A89'] += 1