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

Give the New England Community Church NPC's a Routine #75763

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MNG-cataclysm
Copy link
Contributor

@MNG-cataclysm MNG-cataclysm commented Aug 17, 2024

Summary

Content "Give the New England Community Church NPC's a routine."

Purpose of change

Continue fleshing out the NECC NPC's, this time by giving them a daily routine. This gives the impression of NPC's living within the compound, rather than staying in place all the time and not doing anything.

Describe the solution

Using location variables, assign the NECC NPC's various spots around the retreat where they will go to throughout the day. This currently includes the following:
A spot where they will work/hang out during the day.
Seats in the main hall for breakfast, lunch, and dinner.
Seats for attending a church service, led by Helena.
Beds where they will go to sleep at night.

An EOC which runs once every hour uses a case-switch structure to move them around as needed, and each movement re-runs itself 3 minutes afterwards to make sure all NPC's are where they need to be, in case they get stuck on something.

Describe alternatives you've considered

Not doing this, and having them remain static.

Testing

So far, everything works well.

Additional context

This requires a few more things before it's ready:

  • Have NPC's actually do something when they move (going to sleep at night, "eating" during mealtimes, Helena actually preaching, etc.)
  • Change some dialogue responses based on what they're doing (not doing business during meals or church, etc.)
  • Give more nuanced routines, like recreational periods in the evening.
  • Implement something to prevent error spam when one NPC dies.

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership [JSON] Changes (can be) made in JSON Map / Mapgen Overmap, Mapgen, Map extras, Map display EOC: Effects On Condition Anything concerning Effects On Condition json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Aug 17, 2024
@PatrikLundell
Copy link
Contributor

I think you need something to handle the death of people. Otherwise you'd create the same kind of error message spam the refugee center does when a guard dies.

That probably requires some kind of EoC infrastructure support, and I don't think this should be implemented before that support is in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions EOC: Effects On Condition Anything concerning Effects On Condition [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants