ThePix / QuestJS

A major re-write of Quest that is written in JavaScript and will run in the browser.
MIT License
66 stars 13 forks source link

NPC Entering Message When Dark #49

Closed KVonGit closed 2 years ago

KVonGit commented 3 years ago

Hello.

What would be the proper way to stop the entering message on my NPCs when in a dark room?

(Right now, if game.dark, I have it skipping everything.)

ThePix commented 3 years ago

I am trying to think the best way to do this. What do you want to happen?

Do you want the player to get a message; "You hear someone enter the room." If so, would that depend on the NPC - you do not hear the ninja for example? Would it depend on the room? If yes to either of these, where would you want to put the strings?

KVonGit commented 3 years ago

What do you want to happen?

A very good question.

would that depend on the NPC - you do not hear the ninja for example? Would it depend on the room? If yes to either of these, where would you want to put the strings?

Ooh! A can of worms!

I don't think we should open this particular can. Maybe there could be something like the name modifier added on that the author could script if the need was felt. The NPC reporting function could check that in the dark. If nothing is coded, just do nothing. (Maybe?)

I don't know, but it didn't seem quite right that the game reported the NPC entering when I couldn't see in the dark. Maybe I'm just over-thinking it.


Hey . . .

EDIT: Here's another example scenario: What if there was an NPC who could see in the dark, and he described things for you after entering?

(The ninja is a good example, too.)

Maybe just a boolean to put on settings that tells Quest whether or not to report NPCs entering in the dark would be easiest?

KVonGit commented 3 years ago

I think this would be a good one for the forum, letting everyone have a chance to propose scenarios.

What say you?

ThePix commented 3 years ago

That's a good idea.