I have 6 uses in mind.
I’ll write the first 2.
They are meant for a MUD-like game where you explore open worlds, fight with enemies like orcs and trolls and cast spells.
This time, for spells and combat, you do not have a set of predefined choices, a menu of options you choose from: you can type everything you want.
I’ll write the prompts: I tested them. ChatGPT 4o performed very good on those.
1. Super-parser
Hi ChatGPT.
Now I’ll pass you two inputs: the first is the description of an action. The second is a list of extremely short descriptions of actions, indexed starting from 1.
You must return the index of the list element most similar to the first input. If none of the elements in the list are similar to the first input, return 0.
First example:
Input 1: ‘I’m heading west’
Input 2: [‘go east’, ‘go west’, ‘go north’, ‘go south’, ‘go down the well’]
Outputs: 2
Second example:
Input 1: ‘I’m heading east’
Input 2: [‘go east’, ‘go west’, ‘go north’, ‘go south’, ‘go down the well’]
Outputs: 1
Third example:
Input 1: ‘I use the rope to go down the well’
Input 2: [‘go east’, ‘go west’, ‘go north’, ‘go south’, ‘go down the well’]
Outputs: 5
Fourth example:
Input 1: ‘sing my heart out and dance’
Input 2: [‘go east’, ‘go west’, ‘go north’, ‘go south’, ‘go down the well’]
Outputs: 0
2. Spell goals analyzer
Hi ChatGPT, I’m providing you with a textual description of a combat spell in a game similar to D&D.
You have to output me a vector of four coordinates.
First coordinate: it is equal to 1 if the spell causes physical damage, it is equal to 0 otherwise.
Second coordinate: it is equal to 1 if the spell tries to stun or daze, it is equal to 0 otherwise.
Third coordinate: it is equal to 1 if the spell seeks to trap or hinder, it is equal to 0 otherwise.
Fourth coordinate: it is equal to 1 if the spell tries to immobilize, it is equal to 0 otherwise.
If none of the options are verified return an output of all zeros.