Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NPCs to party & remove them #29

Open
mpirnat opened this issue Dec 3, 2017 · 1 comment
Open

Add NPCs to party & remove them #29

mpirnat opened this issue Dec 3, 2017 · 1 comment

Comments

@mpirnat
Copy link
Owner

mpirnat commented Dec 3, 2017

Sometimes one or more NPCs might join the party for a while. If we don't want to assume that they just hang back and never participate in combat, we should work out a way to add them to the party and remove them when they're done.

This entails modeling them somehow in TOML and object representation (like other forms of combatant), figuring out how to organize them on disk to load, loading them, and removing them.

@mpirnat mpirnat changed the title Add & remove NPCs Add NPCs to party & remove them May 7, 2018
mpirnat added a commit that referenced this issue Jun 29, 2019
When combat ends, we used to just dump all the monsters that were in the
current combat group. This leads to losing NPCs or similar friendlies
that we might want to stick around for a subsequent encounter.

Now we prompt for each "leftover" monster that still remains at the end
of combat to let the user decide to keep them in the combat group, stash
them, or remove them entirely from play.

Sort of kind of addresses the need in #29 without directly implementing
full on NPCs that need special data modeling etc.
mpirnat added a commit that referenced this issue Jun 29, 2019
Using the prompt session to prompt for how to dispose of leftover
monsters at the end of combat meant we were getting the primary command
completion which was inappropriate for the situation, so switched it to
use a situationally-appropriate WordCompleter instead.

Again sort of addresses #29.
@mpirnat
Copy link
Owner Author

mpirnat commented Nov 5, 2019

Adding sidekicks in #63 chips away at this a little more... Yay!

Between that and being more careful about what we do with leftover "monsters" from an encounter, it's possible that this is mostly done. About the only thing we're not doing is shifting monsters over into the characters dictionary and serializing/deserializing them during saves. (Which is probably the trickier and more tedious part.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant