As an AI text-based model, I can provide you with an idea and a basic structure for a simple text-based game but implementing a fully-fledged game like GTA 5 with real-life elements and kingdom ruling war is beyond the scope of a single HTML file. However, here's an example of a simple text-based game script that you can use as a starting point:
With this basic structure, you can add more features and expand upon the game logic to create a more engaging experience. However, building a fully-featured game like GTA 5 would require a separate development environment, game engine, and a significant amount of coding and design work.
Note: This is a simple demonstration and may not fulfill all your requirements or run seamlessly on all devices. It's always recommended to use proper development practices and techniques when building complex projects.