Sure! Here's a simple RPG game implemented as a single HTML file with JavaScript. The game features magic and sword fights with interactive NPCs. As it is a text-based RPG, there won't be any pictograms, but I'll do my best to make it engaging for smartphone operation. The game will be played in the console panel of the browser's developer tools. Here's the code:
To play the game:
1. Copy the above code into a new HTML file, for example, `game.html`.
2. Open `game.html` in a browser.
3. Open the browser's developer tools (usually by right-clicking and selecting "Inspect" or pressing `Ctrl+Shift+I`).
4. Go to the Console panel in the developer tools.
5. You will see the game messages and fight results displayed in the console.
6. Follow the instructions in the console to play the game.
Remember, this is a basic RPG game implementation. You can expand and enhance it further as per your requirements and preferences. Enjoy playing!