seisatsu / DennisMUD

Dennis MUD - A multiplayer text adventure sandbox engine where the players build the world with in-game commands.
https://dennismud.xyz/
MIT License
47 stars 6 forks source link

Feature: Chance Events #116

Open NanashiMajo opened 1 year ago

NanashiMajo commented 1 year ago

To add extra layer of discovery, add chanced occurences for things such as entering locations, using or inspecting items, etc..

Example 1. Could be used for as simple of a purpose as having couple alternate lines of slightly different flavour text. This could also be used for riddles and hints. Example 2. Could result in a different outcome than usual (telekey puts user elsewhere, item interaction with target granting something unusual, etc.).

As for implementation, to control rarity of events I'd suggest allow to specify chance weight.

Here's another issue, however. Case 1. It would feel more natural, if flavor text would be allowed to change upon each check. However... Case 2. It would be scummy, if player could non-stop repeatedly interact with something to "get something special" out of it. To attempt preventing / punish behaviour of [Case 2], I suggest having a "toggle" for whether a chance is determined upon interaction itself or upon entering the room (similar to how YN handled this). This would hopefully avert players from falling into dull experience.