You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,22 +20,7 @@ class ToolLeprechaun : Script {
19
20
init {
20
21
npcOperate("Talk-to", "tool_leprechaun*") {
21
22
npc<Happy>("Ah, 'tis a foine day to be sure! Were yez wantin' me to store yer tools, or maybe ye might be wantin' yer stuff back from me?")
22
-
choice("What would you like to say?") {
23
-
yesPlease()
24
-
option<Neutral>("What can you store?") {
25
-
npc<Happy>("We'll hold onto yer rake, yer seed dibber, yer spade, yer secateurs, yer waterin' can and yer trowel - but mind it's not one of them fancy trowels only archaeologists use!")
26
-
npc<Bored>("We'll take a few buckets off yer hands too, and even yer compost, supercompost an' ultracompost! Also plant cure vials.")
27
-
npc<Happy>("Aside from that, if ye hands me yer farming produce, I can mebbe change it into banknotes for ye.")
28
-
npc<Quiz>("So... do ye want to be using the store?")
29
-
choice("What would you like to say?") {
30
-
yesPlease()
31
-
whatDoYouDo()
32
-
noThanks()
33
-
}
34
-
}
35
-
whatDoYouDo()
36
-
noThanks()
37
-
}
23
+
menu()
38
24
}
39
25
40
26
npcOperate("Exchange", "tool_leprechaun*") {
@@ -67,6 +53,25 @@ class ToolLeprechaun : Script {
67
53
}
68
54
}
69
55
56
+
privatesuspendfun Player.menu() {
57
+
choice("What would you like to say?") {
58
+
yesPlease()
59
+
option<Neutral>("What can you store?") {
60
+
npc<Happy>("We'll hold onto yer rake, yer seed dibber, yer spade, yer secateurs, yer waterin' can and yer trowel - but mind it's not one of them fancy trowels only archaeologists use!")
61
+
npc<Bored>("We'll take a few buckets off yer hands too, and even yer compost, supercompost an' ultracompost! Also plant cure vials.")
62
+
npc<Happy>("Aside from that, if ye hands me yer farming produce, I can mebbe change it into banknotes for ye.")
63
+
npc<Quiz>("So... do ye want to be using the store?")
64
+
choice("What would you like to say?") {
65
+
yesPlease()
66
+
whatDoYouDo()
67
+
noThanks()
68
+
}
69
+
}
70
+
whatDoYouDo()
71
+
noThanks()
72
+
}
73
+
}
74
+
70
75
privatefun ChoiceOption.yesPlease() {
71
76
option("Yes please.") {
72
77
open("farming_equipment_store")
@@ -82,6 +87,9 @@ class ToolLeprechaun : Script {
82
87
privatefun ChoiceOption.whatDoYouDo() {
83
88
option("What do you do with the tools you're storing?") {
84
89
player<Quiz>("What do you do with the tools you're storing? They can't possibly all fit in your pockets!")
90
+
npc<Laugh>("We leprechauns have a shed where we keep 'em. It's a magic shed, so ye can get yer items back from any of us leprechauns whenever ye want. Saves ye havin' to carry loads of stuff around the country!")
91
+
npc<Quiz>("So... do ye want to be using the store?")
0 commit comments