Forráskód Böngészése

added father dressing up event

Stephan Fuchs 10 hónapja
szülő
commit
439e7102bc
1 módosított fájl, 26 hozzáadás és 17 törlés
  1. 26 17
      sugarcube/src/npcs/family/stepfather/father.tw

+ 26 - 17
sugarcube/src/npcs/family/stepfather/father.tw

@@ -1,22 +1,31 @@
-:: father_header[include]
-	<h2>Your stepfather, <<=$npc('A28').firstname>> <<=$npc('A28').lastname>></h2>
-	<<image "characters/pavlovsk/resident/vladimir/father.jpg">>
-
 :: father[event]
-<!-- !! Model used - anton nilsson-->
+	<!-- !! Model used - anton nilsson-->
+	<<set _location_dad = $npcs.location('A28')>>
 	<<set $pc.fatherAge = $npc($npc_father).age>>
-	<<gs 'father_header'>>
-	
-	<<=$npc($npc_father).notes>> He is $pc.fatherAge years old.
-	<<fatherRep>>
-	<<ret 'Move away'>>
-
-	<<actCLA 'Ask for money'>>
-		<<addtime 2>>
-		<<gs 'father_header'>>
-		You ask your stepfather for some money, but he shakes his head in response: "I already gave my salary to your mother, go ask her."
-		<<ret 'Move away'>>
-	<</actCLA>>
+
+	<h2>Your stepfather, <<=$npc('A28').fullname>></h2>
+
+	<<if _location_dad.activity.includes('dressingUp')>>
+		<<image "characters/pavlovsk/resident/vladimir/dressSelect.jpg">>
+		<p>
+			<<npc 'A28'>><</npc>> is standing in front of the wardrobe, deciding what to wear today. "Not now, $pc.name_nick, I need to get dressed."
+		</p>
+	<<else>>
+		<<image "characters/pavlovsk/resident/vladimir/father.jpg">>
+		
+		<<=$npc($npc_father).notes>> He is $pc.fatherAge years old.
+		/*<<fatherRep>>*/
+
+		<<actCLA 'Ask for money'>>
+			<<addtime 1>>
+			<h2>Your stepfather, <<=$npc('A28').fullname>></h2>
+			<<image "characters/pavlovsk/resident/vladimir/father.jpg">>
+			You ask your stepfather for some money, but he shakes his head in response: "I already gave my salary to your mother, go ask her."
+			<<ret 'Move away'>>
+		<</actCLA>>
+	<</if>>
+
+	<<ret>>
 
 :: father_events
 /*