# Vines
# Let’s cover top of the boulder with rope-like vines. The vine can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ropes … needed to get into the hut.


# [[file:../../../projects/mud.org::*Vines][Vines:1]]
@teleport mp02
#
@create/drop lot of vines;vine;rope: typeclasses.consumables.Producer
# Vines:1 ends here



# With a description:


# [[file:../../../projects/mud.org::*Vines][Vines:2]]
@desc vines = While difficult to cut, the study and tough vines are easy to pull from this point on the boulder. You could probably make a sturdy rope from them.
# Vines:2 ends here



# We have to have the vines describe what it /makes/:


# [[file:../../../projects/mud.org::*Vines][Vines:3]]
@set vines/make_name = "coil of rope"
# Vines:3 ends here



# And a verb when they /get/ the consumable:


# [[file:../../../projects/mud.org::*Vines][Vines:4]]
@set vines/make_verb = "yank and shape a"
# Vines:4 ends here



# This one is optional as it defaults to Consumable:

# [[file:../../../projects/mud.org::*Vines][Vines:5]]
@set vines/make_class = "typeclasses.things.Rope"
# Vines:5 ends here



# And the vines needs to know the /description/ of the Consumable, so that it can attach that:

# [[file:../../../projects/mud.org::*Vines][Vines:6]]
@set vines/make_desc = "Made from vines, but could be a good lasso."
# Vines:6 ends here



# How much is there when you pick them?

# [[file:../../../projects/mud.org::*Vines][Vines:7]]
@set vines/make_amount = 1
# Vines:7 ends here

# Mellow Marsh
# The river from the [[Field]] flows into a marsh:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:1]]
@teleport mp05
#
@dig Mellow Marsh;mp08 :typeclasses.rooms_weather.TimeWeatherRoom = south to marsh;s,north to meadow;n
# Mellow Marsh:1 ends here



# Started with #279
# And =look south= should show:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:2]]
@desc south = Looks like the river spreads into a marsh. Is that a hut you can see?
# Mellow Marsh:2 ends here



# Describe the muddy marsh:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:3]]
@set south/traverse_msg = "The ground gets muddier and harder to walk the further into the marsh you go..."
# Mellow Marsh:3 ends here



# And a description of the marsh:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:4]]
@teleport mp08
#
@desc here = The river spreads into a muddy marsh full of |Ygrass|n and tall, white-topped |Yreeds|n. <morning>Colorful |Ybirds|n in the sparse tree surrounding the marsh yell out a loud chorus.</morning> <afternoon>Purple herons and other marsh |Ybirds|n hunt in the tall swamp grass.</afternoon> <evening>Glowing |Yfireflies|n create a synchronized light show over the swamp grass in the deepening dusk.</evening> <night>Giant pink and purple |Ymoths|n flutter over the dark flowers.</night>|/A small |Yhut|n, perched on three stilts to keep it dry, stands in middle of the slough.
# Mellow Marsh:4 ends here



# And a new state when the house is bound:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:5]]
@desc/bound here = The river spreads into a muddy marsh full of |Ygrass|n and tall, white-topped |Yreeds|n. <morning>Colorful |Ybirds|n in the sparse tree surrounding the marsh yell out a loud chorus.</morning> <afternoon>Purple herons and other marsh |Ybirds|n hunt in the tall swamp grass.</afternoon> <evening>Glowing |Yfireflies|n create a synchronized light show over the swamp grass in the deepening dusk.</evening> <night>Giant pink and purple |Ymoths|n flutter over the dark flowers.</night>|/|/A pissed-off looking |Yhut|n, with its lasso'd stilt-like legs, struggles against its bounds in middle of the slough.
# Mellow Marsh:5 ends here



# And =look north= should show:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:6]]
@desc north = The meadow to the north looks easier to walk around.
# Mellow Marsh:6 ends here



# Describe the muddy marsh:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:7]]
@set north/traverse_msg = "The ground gets drier and easier to walk as you approach the meadow..."
# Mellow Marsh:7 ends here



# Details for a more immersive experience:


# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:8]]
@detail birds = Birds of every color on the rainbow and beyond fly and squawk around you, but keep their distance.
# Mellow Marsh:8 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:9]]
@detail moths;moth = On closer inspection, the moths are really |Ysprites|n playing a strange chasing game.
# Mellow Marsh:9 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:10]]
@detail sprites;sprite = Seems that sprites with pink wings are on one team, and purple winged sprits on the other. The game became exciting as one sprite, holding aloft a flag is trying to avoid others as it streaks to the far side of the marsh.
# Mellow Marsh:10 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:11]]
@detail fireflies = A passing firefly shows it to actually be a |Ypixie|n holding two colorful lanterns.
# Mellow Marsh:11 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:12]]
@detail pixie;pixies = The pixies ignore you as their coreography keeps them focused on their dance.
# Mellow Marsh:12 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:13]]
@detail grass = Guess this kind of grass doesn't mind the wet environment.
# Mellow Marsh:13 ends here

# [[file:../../../projects/mud.org::*Mellow Marsh][Mellow Marsh:14]]
@detail mud = Pretty brown and sticky.
# Mellow Marsh:14 ends here

# Ten-foot Poles
# The reed can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ten foot poles … needed to get into the hut.


# [[file:../../../projects/mud.org::*Ten-foot Poles][Ten-foot Poles:1]]
@create/drop lot of tall white reeds;reeds: typeclasses.consumables.Producer
# Ten-foot Poles:1 ends here



# We have to have the reeds describe what it /makes/:

# [[file:../../../projects/mud.org::*Ten-foot Poles][Ten-foot Poles:3]]
@set reeds/make_name = "ten-foot pole"
# Ten-foot Poles:3 ends here



# And a verb when they /get/ the consumable:

# [[file:../../../projects/mud.org::*Ten-foot Poles][Ten-foot Poles:4]]
@set reeds/make_verb = "pluck and shape a"
# Ten-foot Poles:4 ends here



# And the reeds needs to know the /description/ of the Consumable, so that it can attach that:

# [[file:../../../projects/mud.org::*Ten-foot Poles][Ten-foot Poles:6]]
@set reeds/make_desc = "A long pole shaved from a marsh reed."
# Ten-foot Poles:6 ends here



# How much is there when you pick them?

# [[file:../../../projects/mud.org::*Ten-foot Poles][Ten-foot Poles:7]]
@set reeds/make_amount = 1
# Ten-foot Poles:7 ends here

# Purple Heron
# Create a puppet of the bird hunting frogs and pixies. :-D


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:1]]
@create/drop purple heron: typeclasses.npcs.Eliza
# Purple Heron:1 ends here



# What data file of responses should we use?


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:2]]
@set heron/data_file = "npcs.txt"
#
@set heron/speech_vocalizations = ["says", "croaks", "squawks"]
# Purple Heron:2 ends here



# Note that we give him a male gender:


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:3]]
@set heron/gender = "neutral"
# Purple Heron:3 ends here



# Work around the =pose= bug:


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:4]]
@set heron/_sdesc = "purple-feathered heron"
# Purple Heron:4 ends here



# Prefix article?


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:5]]
@set heron/article = "The"
# Purple Heron:5 ends here



# And a good description that I can rework:


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:6]]
@desc heron = Shades of violet and purple adorn the feathers of this majestically tall heron, that stalks the marsh |Ygrass|n, hunting small critters.
# Purple Heron:6 ends here



# Since it is an NPC it has certain mutterings it can do:


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:7]]
@set heron/muttering_file = "jethro_tull_songs.txt"
#
@set heron/muttering_gap = 7
#
@set heron/muttering_interval = 360  # Little over 3 minutes
# Purple Heron:7 ends here

# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:8]]
@set heron/muttering_formats = [
      "sings to |oself as if no one is listening, \"{0}\"",
      "continues to sing to |oself, \"{0}\"",
      "croons to |oself, \"{0}\"",
      "finishes |p verse, \"{0}\"|/",
  ]
# Purple Heron:8 ends here



# And add the absent-minded singing script:


# [[file:../../../projects/mud.org::*Purple Heron][Purple Heron:9]]
@script heron = typeclasses.scripts.Muttering
# Purple Heron:9 ends here

# Trampoli’s Hut on Stilts


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:1]]
@teleport mp08
#
@dig Homey Hut;mp09 = hut on stilts,leave;outside;marsh
# Trampoli’s Hut on Stilts:1 ends here



