Advertisement
leafbarrett

siren text v0.1

Mar 11th, 2017
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.98 KB | None | 0 0
  1. if(npc.life < (int)(npc.lifeMax/3)){
  2.     if(nurse >= 0 && Main.rand.Next(4) == 0)
  3.     {
  4.         return Main.player[Main.myPlayer].name + ", please, go find " + Main.npc[nurse].displayName + "...";
  5.     }
  6.     //if both player and siren are nearly dead
  7.     else if (playerHP < playerMaxHP * 0.33){
  8.         switch (Main.rand.Next(3))
  9.         {
  10.             case 0:
  11.                 return "placeholder both crit 2";
  12.             case 1:
  13.                 return "placeholder both crit 3";
  14.             default:
  15.                 return "placeholder both crit 1";
  16.         }
  17.     }
  18.     //if only siren is nearly dead
  19.     switch (Main.rand.Next(3))
  20.     {
  21.         case 0:
  22.             return "placeholder siren crit 2";
  23.         case 1:
  24.             return "placeholder siren crit 3";
  25.         default:
  26.             return "I can't take much more of this... Even goddesses have their limits...";
  27.     }
  28. }
  29. //if player is nearly dead
  30. else if (playerHP < playerMaxHP * 0.33){
  31.     if(nurse >= 0 && Main.rand.Next(4) == 0)
  32.     {
  33.         return "Oh my gosh, " + Main.player[Main.myPlayer].name + "! Someone, get " + Main.npc[nurse].displayName + " over here, now!";
  34.     }
  35.     switch (Main.rand.Next(3))
  36.     {
  37.         case 0:
  38.             return "placeholder player crit 2";
  39.         case 1:
  40.             return "placeholder player crit 3";
  41.         default:
  42.             return "Stay close to me, " + Main.player[Main.myPlayer].name + ". I'll protect you.";
  43.     }
  44. }
  45. //if alien invasion
  46. //if siren HP is low
  47. else if(npc.life < (int)(2*npc.lifeMax/3))
  48. {
  49.     if (playerHP < playerMaxHP * 0.67){
  50.         if(nurse >= 0){
  51.             switch (Main.rand.Next(9))
  52.             {
  53.                 case 0:
  54.                     return "Are you alright? Maybe you should go see " + Main.npc[nurse].displayName + ". I know she's rude, but she IS good at her job.";
  55.                 case 1:
  56.                     return "That injury looks pretty bad... I think you should go get" + Main.npc[nurse].displayName + " to patch that up.";
  57.                 default:
  58.                     break;
  59.             }
  60.         }
  61.         switch (Main.rand.Next(7))
  62.         {
  63.             case 0:
  64.                 return "Are you okay, " + Main.player[Main.myPlayer].name + "? You're limping...";
  65.             case 1:
  66.                 return "That gash looks pretty bad. Hold on, there should be a healing potion around here somewhere, I think...";
  67.             case 2:
  68.                 return "You look like you're in pain, " + Main.player[Main.myPlayer].name + "... Maybe you should hang back for a bit until you're feeling better.";
  69.             default:
  70.                 break;
  71.         }
  72.     }
  73.     if(dealer >= 0 && Main.rand.Next(4) == 0){
  74.         return "If " + Main.npc[dealer].displayName + " sells guns, then why do I rarely see him using one? I can't fight off every hostile creature alone...";
  75.     }
  76.     else if(nurse >= 0 && Main.rand.Next(3) == 0){
  77.         return "Have you seen " + Main.npc[nurse].displayName + " around today? This cut is deeper than I realized.";
  78.     }
  79.     switch (Main.rand.Next(2))
  80.     {
  81.         case 0:
  82.             return "You wouldn't happen to have any spare healing potions, would you, " + Main.npc[dealer].displayName + "? I'm actually hurting a little right now...";
  83.         default:
  84.             return "I'm not feeling so well. Things have been surprisingly harsh lately.";
  85.     }
  86. }
  87. //if player HP is low
  88. else if (playerHP < playerMaxHP * 0.67){
  89.     if(nurse >= 0){
  90.         switch (Main.rand.Next(9))
  91.         {
  92.             case 0:
  93.                 return "Are you alright? Maybe you should go see " + Main.npc[nurse].displayName + ". I know she's rude, but she IS good at her job.";
  94.             case 1:
  95.                 return "That injury looks pretty bad... I think you should go get" + Main.npc[nurse].displayName + " to patch that up.";
  96.             default:
  97.                 break;
  98.         }
  99.     }
  100.     switch (Main.rand.Next(7))
  101.     {
  102.         case 0:
  103.             return "Are you okay, " + Main.player[Main.myPlayer].name + "? You're limping...";
  104.         case 1:
  105.             return "That gash looks pretty bad. Hold on, there should be a healing potion around here somewhere, I think...";
  106.         case 2:
  107.             return "You look like you're in pain, " + Main.player[Main.myPlayer].name + "... Maybe you should hang back for a bit until you're feeling better.";
  108.         default:
  109.             break;
  110.     }
  111. }
  112. //if solar eclipse
  113. //if blood moon
  114. //if pirate invasion
  115. //general
  116. else if(cyborg >= 0 && steampunker >= 0 && Main.rand.Next(10) == 0){
  117.     return Main.npc[dealer].displayName + " keeps asking me advice on how to sweep " + Main.npc[angler].displayName + " off her feet. I didn't realize humans had so much trouble with courtship. What about you? Do you need any dating advice?";
  118. }
  119. else if(dealer >= 0 && Main.rand.Next(9) == 0){
  120.     return Main.npc[dealer].displayName + " could really stand to learn that it's only cute when I'm the one making moves... If I hear one more cheesy pickup line or innuendo from that man, I'm tossing him into the ocean.";
  121. }
  122. else if (angler >= 0 && Main.rand.Next(8) == 0)
  123. {
  124.     return "I'd strongly appreciate you have a word with " + Main.npc[angler].displayName + " about his hours. I had figured a moonlight swim would have been safe, but nooo...";
  125. }
  126. else if (dryad >= 0)
  127. {
  128.     switch (Main.rand.Next(7))
  129.     {
  130.         case 0:
  131.             return "Please let " + Main.npc[dryad].displayName + " know I apologize for last week. I didn't realize she actually thought she hid modesty beneath that overgrowth. Hmhmhm~";
  132.         case 1:
  133.             return Main.npc[dryad].displayName + " always uses her age for why she's always so serious, as if 500 years means anything - I'm 10 times that age! Between you and me, I think she just needs to loosen up a little.";
  134.         default:
  135.             break;
  136.     }
  137. }
  138. else if (mechanic >= 0 && tinkerer >= 0 && Main.rand.Next(5) == 0)
  139. {
  140.     return "Look, I know that he keeps telling me to stop playing matchmaker, and I respect that... But " + Main.npc[tinkerer].displayName + " really WOULD be cute with " + Main.npc[mechanic].displayName + ", right?";
  141. }
  142. else if (angler >= 0 && Main.rand.Next(4) == 0)
  143. {
  144.     return Main.npc[guide].displayName + "'s always asking me questions about what lies below the waves. With how much mankind knows about the rest of Terra, I never would have guessed that they knew so little about its oceans!";
  145. }
  146. switch (Main.rand.Next(3))
  147. {
  148.     case 0:
  149.         return "I'm glad we've been getting so friendly lately. Would you like a private concert later? ... Or, perhaps something more... interesting? Hmhmhm~";
  150.     case 1:
  151.         return "placeholder 3";
  152.     default:
  153.         return "Oh, hello, " + Main.player[Main.myPlayer].name + "! Good to see you again. Are you well?";
  154. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement