kdechant / eamon

A web port of the classic text adventure game, the Wonderful World of Eamon
https://eamon-remastered.com
MIT License
22 stars 5 forks source link

How can I record events and variables across adventures? #71

Open extrakun opened 4 years ago

extrakun commented 4 years ago

I am thinking of doing a mult-series adventures that will record down the player's decisions, and also perhaps some stats. Is it there anyway to do this without modifying the models.py file?

kdechant commented 4 years ago

It's not currently possible, but it's a feature I've been thinking of adding.

Frank Black did something like this in several adventures in the 5.0 release of Eamon Deluxe. That system records additional info for each adventurer, mostly tracking which NPCs they met and whether they parted on friendly terms. This would be used to place the same NPCs in other adventures.

I was thinking of adding a freeform "data" column to the Eamon Remastered database to store this player data. As you suspected, this would require adding the new field to models.py and creating a database migration to add the column to the database.

Have you started writing the adventures yet? I'd be interested to hear more about your plans.

extrakun commented 4 years ago

I have to learn typescript first, though I am rather familiar with JavaScript. Thinking of something like the Fabled Lands gamebook, where all the adventures take place in the same world, and you could travel from adventure to adventure, or even backtracking to earlier adventures. Might be too ambitious though.