3 ms·
Yeah, I've found that ChatGPT is excellent at filling out XML templates too: Fill out the following XML template to describe a room in a fantasy RPG dungeo
by thom 4y ago
Yeah, I've found that ChatGPT is excellent at filling out XML templates too:
Fill out the following XML template to describe a room in a fantasy RPG dungeon:
<room width="" length=""><furniture><object name="" description=""/></furniture><npcs><npc name="" description=""/></npcs><items><item name="" description=""/></items></room>
This yields, for example:
<room width="10" length="15">
<furniture>
<object name="torch" description="A wooden torch mounted on the wall, casting flickering light around the room."/>
<object name="table" description="A large wooden table in the center of the room, covered with maps, scrolls, and dusty tomes."/>
</furniture>
<npcs>
<npc name="Goblin" description="A small, green-skinned creature with a wicked grin and a rusty dagger in hand."/>
<npc name="Orc" description="A towering figure with rippling muscles, wielding a massive axe and snarling menacingly."/>
</npcs>
<items>
<item name="Potion of Healing" description="A small vial filled with a glowing green liquid, said to restore vitality when consumed."/>
<item name="Sword of Flame" description="A gleaming sword with a blade wreathed in flames, capable of burning foes to a crisp."/>
</items>
</room>
So you get the best of both worlds, really clever procedural generation of content but also a tight structure - I've yet to see a syntax error out of it.