Something went wrong

Party Adventure

// Set up
VAR speaker = "Narrator"
VAR music = ""
VAR scene = "Corridor bars"

LIST possible_party_members = Elly, Eddy
VAR party = ()

LIST all_spells = Fireball, Invisibility, Fly, Knock
VAR spells = ()

LIST possible_states = LockedUp, Hurt, Delayed
// You start the game in a jail cell.
VAR state = (LockedUp)
// End set up

-> start

=== start ===
You wake up behind bars fading in and out of consciousness. Elly, your fighter, and Eddy, your rogue are in cells on either side of you but there isn't much you can do in your current state except set up your spell matrix and sleep.

-> rest ->

~speaker = "Eddy"
Wake up! The orc will be back soon with food, and we need to warn the kingdom they're coming. What's the plan? #emote driven

* {spells ? Knock} [Use knock to unlock one of the cells] -> knock_cells
* [Elly! Quick, pick your lock and get free]
  ~party += Elly
  -> wait_for_orc
* [We'll wait, and take them by surprise]
  -> wait_for_orc

-> END

=== knock_cells ===
~speaker = "Narrator"
~spells -= Knock
Whose cell are you going to unlock?

* [Your own]
  ~state -= LockedUp
  -> wait_for_orc
* [Eddy]
  ~party += Eddy
  -> wait_for_orc
* [Elly]
  ~party += Elly
  -> wait_for_orc

=== wait_for_orc ===
~speaker = "Orc"
Huuum de huuum, human dinner.

{
- party ? Eddy:
  -> eddy_kills_orc
- party ? Elly:
  -> elly_free
- not (state ? LockedUp):
  -> you_free
- else:
  -> no_one_free
}

-> prepare_to_run

= eddy_kills_orc
~speaker = "Eddy"
Take that, foul orc! #emote rage

~speaker = "Narrator"
Eddy uses his experience as a fighter to quickly knock out the orc.

-> prepare_to_run

= elly_free
~speaker = "Orc"
Er. Where'd the pretty one go?

* {spells ? Fireball} [Fireball the orc before it can spot Elly]
    ~spells -= Fireball
    ~speaker = "Narrator"
    A fireball streaks out of your cell and incinerates the orc. Poor orc.
    -> prepare_to_run
* [Let Elly sneak out on her own]
    ~speaker = "Narrator"
    Elly is the sneakiest member of your party, and probably the best equipped to sneak back and warn the kingdom alone. Unfortunately you never find out if she succeeds, as the orcs decide to have you and Eddy for dinner.
    -> END
* {spells ? Knock} [Use knock to let out Eddy as well]
    ~spells -= Knock
    -> eddy_kills_orc

= you_free
~speaker = "Orc"
You! How did you get out?

* {spells ? Invisibility} [Turn invisible and flee]
    ~speaker = "Narrator"
    ~spells -= Invisibility
    You promise you'll be back for Eddy and Elly, but for now you disappear with a burst of magic and dash off turn the corridor.
    -> run_down_corridor
* {spells ? Fireball} [Fireball the orc]
    ~spells -= Fireball
    ~speaker = "Narrator"
    A fireball streaks out of your cell and incinerates the orc. Poor orc.
    -> prepare_to_run

= no_one_free
* {spells ? Fireball} [Fireball the orc]
    ~spells -= Fireball
    ~speaker = "Narrator"
    A fireball streaks out of your cell and incinerates the orc. Poor orc.
    -> prepare_to_run
* ->
    ~speaker = "Narrator"
    Well, that's a bit embarrasing. Maybe that wasn't the best preparation you could have made.
    -> END

=== prepare_to_run ===
~speaker = "Narrator"
{
- not (state ? LockedUp) and (party ? Elly) and (party ? Eddy):
  Everyone is ready! Time to set out.
  -> run_down_corridor
- (state ? LockedUp) and not (party ? Elly) and not (party ? Eddy):
  Although you're all still in your cells, in only takes Elly a moment to pick all three locks now there's no guard. But is that a moment you had?

  ~state -= LockedUp
  ~party += (Eddy, Elly)
  ~state += Delayed
- else:
  -> make_decision
}
-> run_down_corridor

= make_decision
With the orc dealt with, you have a tough choice to make. Do you spend the time for Elly to pick all the locks, or do the people who are free set out immediately to avoid a delay?

* [Make sure everyone is free]
    ~state -= LockedUp
    ~party += (Eddy, Elly)
    ~state += Delayed
    -> run_down_corridor
* {state ? LockedUp} [Send off {party} to carry a warning]
    You hope {party} manage to sneak out and warn the kingdom. Unfortunately you never find out if they succeed, as the orcs decide to have prisoners for dinner.
    -> END
* {not (state ? LockedUp)} [Set off with {party}, promising to come back]
    There isn't a moment to lose! You and {party} set off immediately, promising to come back and rescue {possible_party_members - party}.
    -> run_down_corridor

=== run_down_corridor ===
~scene = "Corridor outside"
~speaker = "Narrator"
You run down the corridor and escape. You have {party} with you, and the spells {spells} still available. You {state ? Delayed:were|were not} delayed on the way out.
-> END

=== rest ===
~speaker = "Narrator"
You rest for the night.

// Reset the spell list so the player can always choose the two they want.
~spells = ()

-> pick_spell -> pick_spell ->

You currently have {spells} ready to use.

->->

= pick_spell
Pick a spell to memorize

+ {not (spells ? Fireball)} [Fireball: shoot a ball of fire]
  ~spells += Fireball
+ {not (spells ? Invisibility)} [Invisibility: turn invisibile]
  ~spells += Invisibility
+ {not (spells ? Fly)} [Fly: fly!]
  ~spells += Fly
+ {not (spells ? Knock)} [Knock: unlock a lock by looking at it]
  ~spells += Knock
-
->->