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

Creature respawn #26

Closed
crankycyclops opened this issue Apr 5, 2013 · 7 comments
Closed

Creature respawn #26

crankycyclops opened this issue Apr 5, 2013 · 7 comments
Assignees
Labels
Milestone

Comments

@crankycyclops
Copy link
Owner

When a creature is killed, the game developer should be able to decide whether or not it will respawn.

@ghost ghost assigned crankycyclops Apr 5, 2013
@crankycyclops
Copy link
Owner Author

In addition to whether or not it's respawnable, should also be able to specify probability of respawn. There should also be a configurable amount of time between when the creature dies and when it respawns, with some default value.

@crankycyclops
Copy link
Owner Author

This will be an event / timer duo. The event trigger will execute when the Being dies. If the being is configured with respawn = true, then a timer job will be started for that Being, which will set it back to life after the specified time interval.

@crankycyclops
Copy link
Owner Author

There should be messaging involved when the creature respawns, so that players in the room know that a player or creature respawned. Yeah, about configuration... Make sure that we can configure respawn both for players (just default player settings right now) and creatures.

@crankycyclops
Copy link
Owner Author

Should be a Being::respawn() function. If interval = 0, then call this directly from event trigger. Otherwise, set a timed job at the specified interval, and have that execute Being::respawn().

@crankycyclops
Copy link
Owner Author

#41 will have to be fixed before I can continue on this :(

@crankycyclops
Copy link
Owner Author

commit 9c4e483: added timer job for Being respawn.

@crankycyclops
Copy link
Owner Author

This is done, but messaging during combat is messed up now. It's because respawn is called by afterDie before the death message goes out. Fix this somehow...

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

1 participant