PumpkinPatchWelcome to the pumpkin patch.
Shall we [[just go trick or treating|Programming the Rules]]
Or
Shall we [[Enter the Cemetary|Enter]]
The Pumpkin Patch is a narrative game. Written for Spoopy Jam 2019.
###Narrative Premise
Many moons ago it was discovered that in the small town of Dunheir there is a cemetery. Within this cemetery there are many tombstones without names. The townsfolk say the cemetery is haunted every couple of years the spirits in the graveyard return.
One year a group of kids thought it would be funny to plant some pumpkin seeds in the cemetery. When the spirits returned that year it is said that the spirits inhabited the pumpkins. Floating around the cemetery and town.
This year you and your friends have decided to go to the cemetery. The spirits have returned. You will need to survive the night.
###Game Rules
Each hour takes 1 hunger. When you reach a hunger of 0 you lose.
You will explore the cemetery. You will meet strange spirits. Each spirit will impart knowledge on you. Will you trick them or treat them? Each choice will provide an interesting part of the journey.
Starting with 20 Hunger and 20 health. Survive the night.(set: $hunger to 20)
(set: $candy to 2)
(set: $system to (array:) )
(set: $timeleft to 15)
[[Trick or Treat|TrickOrTreat 1]]You can continue on to the next neighborhood,
(link: "Trick or Treat")[
(set: $hunger to it - 1)
(set: $timeleft to it - 1)
(goto: "TrickOrTreat 2")
]
Or go house to house?
[(display: "HUD")]<HUD|
(display: "Generate System")
(display: "Display System")
<br>
You can continue on to the next neighborhood,
(link: "Trick or Treat")[
(set: $hunger to it - 1)
(set: $timeleft to it - 1)
(goto: "TrickOrTreat 1")
]
[(display: "HUD")]<HUD|
(display: "Generate System")
(display: "Display System")
<br>{
(set: _houses to (range: 0, (random: 1,5)))
(set: $system to (array:))
(for: each _i, ..._houses )[
(set: $system to it + (a: (either: "House A", "House B", "House C")))
]
} {
(for: each _house, ...$system)[
(if: _house is "House A")[
House porch lights are on.
(link: _house)[
(display: "Show Outcome - Trick")
]
]
(if: _house is "House B")[
House porch lights are on.
(link: _house)[
(display: "Show Outcome - Treat")
]
]
(if: _house is "House C")[
House porch lights are off.
]
<br>
]
}<br>
(align: "=><==")[Hunger: $hunger | Candy: $candy | Time Left: $timeleft]
(display: "Check Status")
{
(set: _percentage to (random: 1, 10) )
(if: _percentage is 1)[
(set: _foundCandy to (random: 4, 7) )
Your costume is a hit with this house. They give you a handful of candy.
(+_foundCandy to candy)
(set: $candy to it + _foundCandy)
] (else-if: _percentage is >= 6)[
(set: _foundHealth to (random: 1, 3) )
You take a break from Trick or Treating. You snack on one of your candies.
(+_foundHealth to hunger)
(set: $hunger to it + _foundHealth )
(set: $candy to it -1)
] (else:) [
You knock on the door. A costumed character comes to the door. Hands you a piece of candy. Cause that's how it works.
(set: $candy to it + 2)
]
(replace: ?HUD)[(display: "HUD")]
} {
(set: _percentage to (random: 1, 10) )
(if: _percentage is >= 6)[
(set: _foundHealth to (random: 1, 5) )
(set: _foundCandy to (random: 1, 3) )
You come across a house that has a large bowl sitting on the front pourch. A sign says "Take 1". You and your friends take more than one... you rascals. (-_foundHealth to hunger and +_foundCandy to candy)
(set: $hunger to it - _foundHealth )
(set: $Candy to it + _foundCandy )
] (else-if: _percentage <= 3)[
(set: _foundHealth to (random: 2, 7) )
You knock the door (-_foundHealth to hunger)
(set: $hunger to it - _foundHealth )
] (else:)[
Nothing happened.
]
(replace: ?HUD)[(display: "HUD")]
} Hunger overwhelms you and your friends. You return home and eat.
Candy: ($candy)
###[[Game Over|Start]]
Your phone alarm starts to blare. The only lights left on in the neighborhood are the streetlights and the ocasional car traveling by.
Candy: ($candy)
###[[Game Over|Start]]{
(if: $candy >= 100)[
(goto: "Candy")
]
(if: $hunger <= 0)[
(goto: "Hunger")
]
(if: $timeleft <= 0)[
(goto: "Time")
]
}Your bag is overflowing with candy. You have
Candy: ($candy)
###[[Game Over|Start]]Double-click this passage to edit it.