# And describe it as =hut=:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:2]]
@desc hut on stilts = Apparently made from swamp |Ygrass|n, the homey-looking hut has a wood door high above ground. Baskets of potted flowers and herbs garnish every window.
# Trampoli’s Hut on Stilts:2 ends here



# Let’s keep most characters out of the hut. The idea is you need to fly to get in. But we have a sequence For the initial exit, it is just always impossible to use:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:3]]
@lock hut on stilts = traverse:tag(enter_hut_nope, mp)
# Trampoli’s Hut on Stilts:3 ends here



# Let’s add an alias:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:4]]
@alias hut on stilts = hut
# Trampoli’s Hut on Stilts:4 ends here

# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:5]]
@set hut on stilts/err_traverse = "Upon approaching the hut, the hut scurries away on its stilt-like legs."
# Trampoli’s Hut on Stilts:5 ends here



# And we need to create a second exit:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:6]]
@open rope-bound hut = Homey Hut
# Trampoli’s Hut on Stilts:6 ends here



# Let’s add an alias:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:7]]
@alias rope-bound hut = hut
# Trampoli’s Hut on Stilts:7 ends here



# And describe it:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:8]]
@desc rope-bound hut = The hut doesn't look happy, straining at its bonds that keep somewhat in place. The wood door to the hut, and its landing, continue to be too hign and out of your reach.
# Trampoli’s Hut on Stilts:8 ends here



# If the other exit is here, you just need the pole:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:9]]
@lock rope-bound hut = traverse:holds('ten-foot pole')
# Trampoli’s Hut on Stilts:9 ends here



# And a good reason why you need the pole:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:10]]
@set rope-bound hut/err_traverse = "The door, and its landing, are still too high and out of reach, and riding a bucking owlbear may be easier than climbing the stilt-legs that immediately throw you to the ground."
# Trampoli’s Hut on Stilts:10 ends here



# If you do figure out how to get through the hut:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:11]]
@set rope-bound hut/traverse_msg = "You use your pole to vault yourself up through the door of the hut..."
# Trampoli’s Hut on Stilts:11 ends here



# Let’s put this second exit away until the [[file:~/src/moss-n-puddles/typeclasses/things.py::class Rope(Object):][rope calls]] it:


# [[file:../../../projects/mud.org::*Trampoli’s Hut on Stilts][Trampoli’s Hut on Stilts:12]]
@teleport/tonone rope-bound hut
# Trampoli’s Hut on Stilts:12 ends here

# Inside Trampoli’s Hut
# Let’s go inside to decorate:


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:1]]
@teleport mp09
#
@desc here = A homey room cluttered with drying |Yherbs|n, |Yjars|n of preserves, and natural made |Ytalismans|n. Even the table and chairs, covered in jars, bags and boxes, indicate the owner doesn't entertain much. Stairs lead up to a spacious loft with a bed.
# Inside Trampoli’s Hut:1 ends here



# And describe leaving:


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:2]]
@desc leave = From the doorway, you see the marshland below.
# Inside Trampoli’s Hut:2 ends here

# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:3]]
@set leave/traverse_msg = "You open the door of the hut, and scramble down to the marsh below. Surely the ground the moist and soft to break your fall."
# Inside Trampoli’s Hut:3 ends here



# And the details:


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:4]]
@detail herbs = Clusters plants, a mixture of flowers and herbal leaves, all bound with twine and reeds, hang from spots around the room, fragranting the air.
# Inside Trampoli’s Hut:4 ends here

# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:5]]
@detail jars = Sealed jars of fruits, vegetables, herbs and spices.
# Inside Trampoli’s Hut:5 ends here

# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:6]]
@detail talismans = A wood |Ycarving|n, a painted |Yskull|n, and curiously shaped |Ysculpture|n made from bundles of reeds, give the impression of inducing luck while showing a level of respect for the land.
# Inside Trampoli’s Hut:6 ends here



