initial commit
This commit is contained in:
45
domain/dialog.cat_morning.go
Normal file
45
domain/dialog.cat_morning.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package domain
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
|
||||
func defineCatMorning(g *p.Game) {
|
||||
g.DialogueManager.Register(p.Dialogue{
|
||||
Name: "cat_morning",
|
||||
Start: "start",
|
||||
Nodes: []p.DialogueNode{
|
||||
{
|
||||
Name: "start",
|
||||
Lines: []p.DialogueLine{
|
||||
{Speaker: "cat", Text: "Mióóóóóóóóu. Késő van."},
|
||||
},
|
||||
Choices: []p.DialogueChoice{
|
||||
{
|
||||
Text: "Mindjárt megy a kávé.",
|
||||
Actions: []p.Action{p.SetFlag(FlagPromisedCoffee), p.EndDialogue()},
|
||||
},
|
||||
{
|
||||
Text: "Te etted meg a babot?",
|
||||
Show: p.Not(p.Flag(FlagCupboardOpen)),
|
||||
Actions: []p.Action{p.GotoNode("beans")},
|
||||
},
|
||||
{
|
||||
Text: "Hagyj békén.",
|
||||
Actions: []p.Action{p.EndDialogue()},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "beans",
|
||||
Lines: []p.DialogueLine{
|
||||
{Speaker: "cat", Text: "A szekrényben van. Mindig ott szokott lenni."},
|
||||
},
|
||||
Choices: []p.DialogueChoice{
|
||||
{
|
||||
Text: "Köszi.",
|
||||
Actions: []p.Action{p.EndDialogue()},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user