This is a simple text-based RPG game implemented in HTML, CSS, and JavaScript. The game allows players to explore different areas, interact with NPCs, and engage in battles.
Use the go [direction] command to move in a specified direction (north, south, east, west).Use the explore command to search the current area for NPCs or other interactions.
Use the attack [npc] command to attack a specific NPC.Use the trade merchant command to trade with the merchant NPC.
Use the buy command to buy an item from the merchant.
Use the sell command to sell an item to the merchant.
Use the leave command to leave the merchant's stall.
Use the help command to list the description of things you can do and that can happen.
To play the game, open the index.html file in your web browser.
Use the input field to enter commands and press the "Enter" button to execute them.
The game output will be displayed in the main area.
The player starts with 100 HP and 10 gold.
Players can navigate to new areas every 5 navigations, recovering 3 HP.
Players can encounter NPCs in each area and engage in battles with them.
Players earn 1 gold for each NPC defeated.
Trade functionality with the merchant NPC is not fully implemented.