# For each talisman, we could create an object, but it wouldn’t be able to be taken, and instead of “can’t find skull”, we could give a better error message.


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:7]]
@create/drop painted skull
#ve
@desc skull = Painted with arcane symbols, a wolf skull sports curving, corrugated goat horns.
#
@lock skull = get:false()
#
@set skull/get_err_msg = "It appears firmly attached to the wall where it hangs."
#
@set skull/hidden_tag = "hidden_skull"
#
@lock skull = view:tag(hidden_skull)
# Inside Trampoli’s Hut:7 ends here



# Perhaps the carving is actually the maid.


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:8]]
@create/drop wood carving;carvings;daemon;imp
#
@desc carving = While rustic, the carving shows exquisite craftsmanship and artistry in its rendering of an daemon creature, less sinister and more impish.
#
@lock carving = get:false()
#
@set carving/get_err_msg = "As you reach for the carving, it promptly runs away."
#
@set carving/hidden_tag = "hidden_carving"
#
@set carving/hidden_tag = "hidden_carving"
#
@lock carving = view:tag(hidden_carving)
# Inside Trampoli’s Hut:8 ends here



# The reeds should give a subtle hint to something that could be /spoken/ aloud.


# [[file:../../../projects/mud.org::*Inside Trampoli’s Hut][Inside Trampoli’s Hut:9]]
@create/drop reed sculpture
#
@desc reed = The reed bundle, twisted and shaped in a six-spoke star, sports a blue tie.
#
@lock reed = get:false()
#
@set reed/get_err_msg = "It appears firmly attached to the wall where it hangs."
#
@detail tie = A blue ribbon with gold embroidery that spells: B U I O
#
@set reed/hidden_tag = "hidden_reed"
#
@lock reed = view:tag(hidden_reed)
# Inside Trampoli’s Hut:9 ends here

# Torches
# The reed can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ten foot poles … needed to get into the hut.


# [[file:../../../projects/mud.org::*Torches][Torches:1]]
@create/drop a bucket of torches: typeclasses.consumables.Producer
# Torches:1 ends here



# With a description:


# [[file:../../../projects/mud.org::*Torches][Torches:2]]
@desc bucket = A tall wood bucket full of resin-coated torches.
# Torches:2 ends here



# We have to have the bucket describe what it /makes/:


# [[file:../../../projects/mud.org::*Torches][Torches:3]]
@set bucket/make_name = "torch"
# Torches:3 ends here



# And a verb when they /get/ the consumable:


# [[file:../../../projects/mud.org::*Torches][Torches:4]]
@set bucket/make_verb = "take a"
# Torches:4 ends here



# And the bucket needs to know the /description/ of the Consumable, so that it can attach that:


# [[file:../../../projects/mud.org::*Torches][Torches:6]]
@set bucket/make_desc = "Made from marsh grass and reeds."
# Torches:6 ends here



# How much is there when you pick them?

# [[file:../../../projects/mud.org::*Torches][Torches:7]]
@set bucket/make_amount = 1
# Torches:7 ends here

# Trampoli the Witch
# Create a puppet of the lady that owns the hut.


# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:1]]
@create/drop Trampoli;old lady: typeclasses.puppets.Puppet
# Trampoli the Witch:1 ends here



# Note that we give him a male gender:


# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:2]]
@set old lady/gender = 'female'
# Trampoli the Witch:2 ends here



# Work around the =pose= bug:


# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:3]]
py bt = self.search('old lady'); bt.db.pose = 'playing with a deck of cards'
# Trampoli the Witch:3 ends here

# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:5]]
@set old lady/_sdesc = "old lady"
#
@set old lady/pose_default = "napping soundly in bed on the upstairs loft"
#
@set old lady/pose = "playing with a deck of cards"
# Trampoli the Witch:5 ends here



# And a good description that I can rework:


# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:6]]
@desc old lady = A blue shawl, adorned with arcane symbols in gold embroidery, covers the head of this small woman. Her large nose protruding from under the shawl, gives the appearance of a blue bird with bright green eyes.
# Trampoli the Witch:6 ends here



# And an unpuppeted, sleeping, description:


# [[file:../../../projects/mud.org::*Trampoli the Witch][Trampoli the Witch:7]]
@set old lady/desc_unpuppeted = "A blue shawl, adorned with arcane symbols in gold embroidery, covers the head of this small, napping woman. Her large nose protruding from under the shawl, as she snores loudly."
# Trampoli the Witch:7 ends here
