Pet Activities

Addon module for Pet Shop. Adds interactive activities with your pet: Hide and Seek mini-game (guess which of 6 spots your pet is hiding in, costs a petturn — a separate resource from forest turns), random forest events (pet finds food/toys), automatic pet commentary in village/locations, custom pet messages during battles/newday/gardens/inn. Requires hunger and attention stats from Pet Shop.

Hide and Seek Game

How It Works:

  • While in forest, choose "Play Hide and Seek" — your pet immediately darts off and hides in one of six spots: Bushes, Trees, Rock, Grove of Elms, Brambles, or Big Oak Tree
  • Hiding spot is picked at random and stored in the hidelocation pref
  • All six options are presented on a single screen — "You only have one chance!" — you pick one, no wandering between separate locations
  • Costs 1 petturn to play (the petshop module's own petturns resource — a distinct currency from the forest turns you use to fight monsters)

Finding Your Pet:

  • Guess right: your pet jumps out immediately and rewards you with a small attention boost
  • Guess wrong: your pet still emerges (annoyed) from wherever it was actually hiding, and instead you might find nothing, a stray gold coin, or a startled woodland critter at the spot you checked
  • One guess per game — there's no repeated searching within a single round

Random Forest Events

Pet Finds Food (50% chance when event triggers):

  • Pet darts into bush, emerges with food packet
  • If inventory space (petfood < maxfood): Add food to inventory
  • If no space: Pet devours food (+50 hunger)

Pet Finds Toy (50% chance):

  • Pet finds beat-up old toy
  • If inventory space (pettoys < maxtoys): Add toy to inventory, +100 attention
  • If no space: Pretend to keep toy, secretly kick it aside

Event Weight: 50 (moderately common forest event)

Pet Commentary (Village)

If allowcomments = 1 and in correct location, pet randomly posts commentary:

7 Random Commentary Types:

  • "laughs as [pet] growls at [random player]"
  • "chuckles as [pet] bites [random player]"
  • "comments that [pet] is better looking than [random player]"
  • "brags about owning a [pet type]"
  • "is bored and sics [pet] on [random player]"
  • "says [random player] just stepped in [pet type] poop"
  • "sneaks up on [random player] and scares them with [pet]"

Automatically posted to village commentary with random player selected as "victim".

Pet Messages in Different Contexts

Battle Messages:

  • Dragon fight: "[Pet] seems visibly nervous at the sight of the Dark Lord!"
  • PVP: "[Pet] waits to one side while you do battle with a fellow warrior."
  • Graveyard: "[Pet] seems paralyzed at the sight of the undead fiend before you."
  • Forest: Custom battlemsg from pet database

Newday Message: Custom newdaymsg from pet database

Village Messages (random 1-3):

  • Custom villagemsg from database
  • "[Pet] looks about in a state of boredom."
  • "Students give [Pet] a smile as they pass on by."

Gardens Messages (random 1-5):

  • "[Pet] plays among the flowers."
  • "[Pet] tries to chase down a fairy but fails!"
  • "[Pet] makes a meal out of a poor fairy!"
  • "Your pet flushes out a small white rabbit from the flower patches and gives chase."
  • Custom gardenmsg from database

Inn Messages (random 1-3):

  • "[Pet] seems somewhat unnerved by all the noise."
  • "[Pet] eats something off the dirty floor."
  • "[Pet] draws a few bemused glances from the patrons and [lover]." (25% chance: +1 charm!)

Forest Messages (random 1-3):

  • "[Pet] looks about the forest with some apprehension."
  • "[Pet] seems to hear something in the distance."
  • "[Pet] takes off to a nearby bush for a bathroom break."

Pet Stats Warnings

Village Descriptions:

  • If hunger < 100: "Attention! Your pet is starving!" + quick-feed link
  • If attention < 50 (and not starving): "[Pet] is looking bored. Maybe you should play with them or buy toys?"
  • Otherwise: Random pet message or boredom message

Requirements

  • Pet Shop module
  • Pet Editor module
  • Must own a pet (haspet = 1)

Strategy

Hide and Seek: Only play if you have spare petturns and want to interact with pet — it's a separate resource pool from forest turns, so playing doesn't cost you a fight. No mechanical benefit beyond a minor attention boost on a correct guess.

Forest Events: Free food/toys when they trigger. Always beneficial.

Commentary: Passive system, no player action needed. Adds flavor to village.

Inn Charm Bonus: 25% chance of +1 charm when pet draws glances at inn. Visit inn regularly if you want charm boosts.

Pet Maintenance: Keep pet fed (hunger > 100) and entertained (attention > 50) to avoid starvation warnings.

Pet Activities: where your magical companion plays hide-and-seek, finds random garbage in the forest that you pretend is treasure, and posts embarrassing commentary about other players stepping in its poop. Truly enriching gameplay.