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

Don't mark killed invisible NPCs as dead #454

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

Hypexion
Copy link
Contributor

@Hypexion Hypexion commented Nov 2, 2022

As part of memory improvements (#156), invisible NPCs are killed when their script runs an end command. However, marking them as dead means they are no longer valid speakers, leading to any speech they would speak being skipped. This is a regression, as previously invisible NPCs would be able to talk, even if their script had ended.

To fix this, I changed the KillInvisibleCharacter function to not mark the killed NPC as dead. It is still moved to the dead monsters list, meaning it will no longer be processed, but it will retain its ability to be a speaker.

See thread: https://forum.caravelgames.com/viewtopic.php?TopicID=45732

@mrimer mrimer merged commit cdfedaa into CaravelGames:master Nov 7, 2022
@Hypexion Hypexion deleted the fix-invisible-talker-culling branch November 7, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants