Browse Source

[fixes] menu variables in pavtrainhall

julzor 5 years ago
parent
commit
11414fd440
1 changed files with 15 additions and 21 deletions
  1. 15 21
      locations/pavtrainhall.qsrc

+ 15 - 21
locations/pavtrainhall.qsrc

@@ -197,8 +197,10 @@ if $ARGS[0] = 'work':
 end
 
 if $ARGS[0] = 'ticket':
-	menu_off = 1
-	cls
+	$menu_loc = 'pavtrainhall'
+	$menu_arg = 'ticket'
+	menu_off = 0
+	*clr & cla
 	gs 'stat'
 	'<center><h4>Ticket office</h4></center>'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/kassa.jpg"></center>'
@@ -232,7 +234,9 @@ if $ARGS[0] = 'ticket':
 end
 
 if $ARGS[0] = 'buy_ticket':
-	menu_off = 1
+	$menu_loc = 'pavtrainhall'
+	$menu_arg = 'buy_ticket'
+	menu_off = 0
 
 	act 'Leave the ticket office':minut += 1 & gt 'pavtrainhall'
 
@@ -275,9 +279,7 @@ end
 if $ARGS[0] = 'oldtown':
 	$loc = 'train'
 	$metka = 'oldtown'
-	$menu_loc = 'train'
-	$menu_arg = 'oldtown'
-	menu_off = 0
+	menu_off = 1
 	minut += 5
 	if rand(1, 100) < 20: gt 'train', 'events'
 	gs 'stat'
@@ -292,9 +294,7 @@ end
 if $ARGS[0] = 'village':
 	$loc = 'train'
 	$metka = 'village'
-	$menu_loc = 'train'
-	$menu_arg = 'village'
-	menu_off = 0
+	menu_off = 1
 	minut += 15
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) < 20: gt 'train', 'events'
@@ -310,9 +310,7 @@ end
 if $ARGS[0] = 'communal':
 	$loc = 'train'
 	$metka = 'communal'
-	$menu_loc = 'train'
-	$menu_arg = 'communal'
-	menu_off = 0
+	menu_off = 1
 	minut += 25
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) <= 20: gt 'train', 'events'
@@ -328,9 +326,7 @@ end
 if $ARGS[0] = 'ind':
 	$loc = 'nordtrain'
 	$metka = 'platform'
-	$menu_loc = 'nordtrain'
-	$menu_arg = 'platform'
-	menu_off = 0
+	menu_off = 1
 	minut += 35
 	if rand(1, 100) < 15: gt 'train', 'private'
 	if rand(1, 100) < 30: gt 'train', 'Gopnik'
@@ -348,9 +344,7 @@ end
 if $ARGS[0] = 'centre':
 	$loc = 'cityTrain'
 	$metka = 'inside'
-	$menu_loc = 'cityTrain'
-	$menu_arg = 'inside'
-	menu_off = 0
+	menu_off = 1
 	minut += 40
 	if rand(1, 100) < 15: gt 'train', 'private'
 	if rand(1, 100) < 30: gt 'train', 'Gopnik'
@@ -369,7 +363,7 @@ if $ARGS[0] = 'toilet':
 	$menu_loc = 'pavtrainhall'
 	$menu_arg = 'toilet'
 	menu_off = 0
-	cls
+	*clr & cla
 	vokzalToilet = 0
 	gs 'stat'
 
@@ -389,7 +383,7 @@ if $ARGS[0] = 'female':
 	$menu_arg = 'female'
 	menu_off = 0
 	$location_type = 'bathroom'
-	cls
+	*clr & cla
 	vokzalToilet = 1
 	gs 'stat'
 	'<center><h4>The ladies'' room</h4></center>'
@@ -415,7 +409,7 @@ if $ARGS[0] = 'male':
 	$menu_arg = 'male'
 	menu_off = 0
 	$location_type = 'bathroom'
-	cls
+	*clr & cla
 	vokzalToilet = 2
 	gs 'stat'
 	'<center><h4>The men''s room</h4></center>'