Преглед изворни кода

[added] Menu variables for N

KevinSmarts пре 5 година
родитељ
комит
55018811ee

+ 3 - 0
locations/NatBelGo.qsrc

@@ -1,4 +1,7 @@
 # NatBelGo
+
+menu_off = 1
+
 gs 'stat'
 '<center><b><font color="maroon"><<$npc_firstname[''A16'']>> <<$npc_lastname[''A16'']>></font></b></center>'
 '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/16.jpg"></center>'

+ 1 - 0
locations/NatBelHome.qsrc

@@ -1,6 +1,7 @@
 # NatBelHome
 
 $location_type = 'indoors'
+menu_off = 1
 CLOSE ALL
 if BeInNatBelHome = 0:BeInNatBelHome = 1
 

+ 1 - 3
locations/NatBelVhod.qsrc

@@ -1,9 +1,7 @@
 # NatBelVhod
 CLOSE ALL
 
-cla
-clr
-
+menu_off = 1
 if BeInNatBelHome = 0:BeInNatBelHome = 1
 gs'stat'
 

+ 11 - 4
locations/NewCloShop.qsrc

@@ -4,6 +4,9 @@ $location_type = 'event'
 if $ARGS[0] = 'start':
 	$metka = 'start'
 	$loc = 'NewCloShop'
+	$menu_loc = 'NewCloShop'
+	$menu_arg = 'start'
+	menu_off = 0
 	gs 'stat'
 
 	gs 'themes', 'indoors'
@@ -29,7 +32,8 @@ end
 if $ARGS[0] = 'clothes':
 	$metka = 'clothes'
 	$loc = 'NewCloShop'
-	cls
+	menu_off = 1
+	*clr & cla
 	gs'stat'
 	'<center><b><font color="maroon">Viewing Fashionista clothing</font></b></center>'
 	*nl
@@ -71,7 +75,8 @@ end
 if $ARGS[0] = 'panties':
 	$metka = 'panties'
 	$loc = 'NewCloShop'
-	cls
+	menu_off = 1
+	*clr & cla
 	gs'stat'
 
 	act 'Return':
@@ -103,7 +108,8 @@ end
 if $ARGS[0] = 'bras':
 	$metka = 'bras'
 	$loc = 'NewCloShop'
-	cls
+	menu_off = 1
+	*clr & cla
 	gs'stat'
 
 	act 'Return':
@@ -134,7 +140,8 @@ end
 if $ARGS[0] = 'purses':
 	$metka = 'purses'
 	$loc = 'NewCloShop'
-	cls
+	menu_off = 1
+	*clr & cla
 	gs'stat'
 
 	act 'Return':

+ 2 - 0
locations/NikoDates.qsrc

@@ -1,5 +1,7 @@
 # NikoDates
 
+menu_off = 1
+
 if $ARGS[0] = 'Date 1_1':
 	cls
 	NikoDate_Day = daystart

+ 2 - 0
locations/NikoDreams.qsrc

@@ -1,5 +1,7 @@
 # NikoDreams
 
+menu_off = 1
+
 if $ARGS[0] =  'Family':
 	cls
 	pcs_hairbsh = 0

+ 1 - 0
locations/NikoEv.qsrc

@@ -1,6 +1,7 @@
 # NikoEv
 
 !! Nikolai Niko Volkov Romance  numnpc = 61  npc_rel['A189'] !!
+menu_off = 1
 
 if $ARGS[0] = 'Intro':
 	cls

+ 2 - 0
locations/NikoEv2.qsrc

@@ -1,5 +1,7 @@
 # NikoEv2
 
+menu_off = 1
+
 if $ARGS[0] =  'Park':
 	cls
 	if pav_sex < 230:pav_sex = 250

+ 2 - 0
locations/NikoPayback.qsrc

@@ -1,5 +1,7 @@
 # NikoPayback
 
+menu_off = 1
+
 if $ARGS[0] = 'Payback':
 	cls
 	NikoPayback_Day = daystart

+ 2 - 0
locations/NikoSlut.qsrc

@@ -1,5 +1,7 @@
 # NikoSlut
 
+menu_off = 1
+
 if $ARGS[0] = 'Customers':
 	if NikoSlut = 2 and NikoDiner > 0:
 		NikoCust = rand(1,16)

+ 8 - 10
locations/NormPR.qsrc

@@ -2,12 +2,11 @@
 $location_type = 'event'
 
 if $ARGS[0] = '1':
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metka = ''
+	$loc = 'NormPR'
+	menu_off = 1
 
-	cla
-	clr
-	*clr
+	*clr & cla
 	prosti = 0
 	protect = 1
 	gs'stat'
@@ -36,12 +35,11 @@ if $ARGS[0] = '1':
 end
 
 if $ARGS[0] = '2':
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metka = ''
+	$loc = 'NormPR'
+	menu_off = 1
 
-	cla
-	clr
-	*clr
+	*clr & cla
 	prosti = 0
 	gs'stat'
 

+ 12 - 3
locations/Nudelake.qsrc

@@ -27,6 +27,7 @@ end
 if temper >= 15 and month >= 5 and month <= 9:
 	if ARRSIZE('swimwear') > 0 and $clothingworntype ! 'swimwear':
 		act'Change into your swimwear':
+			menu_off = 1
 			cla
 			*clr
 			minut+=5
@@ -49,6 +50,7 @@ end
 if temper >= 15 and month >= 5 and month <= 9:
 	if $clothingworntype ! 'nude':
 		act'Take off your clothes':
+			menu_off = 1
 			if pcs_inhib > 30:
 				cla
 				*clr
@@ -107,7 +109,10 @@ end
 
 if $ARGS[0] = 'voleybol':
 	$location_type = 'event_outdoors'
-	cls
+	$menu_loc = 'Nudelake'
+	$menu_arg = 'voleybol'
+	menu_off = 0
+	*clr & cla
 	minut += 1
 	'<center><img <<$set_imgh>> src="images/locations/city/residential/lake/voleybol.jpg"></center>'
 	'You go to the volleyball court.'
@@ -116,6 +121,7 @@ if $ARGS[0] = 'voleybol':
 	act 'Leave':gt 'Nudelake'
 
 	act 'Play':
+		menu_off = 1
 		cla
 		*clr
 		agil_exp += 1
@@ -132,11 +138,12 @@ end
 
 if $ARGS[0] = 'zagarat':
 	$location_type = 'event_outdoors'
-	cls
+	*clr & cla
 	minut += 30
 	if pcs_sweat < 35 : pcs_sweat += 5
 	inhib_exp += rand(1,3)
 	pcs_mood += 5
+	menu_off = 1
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/city/residential/lake/nudezagarat.jpg"></center>'
 
@@ -161,6 +168,7 @@ end
 
 if $ARGS[0] = 'swim':
 	$location_type = 'event_outdoors'
+	menu_off = 0
 	cla
 	*clr
 	pcs_makeup = 1
@@ -185,7 +193,8 @@ end
 
 if $ARGS[0] = 'smotr':
 	$location_type = 'event_outdoors'
-	cls
+	menu_off = 0
+	*clr & cla
 	minut += 30
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/city/residential/lake/voleybol.jpg"></center>'

+ 2 - 1
locations/narkopriton.qsrc

@@ -1,8 +1,9 @@
 # narkopriton
 
-cls
+*clr & cla
 gs 'stat'
 gs 'themes', 'indoors'
+menu_off = 1
 '<center><b>Local drug den</b></center>'
 '<center><img <<$set_imgh>> src="images/locations/city/residential/den/narkopriton.jpg"></center>'
 'A local drug den, where you know addicts come to buy and use heroin in peace.'

+ 3 - 0
locations/nastja.qsrc

@@ -1,4 +1,7 @@
 # nastja
+
+menu_off = 1
+
 if $ARGS[0] = 'pos1':
 	cla
 	*clr

+ 2 - 0
locations/nogorslut.qsrc

@@ -1,5 +1,7 @@
 # nogorslut
 
+menu_off = 1
+
 if pav_slut < 125:
 	if pcs_apprnc/8 = 0:
 		npc_rel[$static_num] += 1

+ 33 - 15
locations/nordtrain.qsrc

@@ -1,12 +1,15 @@
 # nordtrain
 
 if $ARGS[0] = 'inside':
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metka = 'inside'
+	$loc = 'nordtrain'
+	$menu_loc = 'nordtrain'
+	$menu_arg = 'inside'
+	menu_off = 0
 	$location_type = 'public_indoors'
 	CLOSE ALL
 	if sound = 0:PLAY 'sound/vokzal.mp3',30
-	cls
+	*clr & cla
 	gs'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/vokzalholle.jpg" ></center>'
 	'There is a <a href="exec:GT ''dort''">path</a> leading off in to the distance, in the direction of the lake.'
@@ -22,10 +25,13 @@ if $ARGS[0] = 'inside':
 end
 
 if $ARGS[0] = 'outside':
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metka = 'outside'
+	$loc = 'nordtrain'
+	$menu_loc = 'nordtrain'
+	$menu_arg = 'inside'
+	menu_off = 0
 	$location_type = 'public_outdoors'
-	cls
+	*clr & cla
 	gs'stat'
 	'<center><B>Railway station</B></center>'
 	'<center><img <<$set_imgh>> src="images/locations/city/shared/trainstation/vokzal.jpg"></center>'
@@ -48,10 +54,13 @@ if $ARGS[0] = 'outside':
 end
 
 if $ARGS[0] = 'platform':
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metka = 'platform'
+	$loc = 'nordtrain'
+	$menu_loc = 'nordtrain'
+	$menu_arg = 'inside'
+	menu_off = 0
 	$location_type = 'public_outdoors'
-	cls
+	*clr & cla
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
 	'When you arrive at the platform, you can''t help but notice it bustling with activity. Lots of passengers are coming and going, all carrying large bags. It feels like it is always busy here, no matter at what time of the day you are here.'
@@ -72,10 +81,13 @@ if $ARGS[0] = 'platform':
 end
 
 if $ARGS[0] = 'toilet':
-	$metkaM = $ARGS[0]
-	$locM = $CURLOC
-	$metka = $ARGS[0]
-	$loc = $CURLOC
+	$metkaM = 'toilet'
+	$locM = 'nordtrain'
+	$metka = 'toilet'
+	$loc = 'nordtrain'
+	$menu_loc = 'nordtrain'
+	$menu_arg = 'inside'
+	menu_off = 0
 	$location_type = 'bathroom'
 	
 	*clr & cla
@@ -97,7 +109,8 @@ if $ARGS[0] = 'toilet':
 end
 
 if $ARGS[0] = 'ticket':
-	cls
+	menu_off = 1
+	*clr & cla
 	gs 'stat'
 	'<center><h4>Ticket office</h4></center>'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/kassa.jpg"></center>'
@@ -173,7 +186,8 @@ end
 if $ARGS[0] = 'centre':
 	$loc = 'cityTrain'
 	$metka = 'inside'
-	cls
+	menu_off = 1
+	*clr & cla
 	minut += 5
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/electri.jpg"></center>'
@@ -189,6 +203,7 @@ end
 if $ARGS[0] = 'communal':
 	$loc = 'train'
 	$metka = 'communal'
+	menu_off = 1
 	minut += 10
 	if rand(1, 100) < 20: gt 'train', 'events'
 	gs 'stat'
@@ -203,6 +218,7 @@ end
 if $ARGS[0] = 'village':
 	$loc = 'train'
 	$metka = 'village'
+	menu_off = 1
 	minut += 20
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) < 20: gt 'train', 'events'
@@ -218,6 +234,7 @@ end
 if $ARGS[0] = 'oldtown':
 	$loc = 'train'
 	$metka = 'oldtown'
+	menu_off = 1
 	minut += 30
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) < 20: gt 'train', 'events'
@@ -233,6 +250,7 @@ end
 if $ARGS[0] = 'pavlovsk':
 	$loc = 'pavtrainhall'
 	$metka = 'platform'
+	menu_off = 1
 	minut += 35
 	if rand(1, 100) < 15: gt 'train', 'private'
 	if rand(1, 100) < 30: gt 'train', 'Gopnik'

+ 1 - 0
locations/noticeboard.qsrc

@@ -2,6 +2,7 @@
 !! use gs 'noticeboard','start'
 $location_type = 'public_indoors'
 if $ARGS[0] = 'start':
+	menu_off = 1
 	gs 'saveposition'
 	gt 'noticeboard','look'
 end

+ 4 - 0
locations/nyp_school.qsrc

@@ -3,6 +3,9 @@
 if $ARGS[0] = 'start':
 	alkoblock = 1
 	killvar 'nyp_day'
+	$menu_loc = 'nyp_school'
+	$menu_arg = 'start'
+	menu_off = 0
 	*clr & cla
 	gs 'stat'
 	if music_on = 1:
@@ -23,6 +26,7 @@ if $ARGS[0] = 'start':
 		fat += 3
 		pcs_energy += 40
 		pcs_hydra += 60
+		menu_off = 1
 		gs 'stat'
 		if music_on = 1:
 			$track_loop = 'sound/newyear.mp3'