v0.22.0 'Examine' command improved
What's Changed
Tale already had an 'examine' command. The story builder could add 'extra descriptions' to items that the command looked for when used. This was a prime target for LLM's, so I've changed it so that the descriptions are generated by it instead. I've tried to retain the old functionality as well, but it's not a priority.
The command works like this:
examine what/who what2
what/who can be an item, npc or the location
what2 is for if you want to examine a certain part of the 'what'. This is optional.
Like with other descriptions, if nothing has changed since last time, it will use the same description from the cache.
Example (code-cherry-pop 7b):
examine knife
A sharp kitchen knife, crafted from a single piece of polished obsidian, its blade honed to a razor’s edge. The handle is wrapped in supple leather, adorned with intricate patterns of silver and gold. This is no ordinary knife, but a tool of the highest quality, crafted by the skilled hands of a master blacksmith. It is said that the blacksmith imbued the knife with a bit of their own soul, infusing it with a fierce determination and unwavering loyalty. The knife is a prized possession of the outpost’s chef, who wields it with precision and grace, slicing through even the toughest of ingredients with ease. It is a symbol of the outpost’s commitment to excellence, and a testament to the skill and craftsmanship of its inhabitants
examine knife blade
You examine the blade of the knife, and notice that it has a distinctive pattern of use and wear. The edge is dull and chipped, indicating that it has seen a lot of use in the past. The handle is worn and cracked, telling a story of countless grips and wields. You can almost feel the weight of history in the knife’s simple, utilitarian design. It’s clear that this knife has been a trusted companion to many adventurers and travelers over the years, and has seen its fair share of battles and close calls. You can almost hear the whispers of the mountain winds as they carry the stories of the knife’s past, and the countless lives it has touched.
As you can see, consistency is not an absolute. This is an area for improvement. In this case, the knife is poorly described from the start, which may contribute to the result.
Another GM command:
set_description
This allows a wizard to change the description field of anything from within the game.
Usage:
!set_description what new_description
what can be anything
Full Changelog: v0.21.1...v0.22.0