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

generic npcs should respawn after x amount of time #207

Open
projectdelphai opened this issue Dec 31, 2014 · 6 comments
Open

generic npcs should respawn after x amount of time #207

projectdelphai opened this issue Dec 31, 2014 · 6 comments
Labels
Milestone

Comments

@projectdelphai
Copy link
Member

So if I kill a brotherhood member, after I cross say 20 tiles or once sufficient time has passed, a new brotherhood member should appear.

@projectdelphai projectdelphai added this to the alpha version milestone Dec 31, 2014
@paddatrapper
Copy link
Contributor

Seeing as most things happen on a move-by-move bases I think a move based solution would be the most effective. Though where to implement this - LocationManager, Location or the move command in CommandPrompts is an issue...

@projectdelphai
Copy link
Member Author

Maybe after the move command, call a trigger that would see if enough time has passed and if it has, respawn the necessary npcs.

@Muirrum
Copy link
Contributor

Muirrum commented Sep 1, 2019

Maybe we could count moves as ticks? Then after so many ticks regen the NPC from the file.

ETA: If it's still planned to be server/client, then maybe the server should handle ticks, just to keep them consistent across multiple clients.

@paddatrapper
Copy link
Contributor

For server/client, a global clock makes sense. If that can be implemented in the standalone too, that is great. Otherwise a move counter as ticks is consistent with the rest of the standalone game

@Muirrum
Copy link
Contributor

Muirrum commented Sep 2, 2019

I think the only way to implement ticks in a fair way would be after each loop of the gamePrompt() function. If I knew better how the server is started up then I would know better where to put the serverside Tick Controller (TickController.java?)

@Muirrum
Copy link
Contributor

Muirrum commented Oct 2, 2019

I'm going to start implementing this on my fork. Will probably put the TickController in the base package unless someone has a better idea

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

No branches or pull requests

3 participants