The character takes the hide action but no roll is required until a potentially threatening enemy(PTE) could reasonably detect it at which time a stealth check is made. The players stealth check is then compared to all PTE passive perception(PP). If all PTE PP are overcome then the character remains hidden as long as they remain out of any enemies line of sight, do not make a sound louder than a whisper, an enemy doesn't find them, they don't make an attack roll, or they don't cast a spell with a Verbal component. Hidden means any creature with a lower PP than the stealth check cannot see or hear the character and does not know their location. Any creature can discern whether it is detected by a creature it can see. The hiding characters stealth check is the DC for any creature that attempts to find the sneaking character with a Wisdom Perception check. If the stealth check is not greater than a PTE PP then that PTE is aware of the sneaking character and initiative is called. Any PTE that had a lower PP than the stealth check is surprised but also aware as it's assumed the PTE that detected the sneaking character revealed their location if that is reasonable given the circumstances. These rules are repeated for each group of PTE. One stealth check does not persist through multiple encounters. If a DM wants to include directional vision during an out of combat encounter this may allow players to sneak up and attack npcs from behind. The sneaking character would still have to roll a higher stealth check than the PTE PP as they could still detect through other senses. Immediately after the attack initiative should be rolled counting all PTE as aware of the sneaking character but surprised.
You might like this thread.
DM mostly, Player occasionally | Session 0 form | He/Him/They/Them
EXTENDED SIGNATURE!
Doctor/Published Scholar/Science and Healthcare Advocate/Critter/Trekkie/Gandalf with a Glock
Try DDB free: Free Rules (2024), premade PCs, adventures, one shots, encounters, SC, homebrew, more
Answers: physical books, purchases, and subbing.
Check out my life-changing