1
0
Kaynağa Gözat

[WIP] restructured sister-file

Stephan Fuchs 5 ay önce
ebeveyn
işleme
40a5314da8
1 değiştirilmiş dosya ile 35 ekleme ve 2 silme
  1. 35 2
      sugarcube/src/npcs/family/sister/sister.tw

+ 35 - 2
sugarcube/src/npcs/family/sister/sister.tw

@@ -1,6 +1,39 @@
-:: sister
+:: sister[event]
 <!-- !!model Valentina Azarov - Megan Vale - Lupe Burnett-->
 
+<<set _location_sister ??= $npcs.location('A33')>>
+
+<<switch $location_var[$here][0]>>
+	<<case undefined>>
+		<<if _location_sister.activity.includes('breakfast')>>
+			<<gs 'sister' 'breakfast'>>
+		<<elseif _location_sister.activity.includes('cleanBreakfast')>>
+			<<gs 'sister' 'cleanBreakfast'>>
+		<<else>>
+			dressingUp
+			dinner
+			communityCenter - friends / workout
+			cleanDinner
+		<</if>>
+	<<case 'breakfast'>>
+		<h2><<=$npc('A33').firstname>></h2>
+		<<image 'locations/pavlovsk/resident/apartment/home/breakfasthome.jpg'>>
+		<<act 'Join Breakfast (0:20)'>>
+			<<gt 'breakfast_family'>>
+		<</act>>
+		<p>
+			<<npc 'A33'>><</npc>> is eating breakfast with the other members of the family. You could join them.
+		</p>
+		<<ret>>
+	<<case 'cleanBreakfast'>>
+		<h2><<=$npc('A33').firstname>></h2>
+		<<image 'locations/pavlovsk/resident/apartment/home/breakfastCleanup.jpg'>>
+		<p>
+			<<npc 'A33'>><</npc>> is budy cleaning the breakfast table.
+		</p>
+		<<ret>>
+<</switch>>
+/*
 <h2><<=$npc('A33').firstname>></h2>
 <<image "characters/pavlovsk/resident/anya/sister#.jpg" 1 3>>
 Your sister <<=$npc('A33').firstname>> is a bit older than you. She is <<=$npc($npc_sister).age>> years old. She graduated from school, but didn''t go to the university. She works at Pavlovsk''s local supermarket.
@@ -545,4 +578,4 @@ Your sister <<=$npc('A33').firstname>> is a bit older than you. She is <<=$npc($
 	<<actCLA 'Leave'>>
 		<<gt 'pav_commcenter'>>
 	<</actCLA>>
-<</if>>
+<</if>> */