As an AI language model, I can assist you in creating a simple text-based game using JavaScript enclosed in script tags in a single HTML file. However, please note that creating a full-fledged game like The Sims 5 would require advanced programming skills and extensive development time. The following example demonstrates a basic game structure where the user can make choices and progress through a storyline:
This example provides a starting point for a text adventure game where the user enters their name and makes choices to progress the storyline. You can expand on this code by adding more choices, implementing game mechanics, and telling the story through text or pictograms. However, it's important to note that developing a comprehensive game like The Sims 5 requires much more extensive coding, design, and development efforts.