Closed Kln95130 closed 3 years ago
That is a great idea... not sure why I did not do it myself (I do not think the first line is necessary, though). Also highlighted that talktoCount is not getting incremented. Note that it gets incremented before the greeting, so the first will be 1. I set up my function like this:
greeting: function() {
if (this.talktoCount === 1) {
msg("'Hello,' says Lara.");
} else {
msg("'You again?' says Lara.");
}
}
I feel I am close to releasing version 1.0, so any further ideas, say them sooner rather than later.
Sure thing.
Other than ticket #60, the only "extra" stuff that I had in mind and custom coded was a template for a "RELOADABLE" thing. It can be a gun, but anything that needs a compenent could work too. I will isolate the template and open a ticket about it.
Hello again.
Another small improvement, that I think would increase dialog variety. If I want my NPC to greet the player before he gets the list of topics, I need to tweak the npc_utilities.talkto function.
Just like previous issue, I think it could be useful to include it in the next version.
The property and the update talkto:
Your greeting can be a string or a function, like "examine".