소스 검색

[WIP] restructured sister-file

Stephan Fuchs 10 달 전
부모
커밋
40a5314da8
1개의 변경된 파일35개의 추가작업 그리고 2개의 파일을 삭제
  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>> */