Explorar el Código

[edit] switching to npcstatic variables + code simplification

CroWke hace 5 años
padre
commit
188d50ebdb
Se han modificado 1 ficheros con 23 adiciones y 23 borrados
  1. 23 23
      locations/krutishi.qsrc

+ 23 - 23
locations/krutishi.qsrc

@@ -1,20 +1,20 @@
 # krutishi
-if grupTipe[numnpc] = 1:
-	if npcPol[numnpc] = 0 and pcs_hairbsh = 0:
-		npc_rel[$static_num] -= 5
-		'<<$npc_firstname[$static_num]>> looks at you and smiles at your messy hair.'
-	elseif npcPol[numnpc] = 1 and pcs_hairbsh = 0:
-		npc_rel[$static_num] -= 5
-		'<<$npc_firstname[$static_num]>> looks at you and smiles at your messy hair.'
-	elseif npcPol[numnpc] = 0 and pcs_hairbsh > 0 and $loc = 'gdkin' and npc_rel[$static_num] >= 40:
+if npc_grupTipe['A<<numnpc>>'] = 1:
+	if npc_gender['A<<numnpc>>'] = 0 and pcs_hairbsh = 0:
+		npc_rel['A<<numnpc>>'] -= 5
+		'<<$npc_firstname[''A<<numnpc>>'']>> looks at you and smiles at your messy hair.'
+	elseif npc_gender['A<<numnpc>>'] = 1 and pcs_hairbsh = 0:
+		npc_rel['A<<numnpc>>'] -= 5
+		'<<$npc_firstname[''A<<numnpc>>'']>> looks at you and smiles at your messy hair.'
+	elseif npc_gender['A<<numnpc>>'] = 0 and pcs_hairbsh > 0 and $loc = 'gdkin' and npc_rel['A<<numnpc>>'] >= 40:
 		if PCloSkirt > 0:
 			cla
-			'<<$npc_firstname[$static_num]>>: "Care for a dance?"'
+			'<<$npc_firstname[''A<<numnpc>>'']>>: "Care for a dance?"'
 
 			act 'Dance':
 				cls
 				minut += 30
-				npc_rel[$static_num] += 5
+				npc_rel['A<<numnpc>>'] += 5
 				pcs_stam -= 5
 				pcs_sweat += 3
 				fat -= 1
@@ -31,7 +31,7 @@ if grupTipe[numnpc] = 1:
 
 				act 'You need a break - Move away':gt $loc, $metka
 
-				if numnpc = 4 and npc_rel[$static_num] >= 80:
+				if numnpc = 4 and npc_rel['A4'] >= 80:
 					!!Igor Kruglov
 					pcs_horny += 10
 					gs 'stat'
@@ -74,7 +74,7 @@ if grupTipe[numnpc] = 1:
 							exit
 						end
 
-						if npc_rel[1] = 0:
+						if npc_rel['A1'] = 0:
 							'Igor whispers into your ear: "Dimka told me that you dumped him. I get it, he can be a real asshole sometime."' 
 							'He pauses for a second. "<<$pcs_nickname>>, want to go outside and get some air?"'
 							'You feel that you could use some fresh air and agree.'
@@ -87,20 +87,20 @@ if grupTipe[numnpc] = 1:
 						dynamic $din_igor__disco
 						exit
 					end
-				elseif numnpc = 1 and npc_rel[$static_num] >= 80 and DimaRudeQW > 0:
+				elseif numnpc = 1 and npc_rel['A1'] >= 80 and DimaRudeQW > 0:
 					'After the dance, Dimka holds onto your hand. "Let''s go outside."'
 
-					act 'Refuse':npc_rel[$static_num] -= 5 & gt $loc, $metka
+					act 'Refuse':npc_rel['A1'] -= 5 & gt $loc, $metka
 					act 'Go outside with Dimka':
 						cls
 						gs 'stat'
 						'You leave the club with Dimka and let him lead you away, to a more secluded spot. It doesn''t come as too big of a surprise when he turns to you with an imperious look. "You''re going to suck my dick now, pig."'
 
-						act 'Refuse':npc_rel[$static_num] -= 5 & gt $loc, $metka
+						act 'Refuse':npc_rel['A1'] -= 5 & gt $loc, $metka
 
 						dynamic $din_predlog_dima_bj
 					end
-				elseif numnpc = 1 and npc_rel[$static_num] >= 80 and DimaRudeQW = 0:
+				elseif numnpc = 1 and npc_rel['A1'] >= 80 and DimaRudeQW = 0:
 					'After the dance, Dimka keeps your hand in his. "Let''s go outside and get some fresh air."'
 
 					act 'Go outside with Dimka':
@@ -111,15 +111,15 @@ if grupTipe[numnpc] = 1:
 						act 'No - This is all too sudden':
 							cls
 							gs 'stat'
-							'<center><b><font color="maroon"><<$npc_firstname[$static_num]>> <<$npc_lastname[$static_num]>></font></b></center>'
-							'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/<<numnpc>>.jpg"></center>'
+							'<center><b><font color="maroon"><<$npc_firstname[''A1'']>> <<$npc_lastname[''A1'']>></font></b></center>'
+							'<center><img <<$set_imgh>> src="images/pc/npc_headshots/big1.jpg"></center>'
 							'You tell him "No" and give him an apologetic look. But to your surprise, Dimka grins. "Don''t be shy, <<$pcs_nickname>>, of course you want to go out with me. Why else would you be hanging out with me?"'
 
 							act 'Well, maybe you do have a little crush on him':
 								cls
 								gs 'stat'
-								'<center><b><font color="maroon"><<$npc_firstname[$static_num]>> <<$npc_lastname[$static_num]>></font></b></center>'
-                                '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/<<numnpc>>.jpg"></center>'
+								'<center><b><font color="maroon"><<$npc_firstname[''A1'']>> <<$npc_lastname[''A1'']>></font></b></center>'
+                                '<center><img <<$set_imgh>> src="images/pc/npc_headshots/big1.jpg"></center>'
 								'"I don''t know", you say, embarrassed, "maybe?"'
 								'Dimka smiles and hugs you. "Of course. I knew it from the start. But... You know, I can''t be going out with some sort of nun - most girls here are prudes. I want a girl who knows how to enjoy herself... and you know how to have fun, right?"' 
 								'You nod carefully. Where is he going with this?'
@@ -133,8 +133,8 @@ if grupTipe[numnpc] = 1:
 						act 'Yes - You''ve always wanted a boyfriend like him':
 							cls
 							gs 'stat'
-							'<center><b><font color="maroon"><<$npc_firstname[$static_num]>> <<$npc_lastname[$static_num]>></font></b></center>'
-							'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/<<numnpc>>.jpg"></center>'
+							'<center><b><font color="maroon"><<$npc_firstname[''A1'']>> <<$npc_lastname[''A1'']>></font></b></center>'
+							'<center><img <<$set_imgh>> src="images/pc/npc_headshots/big1.jpg"></center>'
 							'You were a little surprised by his directness but respond "Yes".'
 							'Dimka smiles. "Of course. I knew it from the start. But... You know, I can''t be going out with some sort of nun - most girls here are prudes. I want a girl who knows how to enjoy herself... and you know how to have fun, right?"' 
 							'You nod carefully. Where is he going with this?'
@@ -145,7 +145,7 @@ if grupTipe[numnpc] = 1:
 				end
 			end
 
-			act 'Refuse':npc_rel[$static_num] -= 5 & gt $loc, $metka
+			act 'Refuse':npc_rel['A<<numnpc>>'] -= 5 & gt $loc, $metka
 
 		exit