gandarf turns you into a frog
This commit is contained in:
@@ -147,7 +147,24 @@
|
||||
(actions/talk entities :ego "I don't want to put something in there unless I'm sure I need to."))))
|
||||
|
||||
(defn wizard-dialogue [entities]
|
||||
(actions/do-dialogue entities :ego "Hello there Gandarf!" :wizard "Oh no, not you again!")
|
||||
(if (get-in @entities [:state :has-met-gandarf?])
|
||||
(do (actions/do-dialogue entities :ego "Hello again Gandarf!"
|
||||
:wizard "Not you again!")
|
||||
(actions/talk entities :wizard "I command you, leave at once!" :anim :talk-angry :stop? false)
|
||||
(actions/talk entities :wizard "Don't make me use my powers against you!" :anim :talk-angry :stop? false)
|
||||
(actions/talk entities :wizard "Leave now, or else!" :anim :talk-angry :stop? false)
|
||||
(actions/begin-animation entities :wizard :magic-hands))
|
||||
(do (actions/do-dialogue entities :ego "Hello there Gandarf!"
|
||||
:wizard "Oh no, not you!"
|
||||
:ego "What do you mean, 'not you!'?"
|
||||
:wizard "I mean, you've wrecked my life!"
|
||||
:wizard "I never want to see the likes of you again!"
|
||||
:wizard "Leave!"
|
||||
:ego "But...")
|
||||
(actions/talk entities :wizard "I command you, by all the power I can muster..." :anim :talk-angry :stop? false)
|
||||
(actions/talk entities :wizard "Leave now, or else!" :anim :talk-angry :stop? false)
|
||||
(actions/begin-animation entities :wizard :magic-hands)))
|
||||
(actions/update-state entities (fn [s] (assoc s :has-met-gandarf? true)))
|
||||
(actions/present-choices entities
|
||||
{:choices ["What do you mean, \"Not you again?\""
|
||||
{:run #(actions/respond entities % :wizard "I mean, you've wrecked my life and I never want to see you again.")
|
||||
@@ -236,9 +253,41 @@
|
||||
"You're not happy to see me, Gandarf?"
|
||||
{:run #(actions/respond entities % :wizard "Of course not, you little brat. You've made my life a living hell!")
|
||||
:choices #(-> % zip/left)}
|
||||
"Goodbye, Gandarf!"
|
||||
"Or else what?"
|
||||
{:run #(do (actions/talk entities :ego %)
|
||||
(actions/talk entities :wizard "Or else I'll turn you into a frog!" :anim :talk-angry :stop? false)
|
||||
(actions/begin-animation entities :wizard :magic-hands))
|
||||
:choices ["You don't scare me."
|
||||
{:run
|
||||
#(do
|
||||
(actions/talk entities :ego %)
|
||||
(actions/talk entities :wizard "You asked for it, boy." :anim :talk-angry :stop? false)
|
||||
(actions/talk entities :wizard "Grenouille KALA!!!" :anim :talk-angry :stop? false)
|
||||
(particle-effect! (get-in @entities [:room :entities :magic-frog-particle]) :reset)
|
||||
(particle-effect! (get-in @entities [:room :entities :magic-frog-particle]) :start)
|
||||
(actions/begin-animation entities :ego :frog)
|
||||
(Thread/sleep 2000)
|
||||
(actions/begin-animation entities :wizard :stand)
|
||||
(Thread/sleep 1000)
|
||||
(actions/do-dialogue entities
|
||||
:wizard "I warned you, Tick."
|
||||
:wizard "Now, I will return you to your true state if you leave me in peace."
|
||||
:wizard "Do you promise?")
|
||||
(actions/play-animation entities :ego :frog-nod :stop? false)
|
||||
(actions/talk entities :wizard "Frustatium DISPOSIUM!!!" :anim :talk-angry :stop? false)
|
||||
(particle-effect! (get-in @entities [:room :entities :magic-frog-particle]) :reset)
|
||||
(particle-effect! (get-in @entities [:room :entities :magic-frog-particle]) :start)
|
||||
(Thread/sleep 1500)
|
||||
(actions/transition-background entities :outside-house [257 90] :face :left))}
|
||||
"Okay, okay, I'm leaving."
|
||||
{:run
|
||||
#(do
|
||||
(actions/talk entities :ego %)
|
||||
(actions/transition-background entities :outside-house [257 90] :face :left))}]}
|
||||
"Okay, okay, I'm leaving."
|
||||
{:run #(do
|
||||
(actions/respond entities % :wizard "Now scram!")
|
||||
(actions/talk entities :ego %)
|
||||
(actions/talk entities :wizard "Okay, okay, I'm leaving." :anim :talk-angry)
|
||||
(actions/transition-background entities :outside-house [257 90] :face :left))}]}))
|
||||
|
||||
|
||||
@@ -342,7 +391,7 @@
|
||||
:interactions
|
||||
{:door {:box [250 100 281 160]
|
||||
:script
|
||||
(actions/get-unsaved-script
|
||||
(actions/get-script
|
||||
entities
|
||||
(actions/walk-to entities :ego [257 90] :face :right)
|
||||
(actions/talk entities :ego (str "Anyone home?"))
|
||||
|
||||
Reference in New Issue
Block a user