Ruin0x11 / OpenNefia

(Archived) Moddable engine reimplementation of the Japanese roguelike Elona.
MIT License
115 stars 18 forks source link

Add fallback tone for characters that are missing certain talk events #315

Open Ruin0x11 opened 3 years ago

Ruin0x11 commented 3 years ago

This seems to be a common pattern in the Elona+ Custom source code: if a character does not have a talk event available for their tone, there will be a branch that instead makes them say a default set of phrases.

These phrases should be put in a "default" tone prototype instead. It would be configurable if you wanted to use the default or not. Specifying a talk event with a blank string in a tone prototype would mean you would not use the default, if there is one available. There could also be a boolean flag on the base.tone prototype which will prevent any default phrases from being used for that tone.