Skip to content

Commit

Permalink
- Improved frog_creation dialogue again
Browse files Browse the repository at this point in the history
- Added book_purpose dialogue
  • Loading branch information
Dweblenod committed Apr 7, 2024
1 parent 1bb2dfe commit ab6cef9
Show file tree
Hide file tree
Showing 15 changed files with 246 additions and 36 deletions.
28 changes: 23 additions & 5 deletions src/main/generated/resources/assets/minestuck/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,21 @@
"minestuck.dialogue.consort.blown_away": "Someone in the village was blown away in one of the recent wind storms.",
"minestuck.dialogue.consort.blue_moon": "Every once in a blue moon, lightning strikes and burns down the village. We have to rebuild it!",
"minestuck.dialogue.consort.book_food": "We ate all the books in the nearby college ruins. It turns out thousand-year-old leather doesn't make the best dinner.",
"minestuck.dialogue.consort.book_purpose.buy_my_products.a": "I'm feeling generous, so how about this.",
"minestuck.dialogue.consort.book_purpose.buy_my_products.b": "If you want to get started on being an intellectual giant, I can offer you a discounted price on my self help memoir. It's only 5 payments of 8000 boondollars.",
"minestuck.dialogue.consort.book_purpose.buy_my_products.decline": "Yeah no way.",
"minestuck.dialogue.consort.book_purpose.buy_my_products.decline_hard": "Absolutely no chance.",
"minestuck.dialogue.consort.book_purpose.buy_my_products.description": "They show you a book labelled \"Grindset Tales: From Pawn to King (How to follow the Philosopher's Journey)\"",
"minestuck.dialogue.consort.book_purpose.buy_my_products.purchase": "[Purchase book]",
"minestuck.dialogue.consort.book_purpose.fact_2.a": "Fact 2: The louder you are and the more often you interrupt others in a conversation, the higher your IQ is.",
"minestuck.dialogue.consort.book_purpose.fact_2.b": "You already failed this by listening to me patiently but it's okay, you are lucky you have the Master around.",
"minestuck.dialogue.consort.book_purpose.fact_2.request_more": "Got any more wisdom?",
"minestuck.dialogue.consort.book_purpose.start.1": "Lets talk real facts right now. The true purpose of books is not to actually read them, it's about presentation.",
"minestuck.dialogue.consort.book_purpose.start.2": "Actual intellect is all about LOOKING like you know things.",
"minestuck.dialogue.consort.book_purpose.start.2.continue": "[Let them continue enlightening you]",
"minestuck.dialogue.consort.book_purpose.start.2.disagree": "[Disagree]",
"minestuck.dialogue.consort.book_purpose.start.2.disagree.reply": "No I'm pretty sure books are meant to be read.",
"minestuck.dialogue.consort.book_purpose.unenlightened": "That's a pretty low IQ sentiment. To be honest I think you could use some help moving away from such a toxic mindset.",
"minestuck.dialogue.consort.bright_snow.1": "You would think that the light would melt more snow.",
"minestuck.dialogue.consort.bright_snow.2": "But nope, the snow stays as frozen as ever!",
"minestuck.dialogue.consort.bug_treasure": "Legends say underneath the tower to the north is a Captain Lizardtail's buried treasure! Literal tons of bugs, they say!",
Expand Down Expand Up @@ -2302,10 +2317,13 @@
"minestuck.dialogue.consort.floating_island": "I heard a floating island just appeared somewhere near here recently and falling chunks destroyed a village underneath it!",
"minestuck.dialogue.consort.forbidden_snack": "Contrary to popular belief, chalk is not safe for consumption... but how can I resist its allure?",
"minestuck.dialogue.consort.fourth_wall": "Maybe you should do something more productive than talking to NPCs.",
"minestuck.dialogue.consort.frog_creation": "We are thankful for all the frogs that They gave to us when the universe was created. They, of course, is the genesis frog. I feel bad for the fool who has to make another!",
"minestuck.dialogue.consort.frog_creation.no_idea": "No clue. Just sounded like the right thing to say!",
"minestuck.dialogue.consort.frog_creation.no_idea.reply": "Who are \"They\"?",
"minestuck.dialogue.consort.frog_creation.who": "Who are \"They\"?",
"minestuck.dialogue.consort.frog_creation.explain": "The Genesis Frog is the cornerstone of %s beliefs! In the Vast Croak, Our Glorious Speaker brought everything into existence.",
"minestuck.dialogue.consort.frog_creation.explain.doubt": "How do you know They are real?",
"minestuck.dialogue.consort.frog_creation.explain.inside": "Because we are inside Our Glorious Speaker right now!",
"minestuck.dialogue.consort.frog_creation.explain.make": "What did you mean when you said that someone had to make another Genesis Frog?",
"minestuck.dialogue.consort.frog_creation.explain.no_idea": "No clue. Just seemed like it would involve a long quest or something if a new Genesis Frog ever had to be made.",
"minestuck.dialogue.consort.frog_creation.start": "We are thankful for all the frogs that They gave to us when the universe was created. They, of course, is the Genesis Frog. I feel bad for the fool who has to make another!",
"minestuck.dialogue.consort.frog_creation.start.who": "What is the Genesis Frog?",
"minestuck.dialogue.consort.frog_hatred": "For whatever reason, residents of Derse HATE frogs! Why would someone hate frogs?",
"minestuck.dialogue.consort.frog_imitation": "Ribbit, ribbit! I'm a frog! I don't care what you say!",
"minestuck.dialogue.consort.frog_location": "You won't find many frogs where you find villages. Most of them live where the terrain is rougher.",
Expand Down Expand Up @@ -2639,7 +2657,7 @@
"minestuck.dialogue.consort_general_merchant.top_tier": "We have top tier goods for a top tier god!",
"minestuck.dialogue.consort_general_merchant.tower": "I got the goods; they're all recently raided from a nearby tower!",
"minestuck.dialogue.format": "%s: %s",
"minestuck.dialogue.goodbye": "Oh good to know, goodbye.",
"minestuck.dialogue.goodbye": "Oh good to know, bye.",
"minestuck.dialogue.no": "No",
"minestuck.dialogue.sad_face": ":(",
"minestuck.dialogue.shady_consort.peppy_offer.item": "Here you are!",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"node": {
"messages": [
{
"type": "entity",
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.a"
},
{
"type": "entity",
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.b"
},
{
"type": "description",
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.description"
}
],
"responses": [
{
"condition": {
"type": "minestuck:list",
"conditions": [
{
"type": "minestuck:always_true"
}
],
"list_type": "none"
},
"fail_tooltip": "No matter how you feel, you are compelled to decline",
"hide_if_failed": false,
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.purchase"
},
{
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.decline"
},
{
"message": "minestuck.dialogue.consort.book_purpose.buy_my_products.decline_hard"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"node": {
"messages": [
{
"type": "entity",
"message": "minestuck.dialogue.consort.book_purpose.fact_2.a"
},
{
"type": "entity",
"message": "minestuck.dialogue.consort.book_purpose.fact_2.b"
}
],
"responses": [
{
"message": "minestuck.dialogue.consort.book_purpose.fact_2.request_more",
"next_dialogue": {
"id": "minestuck:consort/book_purpose/buy_my_products",
"reply_messages": [],
"set_as_entrypoint": true
}
},
{
"message": "minestuck.dialogue.goodbye"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"node": {
"message": "minestuck.dialogue.consort.book_purpose.start.1",
"responses": [
{
"message": "minestuck.arrow",
"next_dialogue": "minestuck:consort/book_purpose/start.2"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"node": {
"message": "minestuck.dialogue.consort.book_purpose.start.2",
"responses": [
{
"message": "minestuck.dialogue.consort.book_purpose.start.2.disagree",
"next_dialogue": {
"id": "minestuck:consort/book_purpose/unenlightened",
"player_message": "minestuck.dialogue.consort.book_purpose.start.2.disagree.reply",
"set_as_entrypoint": false
}
},
{
"message": "minestuck.dialogue.consort.book_purpose.start.2.continue",
"next_dialogue": "minestuck:consort/book_purpose/fact_2"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"node": {
"message": "minestuck.dialogue.consort.book_purpose.unenlightened",
"responses": [
{
"message": "minestuck.arrow",
"next_dialogue": "minestuck:consort/book_purpose/buy_my_products"
}
]
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node": {
"message": "minestuck.dialogue.consort.frog_creation.explain.inside"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"node": {
"message": {
"arguments": [
"entity_type"
],
"key": "minestuck.dialogue.consort.frog_creation.explain"
},
"responses": [
{
"message": "minestuck.dialogue.consort.frog_creation.explain.doubt",
"next_dialogue": "minestuck:consort/frog_creation/explain.inside"
},
{
"message": "minestuck.dialogue.consort.frog_creation.explain.make",
"next_dialogue": "minestuck:consort/frog_creation/explain.no_idea"
},
{
"message": "minestuck.dialogue.goodbye"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node": {
"message": "minestuck.dialogue.consort.frog_creation.explain.no_idea"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"node": {
"message": "minestuck.dialogue.consort.frog_creation.start",
"responses": [
{
"message": "minestuck.dialogue.consort.frog_creation.start.who",
"next_dialogue": {
"id": "minestuck:consort/frog_creation/explain",
"reply_messages": [],
"set_as_entrypoint": true
}
},
{
"message": "minestuck.dots"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"condition": {
"type": "minestuck:list",
"conditions": [
{
"type": "minestuck:title_land_type",
"land_type": "minestuck:thought"
},
{
"type": "minestuck:entity_type",
"entity_type": "minestuck:nakagator"
}
],
"list_type": "all"
},
"dialogue": "minestuck:consort/book_purpose/start.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"type": "minestuck:title_land_type",
"land_type": "minestuck:frogs"
},
"dialogue": "minestuck:consort/frog_creation"
"dialogue": "minestuck:consort/frog_creation/start"
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private static void consortDialogues(SelectableDialogueProvider provider, Dialog
final DialogueProvider.MessageProducer sadFaceMsg = l.msg("sad_face", ":(");
var yesMsg = l.msg("yes", "Yes");
var noMsg = l.msg("no", "No");
var thanksGoodbyeMsg = l.msg("goodbye", "Oh good to know, goodbye.");
var thanksGoodbyeMsg = l.msg("goodbye", "Oh good to know, bye.");

//Wind
provider.addRandomlySelectable("blown_away", defaultWeight(isInTitleLand(WIND)),
Expand Down Expand Up @@ -213,6 +213,37 @@ private static void consortDialogues(SelectableDialogueProvider provider, Dialog
new NodeBuilder(l.defaultKeyMsg("We ate all the books in the nearby college ruins. It turns out thousand-year-old leather doesn't make the best dinner.")));
provider.addRandomlySelectable("to_eat", defaultWeight(all(isInTitleLand(THOUGHT), isAnyEntityType(IGUANA, NAKAGATOR))),
new NodeBuilder(l.defaultKeyMsg("To eat or not to eat, that is the question.")));
provider.addRandomlySelectable("book_purpose", defaultWeight(all(isInTitleLand(THOUGHT), isAnyEntityType(NAKAGATOR))), new FolderedDialogue(builder ->
{
var buyMyProducts = builder.add("buy_my_products", new NodeBuilder()
.addMessage(l.subMsg("a", "I'm feeling generous, so how about this."))
.addMessage(l.subMsg("b", "If you want to get started on being an intellectual giant, I can offer you a discounted price on my self help memoir. It's only 5 payments of 8000 boondollars."))
.addDescription(l.subMsg("description", "They show you a book labelled \"Grindset Tales: From Pawn to King (How to follow the Philosopher's Journey)\""))
.addResponse(new ResponseBuilder(l.subMsg("purchase", "[Purchase book]")).visibleCondition(resource -> "No matter how you feel, you are compelled to decline", none(alwaysTrue())))
.addResponse(new ResponseBuilder(l.subMsg("decline", "Yeah no way.")))
.addResponse(new ResponseBuilder(l.subMsg("decline_hard", "Absolutely no chance.")))
);

var unenlightened = builder.add("unenlightened", new NodeBuilder(l.defaultKeyMsg("That's a pretty low IQ sentiment. To be honest I think you could use some help moving away from such a toxic mindset."))
.next(buyMyProducts));

var fact2 = builder.add("fact_2", new NodeBuilder()
.addMessage(l.subMsg("a", "Fact 2: The louder you are and the more often you interrupt others in a conversation, the higher your IQ is."))
.addMessage(l.subMsg("b", "You already failed this by listening to me patiently but it's okay, you are lucky you have the Master around."))
.addResponse(new ResponseBuilder(l.subMsg("request_more", "Got any more wisdom?"))
.nextDialogue(buyMyProducts)
.setNextAsEntrypoint())
.addClosingResponse(thanksGoodbyeMsg));

builder.addStart(new ChainBuilder()
.node(new NodeBuilder(l.defaultKeyMsg("Lets talk real facts right now. The true purpose of books is not to actually read them, it's about presentation.")))
.node(new NodeBuilder(l.defaultKeyMsg("Actual intellect is all about LOOKING like you know things."))
.addResponse(new ResponseBuilder(l.subMsg("disagree", "[Disagree]"))
.addPlayerMessage(l.subMsg("disagree.reply", "No I'm pretty sure books are meant to be read."))
.nextDialogue(unenlightened))
.addResponse(new ResponseBuilder(l.subMsg("continue", "[Let them continue enlightening you]"))
.nextDialogue(fact2))));
}));


//Cake
Expand All @@ -238,12 +269,20 @@ private static void consortDialogues(SelectableDialogueProvider provider, Dialog


//Frogs
provider.addRandomlySelectable("frog_creation", defaultWeight(isInTitleLand(FROGS)),
new NodeBuilder(l.defaultKeyMsg("We are thankful for all the frogs that They gave to us when the universe was created. They, of course, is the genesis frog. I feel bad for the fool who has to make another!"))
.addResponse(new ResponseBuilder(l.subMsg("who", "Who are \"They\"?"))
.nextDialogue("no_idea", new NodeBuilder(l.defaultKeyMsg("No clue. Just sounded like the right thing to say!")))
.addPlayerMessage(l.subMsg("no_idea.reply", "Who are \"They\"?")))
.addClosingResponse());
provider.addRandomlySelectable("frog_creation", defaultWeight(isInTitleLand(FROGS)), new FolderedDialogue(builder ->
{
var explain = builder.add("explain", new NodeBuilder(l.defaultKeyMsg("The Genesis Frog is the cornerstone of %s beliefs! In the Vast Croak, Our Glorious Speaker brought everything into existence.", Argument.ENTITY_TYPE))
.addResponse(new ResponseBuilder(l.subMsg("doubt", "How do you know They are real?"))
.nextDialogue("inside", new NodeBuilder(l.defaultKeyMsg("Because we are inside Our Glorious Speaker right now!"))))
.addResponse(new ResponseBuilder(l.subMsg("make", "What did you mean when you said that someone had to make another Genesis Frog?"))
.nextDialogue("no_idea", new NodeBuilder(l.defaultKeyMsg("No clue. Just seemed like it would involve a long quest or something if a new Genesis Frog ever had to be made."))))
.addClosingResponse(thanksGoodbyeMsg));

builder.addStart(new NodeBuilder(l.defaultKeyMsg("We are thankful for all the frogs that They gave to us when the universe was created. They, of course, is the Genesis Frog. I feel bad for the fool who has to make another!"))
.addResponse(new ResponseBuilder(l.subMsg("who", "What is the Genesis Frog?"))
.nextDialogue(explain).setNextAsEntrypoint())
.addClosingResponse());
}));
provider.addRandomlySelectable("frog_location", defaultWeight(isInTitleLand(FROGS)),
new NodeBuilder(l.defaultKeyMsg("You won't find many frogs where you find villages. Most of them live where the terrain is rougher.")));
provider.addRandomlySelectable("frog_imitation", defaultWeight(isInTitleLand(FROGS)),
Expand Down

0 comments on commit ab6cef9

Please sign in to comment.