Advertisement
infinite_ammo

MaeHouse.cs

Oct 29th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.14 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class MaeHouse : SceneMonoBehaviour
  5. {
  6.     public Character mom, dad, bea;
  7.  
  8.     IEnumerator Start()
  9.     {
  10.  
  11.         yield return null;
  12.  
  13.         Debug.LogWarning("Here: " + Data.act + "-" + Data.day);
  14.  
  15.         if (IsActDay(1, 0))
  16.         {
  17.             Debug.LogWarning("in act 1 day 0!!!!");
  18.             mom.Hide();
  19.             dad.Show();
  20.             bea.Hide();
  21.  
  22.             //<<walk Mae Enter wait>>
  23.             yield return Say(Dad, "Where have you been?");
  24.             yield return Say(Mae, "...");
  25.             yield return Say(Mae, "{emote=hotdog}");
  26.             //<<end>>
  27.         }
  28.         else if (IsActDay(1, 1) || IsActDay(2, 1) || IsActDay(2, 2))
  29.         {
  30.             if (Data.night)
  31.             {
  32.                 mom.Hide();
  33.                 dad.Show();
  34.                 bea.Hide();
  35.             }
  36.             else
  37.             {
  38.                 mom.Show();
  39.                 dad.Hide();
  40.                 bea.Hide();
  41.             }
  42.         }
  43.         else if (IsActDay(1, 3))
  44.         {
  45.             if (Data.night)
  46.             {
  47.                 mom.Hide();
  48.                 dad.Hide();
  49.                 bea.Show();
  50.             }
  51.             else
  52.             {
  53.                 mom.Show();
  54.                 dad.Hide();
  55.                 bea.Hide();
  56.             }
  57.         }
  58.     }
  59.  
  60.     public IEnumerator TalkToMom()
  61.     {
  62.         player.Sit();
  63.  
  64.         if (IsActDay(1, 1))
  65.         {
  66.             if (Data.mom == 0)
  67.             {
  68.                 // WelcomeHome
  69.                 yield return Say(Mae, "Hi mom!");
  70.                 yield return Say(Mom, "Welcome home, sweetie!");
  71.                 yield return Say(Mae, "Thanks!");
  72.                 yield return Say(Mom, "Sorry we mixed up the day you were coming back");
  73.                 yield return Say(Mom, "But I think it just got lost in all the hubbub");
  74.                 yield return Say(Mom, "Since it was such short notice!");
  75.                 yield return Say(Mae, "It's okay, mom.");
  76.                 yield return Say(Mom, "Mae honey?");
  77.                 yield return Say(Mae, "Yeah?");
  78.                 yield return Say(Mom, "Is everything ok?");
  79.  
  80.                 Data.mom++;
  81.  
  82.                 yield return Options("Yeah!", "What Do You Mean?");
  83.                 if (option == 0)
  84.                 {
  85.                     // Yeah_A1D1
  86.  
  87.                     yield return Say(Mae, "Yeah Mom, things are good.");
  88.                     yield return Say(Mom, "Well I mean it was a bit alarming to your father and I when you called.");
  89.                     yield return Say(Mom, "I assumed that something was very wrong.");
  90.                     yield return Say(Mae, "No, it just didn't work out at school.");
  91.                     yield return Say(Mom, "What does that mean, honey?");
  92.                     yield return Say(Mae, "Can we talk about this another time?");
  93.                     yield return Say(Mom, "Sure, hon.");
  94.                     yield return Say(Mae, "Thanks, mom.");
  95.  
  96.                     yield return MomWheresGregg();
  97.        
  98.                 }
  99.                 else
  100.                 {
  101.                     // What_A1D1
  102.  
  103.                     yield return Say(Mom, "Honey, did something happen?");
  104.                     yield return Say(Mae, "I just needed to come home.");
  105.                     yield return Say(Mom, "Well sweetie I think you can understand my worry...");
  106.                     yield return Say(Mom, "That's not usually something a college sophomore just up and does...");
  107.                     yield return Say(Mae, "I know.");
  108.                     yield return Say(Mom, "Honey, you can tell me if something happened.");
  109.                     yield return Say(Mae, "Mom, I'm fine. Really. I just");
  110.                     yield return Say(Mae, "I just");
  111.                     yield return Say(Mae, "Can we talk about this another time?");
  112.                     yield return Say(Mom, "Sure, honey. It's ok.");
  113.                     yield return Say(Mae, "Thanks, mom.");
  114.  
  115.                     yield return MomWheresGregg();     
  116.                 }
  117.                
  118.             }
  119.             else if (Data.mom == 1)
  120.             {
  121.                 // News_A1d1
  122.  
  123.                 yield return Say(Mae, "So what's been happening in town?");
  124.                 yield return Say(Mom, "Well, let's see...");
  125.                 yield return Say(Mom, "Did you hear Mrs Crangler died?");
  126.                 yield return Say(Mae, "Who?");
  127.                 yield return Say(Mom, "You remember Mrs Crangler! She taught your girl scout troop how to dance!");
  128.                 yield return Say(Mae, "Oh wow. She was pretty old then, too.");
  129.                 yield return Say(Mom, "Oh she was ancient, honey. She was ancient when I was your age.");
  130.                 yield return Say(Mae, "How did she die?");
  131.                 yield return Say(Mom, "From being ancient, honey.");
  132.                 yield return Say(Mae, "How old was she?");
  133.                 yield return Say(Mom, "115");
  134.                 yield return Say(Mae, "WOW.");
  135.                 yield return Say(Mom, "I know! If this were a contest, she'd have won!");
  136.  
  137.                 Data.mom++;
  138.             }
  139.             else if (Data.mom == 2)
  140.             {
  141.                 // Book_A1D1
  142.  
  143.                 yield return Say(Mom, "Honey you've got to read this book when I'm done with it.");
  144.                 yield return Say(Mae, "What is it?");
  145.                 yield return Say(Mom, "Wellboy. It's a true story about a boy who grew up in a well.");
  146.                 yield return Say(Mom, "His parents didn't want him so they threw him in a well.");
  147.                 yield return Say(Mom, "And he was raised by eels.");
  148.                 yield return Say(Mom, "In a well.");
  149.                 yield return Say(Mae, "Wow.");
  150.  
  151.                 Data.mom++;
  152.             }
  153.             else if (Data.mom == 3)
  154.             {
  155.                 // Loop_A1D1
  156.  
  157.                 yield return Say(Mom, "Eels, honey. EELS.");
  158.             }
  159.         }
  160.         else if (IsActDay(2, 1))
  161.         {
  162.             yield return Say(Mom, "Yo.");
  163.             yield return Say(Mae, "Sup.");
  164.             yield return Say(Mom, "Sinkholes.");
  165.             yield return Say(Mae, "Oh?");
  166.             yield return Say(Mom, "in the town.");
  167.             yield return Say(Mae, "Yes.");
  168.             yield return Say(Mom, "...");
  169.             yield return Say(Mae, "...");
  170.             yield return Say(Mom, "Don't fall in!!!");
  171.             yield return Say(Mae, "Y-yeah? Okay.");
  172.             yield return Say(Mom, "But the stairs in TCE are fixed, so you can go to church!!");
  173.             yield return Say(Mae, "YAAAAAAAAAAAAAAa");
  174.             //<<end>>
  175.         }
  176.         else if (IsActDay(2, 2))
  177.         {
  178.             yield return Say(Mom, "Crazy things happened across town.");
  179.             yield return Say(Mae, "O-Oh?");
  180.             yield return Say(Mae, "Wasn't me...");
  181.         }
  182.     }
  183.  
  184.     public IEnumerator MomWheresGregg()
  185.     {
  186.         yield return Say(Mom, "So are you off to see your friends today?");
  187.         yield return Say(Mom, "I betcha they'll be happy to see you!");
  188.         yield return Say(Mae, "You wouldn't happen to know where Gregg is, would you?");
  189.         yield return Say(Mom, "Oh yeah! Gregg's working down at the Snack Falcon");
  190.         yield return Say(Mom, "Up in Towne Centre West by the Clik Clak.");
  191.  
  192.         yield return Options("I think I'll run over and say hey.", "We have a Snack Falcon now?");
  193.         if (option == 0)
  194.         {
  195.             // [[Thanks_A1D1]]
  196.  
  197.             yield return Say(Mom, "Well, have a good time out there!");
  198.             yield return Say(Mom, "Lots to explore! See what's changed!");
  199.             yield return Say(Mae, "I will!");
  200.             yield return Say(Mom, "Just watch out for all the construction.");
  201.             yield return Say(Mae, "Well it wouldn't be fall in Possum Springs without loads of construction.");
  202.             yield return Say(Mom, "It's so festive, honey.");
  203.             yield return Say(Mae, "I'll be back later!");
  204.             yield return Say(Mom, "Bye, sweetie!");
  205.         }
  206.         else
  207.         {
  208.             // [[SnackFalcon]]
  209.         }
  210.     }
  211.  
  212.     public IEnumerator TalkToBea()
  213.     {
  214.         if (IsActDay(1, 3))
  215.         {
  216.             yield return Say(Bea, "You got drunk! Go to bed.");
  217.         }
  218.     }
  219.  
  220.     public IEnumerator TalkToDad()
  221.     {
  222.         if (IsActDay(2, 1))
  223.         {
  224.             if (Data.dad == 0)
  225.             {
  226.                 yield return Say(Dad, "It is night. And I am tired.");
  227.                 yield return Say(Mae, "I feel the suffering of generations.");
  228.                 yield return Say(Dad, "Fear creeps upon me like a cold blanket.");
  229.                 yield return Say(Mae, "I would hug you, but it wouldn't help.");
  230.                 yield return Say(Dad, "...");
  231.                 yield return Say(Mae, "...");
  232.  
  233.                 Data.dad ++;
  234.        
  235.             }
  236.             else if (Data.dad == 1)
  237.             {
  238.                 yield return Say(Dad, "...");
  239.                 yield return Say(Mae, "It is time for sleep.");
  240.                 yield return Say(Dad, "We can do no better for now.");
  241.                 //<<end>>
  242.             }
  243.         }
  244.        
  245.     }
  246. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement