Commit bb618e15 authored by Mitchie Maluschnig's avatar Mitchie Maluschnig
Browse files

characters will prompt you to talk to ahava before conversing with you

parent 483f446f
......@@ -71,6 +71,7 @@ public class AhavaSpeech : MonoBehaviour, Character {
currentResponses = responseQueue.Dequeue();
return conversation.Dequeue();
} else {
GameManager.HasTalkedToAhava = true;
return nothingMoreToSay();
}
}
......
......@@ -97,23 +97,28 @@ public class JohnSmithSpeech : MonoBehaviour, Character {
}
private void conversationStage1() {
conversation.Enqueue("welcome to the circus");
responseQueue.Enqueue(new string[] { "response 1" });
if (GameManager.HasTalkedToAhava) {
conversation.Enqueue("welcome to the circus");
responseQueue.Enqueue(new string[] { "response 1" });
conversation.Enqueue("line 2");
responseQueue.Enqueue(new string[] { "response 2", "response 2" });
conversation.Enqueue("line 2");
responseQueue.Enqueue(new string[] { "response 2", "response 2" });
conversation.Enqueue("line 3");
responseQueue.Enqueue(new string[] { "response 3", "response 3", "response 3" });
conversation.Enqueue("line 3");
responseQueue.Enqueue(new string[] { "response 3", "response 3", "response 3" });
conversation.Enqueue("line 4");
responseQueue.Enqueue(new string[] { "response 4", "response 4" });
conversation.Enqueue("line 4");
responseQueue.Enqueue(new string[] { "response 4", "response 4" });
conversation.Enqueue("line 5");
responseQueue.Enqueue(new string[] { "response 5", "response 5", "response 5" });
conversation.Enqueue("line 5");
responseQueue.Enqueue(new string[] { "response 5", "response 5", "response 5" });
conversation.Enqueue("line 6");
responseQueue.Enqueue(new string[] { "response 6" });
conversation.Enqueue("line 6");
responseQueue.Enqueue(new string[] { "response 6" });
} else {
conversation.Enqueue("talk to the bearded lady before you start clowning around");
responseQueue.Enqueue(new string[] { "okay", "that was a terrible joke" });
}
}
private void conversationStage2() {
......
......@@ -55,20 +55,24 @@ public class SilasSpeech : MonoBehaviour, Character {
}
public string nothingMoreToSay() {
currentResponses = new string[] {"wow, tell me more", "my ears are bleeding" };
switch (Random.Range(0,10)) {
case 0: return "1";
case 1: return "2";
case 2: return "3";
case 3: return "4";
case 4: return "5";
case 5: return "6";
case 6: return "7";
case 7: return "8";
case 8: return "9";
case 9: return "10";
default:
return "...";
if (GameManager.HasTalkedToAhava) {
currentResponses = new string[] { "wow, tell me more", "my ears are bleeding" };
switch (Random.Range(0, 10)) {
case 0: return "1";
case 1: return "2";
case 2: return "3";
case 3: return "4";
case 4: return "5";
case 5: return "6";
case 6: return "7";
case 7: return "8";
case 8: return "9";
case 9: return "10";
default:
return "...";
}
} else {
return "...";
}
}
......@@ -105,23 +109,39 @@ public class SilasSpeech : MonoBehaviour, Character {
}
private void conversationStage1() {
conversation.Enqueue("HaHaHa got you! Thought i was a mime didnt ya?");
responseQueue.Enqueue(new string[] { "wow you fooled me!", "nah not really" });
if (GameManager.HasTalkedToAhava) {
conversation.Enqueue("HaHaHa got you! Thought i was a mime didnt ya?");
responseQueue.Enqueue(new string[] { "wow you fooled me!", "nah not really" });
conversation.Enqueue("The names Silas, they call me the unspeakable round here");
responseQueue.Enqueue(new string[] { "why is that", "cant think why" });
conversation.Enqueue("The names Silas, they call me the unspeakable round here");
responseQueue.Enqueue(new string[] { "why is that", "cant think why" });
conversation.Enqueue("Not really sure why they call me unspeakable but it sounds cool doesnt it.");
responseQueue.Enqueue(new string[] { "Yes!", "people are taking the piss m8" });
conversation.Enqueue("Not really sure why they call me unspeakable but it sounds cool doesnt it.");
responseQueue.Enqueue(new string[] { "Yes!", "people are taking the piss m8" });
conversation.Enqueue("anyway have you seen my show 'Mime Mime' its the talk of the circus");
responseQueue.Enqueue(new string[] { "not yet", "ive played it!", "isnt that just a rip off?" });
conversation.Enqueue("anyway have you seen my show 'Mime Mime' its the talk of the circus");
responseQueue.Enqueue(new string[] { "not yet", "ive played it!", "isnt that just a rip off?" });
conversation.Enqueue("...well its mostly just me talking about it but they say its the best");
responseQueue.Enqueue(new string[] { "keep talking!", "okay stop now" });
conversation.Enqueue("...well its mostly just me talking about it but they say its the best");
responseQueue.Enqueue(new string[] { "keep talking!", "okay stop now" });
conversation.Enqueue("...well i say its the best");
responseQueue.Enqueue(new string[] { "It is great!", "please stop talking" });
} else{
conversation.Enqueue("...");
responseQueue.Enqueue(new string[] { "?" });
conversation.Enqueue("...well i say its the best");
responseQueue.Enqueue(new string[] { "It is great!", "please stop talking" });
conversation.Enqueue("....");
responseQueue.Enqueue(new string[] { "?" });
conversation.Enqueue(".......");
responseQueue.Enqueue(new string[] { "?" });
conversation.Enqueue("...................................");
responseQueue.Enqueue(new string[] { "?" });
conversation.Enqueue("....Talk to the bearded lady....");
responseQueue.Enqueue(new string[] { "Oh right" });
}
}
private void conversationStage2() {
......
......@@ -92,24 +92,29 @@ public class SimonSpeech : MonoBehaviour, Character {
}
private void conversationStage1() {
conversation.Enqueue("grR");
responseQueue.Enqueue(new string[] { "GRR", "..." });
private void conversationStage1() {
if (GameManager.HasTalkedToAhava) {
conversation.Enqueue("grR");
responseQueue.Enqueue(new string[] { "GRR", "..." });
conversation.Enqueue("GrR");
responseQueue.Enqueue(new string[] { "GRR", "umm" });
conversation.Enqueue("GrR");
responseQueue.Enqueue(new string[] { "GRR", "umm" });
conversation.Enqueue("gRR");
responseQueue.Enqueue(new string[] { "GRR", "you sound funny" });
conversation.Enqueue("gRR");
responseQueue.Enqueue(new string[] { "GRR", "you sound funny" });
conversation.Enqueue("GRr");
responseQueue.Enqueue(new string[] { "GRR", "sorta, non bearish" });
conversation.Enqueue("GRr");
responseQueue.Enqueue(new string[] { "GRR", "sorta, non bearish" });
conversation.Enqueue("GRR");
responseQueue.Enqueue(new string[] { "GRR", "..." });
conversation.Enqueue("GRR");
responseQueue.Enqueue(new string[] { "GRR", "..." });
conversation.Enqueue("grr");
responseQueue.Enqueue(new string[] { "GRR", "..." });
conversation.Enqueue("grr");
responseQueue.Enqueue(new string[] { "GRR", "..." });
} else {
conversation.Enqueue("grr (you should talk to the BEARded lady over there)");
responseQueue.Enqueue(new string[] { "okay" });
}
}
private void conversationStage2() {
......
......@@ -7,11 +7,13 @@ public class GameManager : MonoBehaviour {
public static float AhavaLevel;
public static float SilasLevel = 1.3f;
public static float SimonLevel = 1.3f;
public static float JohnLevel = 2.1f;
public static float JohnLevel = 1.1f;
public static int ConversationStage;
public static int speechState;
public static bool HasTalkedToAhava;
// Use this for initialization
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment