~nromdotcom/gemif

da1216c169ce884bc933773b790d6408da569f3e — Norm MacLennan 11 months ago 3c3cfaf 0.3.3
Update existing stories to new metadata format
A stories/compiled/ancrime.yml => stories/compiled/ancrime.yml +137 -0
@@ 0,0 1,137 @@
metadata:
  id: ancrime
  name: Freetown
  description: |-
    When a violent murder is uncovered in an anarchist community, community members need to juggle the investigation with keeping outsiders from getting involved and destroying their community.

    Note: This story is currently in-progress (and not very far, at that). Check back later if you want to play a complete story.
  cw:
  - depression
  - violence
  starting_scene: wua
  author: Norm MacLennan
rooms:
- room_id: wua
  room_name: '...'
  room_description: You sense some light on the other side of your eyelids.
  exits:
  - exit_description: '*Ughhh....*'
    destination_id: wub
- room_id: wub
  room_name: '...'
  room_description: You roll over, but it doesn't really help.
  exits:
  - exit_description: '*curl up into a ball*'
    destination_id: wuc
- room_id: wuc
  room_name: '...'
  room_description: '"-hear me? HEY!"'
  exits:
  - exit_description: '"w-uhh?"'
    destination_id: wud
- room_id: wud
  room_name: Dorms
  room_description: |-
    "I said, 'you're gonna miss the general'." You crack your eyelids and see a vaugely-humanoid form.

    Stas reaches their hands out and helpfully opens your eyes the rest of the way. It feels like your eyeballs are burning off like morning dew.
  exits:
  - exit_description: Pull away and clamp your eyes shut.
    destination_id: wue
  - exit_description: '"I''m not going, plus Luis is reporting for my group..."'
    destination_id: wuf
- room_id: wue
  room_name: '...'
  room_description: |-
    You manage to wrestle your head away from Stas' grip. You clamp one hand over your eyes and use the other to haul the blanket back over your head.

    "Let's go! You're the last one still asleep!" Stas says. You don't chance a peek out of the blankets to confirm, but it must be true cause Stas is shouting so loudly.

    Still, it doesn't matter. You weren't planning on going and you'll be damned if Stas is going to force you to.
  exits:
  - exit_description: '"I''m. Not. Going."'
    destination_id: wuf
- room_id: wuf
  room_name: Dorms
  room_description: |-
    You sit up and pull your head out from under the blanket to make sure your point is made, heard, and understood.

    "Look, Stas," you begin. Stas crosses their arms and tosses their head slightly to get their hair off of their face. They cock an eyebrow expectantly.

    "C'mon, Stas, no one's gonna die if I miss one general. Luis is giving the update for the Infra group and there are no planned votes."

    Stas looks at you for a moment then takes a breath. "Oh, you're done whining? Let's go. Plus, there is a vote. It's our block's turn to vote someone onto the DWG. AND it's gonna be you!"

    That wakes you up. "Defense Working Group? What the fuck? No. I'm fine on Infra."

    "Oh?' They look at you incredulously, "define 'fine'."
  exits:
  - exit_description: '"Yeah, I get you. You''re right. Maybe it''s time for a change."'
    destination_id: wui
    set_condition: fordwg
  - exit_description: '"Fine: good, okay, satisfied, content, happy..."'
    destination_id: wug
    set_condition: agdwg
- room_id: wug
  room_name: Dorm
  room_description: |-
    "I'm sorry," Stas laughs, "did you say 'happy'?"

    You start to roll your eyes. This isn't the first time Stas has lectured you. You sit back against the wall and strap in for another one.

    "I mean, look at you," Stas winds up for the usual lecture. "I find you here in bed more and more often these days. Folks are starting to notice you getting a little lax on your dailies."

    You look away, past Stas and across the room. You suddenly notice you're feeling more than just tired, and have been feeling that way for a while now.

    "I think you need a change," they continue, after entirely too long digesting the moment. "And we need it for you. Cause we're all in this together, you know? We need you at your best."

    Stas has sat down on the bunk opposite yours. They look at you from across the aisle, but their gaze makes it feel like they're inside your head.
  exits:
  - exit_description: '"C''mon, Stas. Guilting me isn''t going to help anyone."'
    destination_id: wui
  - exit_description: '"Yeah, I get you. You''re right. Maybe it''s time for a change."'
    destination_id: wui
    set_condition: fordwg
    unset_condition: agdwg
- room_id: wui
  room_name: Dorm
  room_description: |-
    {{- if .ConditionMet "agdwg" -}}
    "Look at it this way: We can sit here all day while I make you feel uncomfortable or we can get our asses over to the general before we miss it."

    You know they mean it and you know they're only trying to do what's best for you. Probably time to stop being a dick about it.

    {{end -}}

    You push yourself up off the bed.

    "I just need a minute," you say, digging out some clothes from the drawers under your bed. "I'll meet you outside."

    Stas looks at you for a beat, deciding if they believe you or not. They stand up, pat you on the back, and walk out.

    "Just hurry up," they call back as they turn the corner into the hallway.

    {{if .ConditionMet "agdwg" -}}
    You stand up with a change of clothes in hand. You look at your bed longingly for a few seconds.

    You feel...well you just want to lay down for a few hours. But Stas has been a good friend and deep down you know they have a point.

    {{end -}}

    You step back from the bed and carry on getting ready.
  exits:
  - exit_description: '"Alright," you murmur, "let''s get this over with."'
    destination_id: gaa
    if_condition: agdwg
  - exit_description: '"Stas is right," you murmur, "it''s time for a change."'
    destination_id: gaa
    set_condition: fordwg
    if_condition: agdwg
    unset_condition: agdwg
  - exit_description: You head out, for the first time in recent memory hopeful about
      the day ahead.
    destination_id: gaa
    if_condition: fordwg
- room_id: gaa
  room_name: General Assembly
  room_description: '{{ .Conditions }}'

M stories/compiled/house_tour.yml => stories/compiled/house_tour.yml +2 -0
@@ 2,6 2,8 @@ metadata:
  id: house_tour
  name: House Tour
  description: Take a walk through my house
  cw: []
  starting_scene: living_room
  author: Norm MacLennan
rooms:
- room_id: back_porch

M stories/compiled/sample_story.yml => stories/compiled/sample_story.yml +2 -0
@@ 2,6 2,8 @@ metadata:
  id: sample_story
  name: Sample Story
  description: A sort of hello world
  cw: []
  starting_scene: the_beginning
  author: Norm MacLennan
rooms:
- room_id: the_beginning

M stories/compiled/tutorial.yml => stories/compiled/tutorial.yml +8 -0
@@ 2,6 2,8 @@ metadata:
  id: tutorial
  name: Writing Tutorial
  description: Documentation on writing GemIF stories
  cw: []
  starting_scene: the_basics
  author: Norm MacLennan
rooms:
- room_id: the_basics


@@ 90,6 92,8 @@ rooms:
    * name: a user-friendly name of your story
    * description: a brief description of what you're story is about
    * author: name or other identifier of the story author.
    * starting_scene: id of the first scene of the story
    * cw: list of content warning tags, if any

    Here's the `metadata.yml` of this story, for reference.



@@ 99,6 103,10 @@ rooms:
      name: Sample Story
      description: A sort of hello world
      author: Norm MacLennan
      starting_scene: the_beginning
      cw:
        - something
        - another thing
    ```
  exits:
  - exit_description: Alright, I get it, I get it. Bring on the advanced features!

A stories/src/ancrime/01-dorms.gemif => stories/src/ancrime/01-dorms.gemif +112 -0
@@ 0,0 1,112 @@
---
# wua ...

You sense some light on the other side of your eyelids.

=> wub *Ughhh....*

---
# wub ...

You roll over, but it doesn't really help.

=> wuc *curl up into a ball*

---
# wuc ...

"-hear me? HEY!"

=> wud "w-uhh?"

---
# wud Dorms

"I said, 'you're gonna miss the general'." You crack your eyelids and see a vaugely-humanoid form.

Stas reaches their hands out and helpfully opens your eyes the rest of the way. It feels like your eyeballs are burning off like morning dew.

=> wue Pull away and clamp your eyes shut.
=> wuf "I'm not going, plus Luis is reporting for my group..."

---
# wue ...

You manage to wrestle your head away from Stas' grip. You clamp one hand over your eyes and use the other to haul the blanket back over your head.

"Let's go! You're the last one still asleep!" Stas says. You don't chance a peek out of the blankets to confirm, but it must be true cause Stas is shouting so loudly.

Still, it doesn't matter. You weren't planning on going and you'll be damned if Stas is going to force you to.

=> wuf "I'm. Not. Going."

---
# wuf Dorms

You sit up and pull your head out from under the blanket to make sure your point is made, heard, and understood.

"Look, Stas," you begin. Stas crosses their arms and tosses their head slightly to get their hair off of their face. They cock an eyebrow expectantly.

"C'mon, Stas, no one's gonna die if I miss one general. Luis is giving the update for the Infra group and there are no planned votes."

Stas looks at you for a moment then takes a breath. "Oh, you're done whining? Let's go. Plus, there is a vote. It's our block's turn to vote someone onto the DWG. AND it's gonna be you!"

That wakes you up. "Defense Working Group? What the fuck? No. I'm fine on Infra."

"Oh?' They look at you incredulously, "define 'fine'."

=> wui {+fordwg} "Yeah, I get you. You're right. Maybe it's time for a change."
=> wug {+agdwg} "Fine: good, okay, satisfied, content, happy..."

---
# wug Dorm

"I'm sorry," Stas laughs, "did you say 'happy'?"

You start to roll your eyes. This isn't the first time Stas has lectured you. You sit back against the wall and strap in for another one.

"I mean, look at you," Stas winds up for the usual lecture. "I find you here in bed more and more often these days. Folks are starting to notice you getting a little lax on your dailies."

You look away, past Stas and across the room. You suddenly notice you're feeling more than just tired, and have been feeling that way for a while now.

"I think you need a change," they continue, after entirely too long digesting the moment. "And we need it for you. Cause we're all in this together, you know? We need you at your best."

Stas has sat down on the bunk opposite yours. They look at you from across the aisle, but their gaze makes it feel like they're inside your head.

=> wui "C'mon, Stas. Guilting me isn't going to help anyone."
=> wui {-agdwg +fordwg} "Yeah, I get you. You're right. Maybe it's time for a change."

---
# wui Dorm
{{- if .ConditionMet "agdwg" -}}
"Look at it this way: We can sit here all day while I make you feel uncomfortable or we can get our asses over to the general before we miss it."

You know they mean it and you know they're only trying to do what's best for you. Probably time to stop being a dick about it.

{{end -}}

You push yourself up off the bed.

"I just need a minute," you say, digging out some clothes from the drawers under your bed. "I'll meet you outside."

Stas looks at you for a beat, deciding if they believe you or not. They stand up, pat you on the back, and walk out.

"Just hurry up," they call back as they turn the corner into the hallway.

{{if .ConditionMet "agdwg" -}}
You stand up with a change of clothes in hand. You look at your bed longingly for a few seconds.

You feel...well you just want to lay down for a few hours. But Stas has been a good friend and deep down you know they have a point.

{{end -}}

You step back from the bed and carry on getting ready.

=> gaa {~agdwg} "Alright," you murmur, "let's get this over with."
=> gaa {~agdwg -agdwg +fordwg} "Stas is right," you murmur, "it's time for a change."
=> gaa {~fordwg} You head out, for the first time in recent memory hopeful about the day ahead.

---
# gaa General Assembly

{{ .Conditions }}
\ No newline at end of file

A stories/src/ancrime/metadata.yml => stories/src/ancrime/metadata.yml +17 -0
@@ 0,0 1,17 @@
---
id: ancrime
name: Freetown
description: >-
  When a violent murder is uncovered in an anarchist community,
  community members need to juggle the investigation with keeping
  outsiders from getting involved and destroying their community.


  Note: This story is currently in-progress (and not very far,
  at that). Check back later if you want to play a complete
  story.
cw:
  - depression
  - violence
starting_scene: wua
author: Norm MacLennan
\ No newline at end of file

M stories/src/house_tour/metadata.yml => stories/src/house_tour/metadata.yml +1 -0
@@ 2,4 2,5 @@
id: house_tour
name: House Tour
description: Take a walk through my house
starting_scene: living_room
author: Norm MacLennan
\ No newline at end of file

M stories/src/sample_story/metadata.yml => stories/src/sample_story/metadata.yml +1 -0
@@ 2,4 2,5 @@
id: sample_story
name: Sample Story
description: A sort of hello world
starting_scene: the_beginning
author: Norm MacLennan
\ No newline at end of file

M stories/src/tutorial/01-basics.gemif => stories/src/tutorial/01-basics.gemif +6 -0
@@ 100,6 100,8 @@ The format is pretty simple and self-explanatory, but for completeness, your `me
* name: a user-friendly name of your story
* description: a brief description of what you're story is about
* author: name or other identifier of the story author.
* starting_scene: id of the first scene of the story
* cw: list of content warning tags, if any

Here's the `metadata.yml` of this story, for reference.



@@ 109,6 111,10 @@ Here's the `metadata.yml` of this story, for reference.
  name: Sample Story
  description: A sort of hello world
  author: Norm MacLennan
  starting_scene: the_beginning
  cw:
    - something
    - another thing
```

=> conditions Alright, I get it, I get it. Bring on the advanced features!

M stories/src/tutorial/metadata.yml => stories/src/tutorial/metadata.yml +1 -0
@@ 2,4 2,5 @@
id: tutorial
name: Writing Tutorial
description: Documentation on writing GemIF stories
starting_scene: the_basics
author: Norm MacLennan
\ No newline at end of file