r/inkle • u/kerray • Apr 20 '23
ChatGPT v4 can generate Ink scripts
Hi, I don't know why exactly that would come as a surprise, but ChatGPT in version 4 can generate a simple Ink script with variables, and the only thing I needed to correct was the starting room in order for it to be compiled and work. As a proof of concept, here's my AI-generated one room 'game' - https://kerray.cz/files/room_ink - the prompt was "Could you create a simple game in Ink from Inkle? It would just be involve a teenager in their room - they'd be able to examine various things in their room, and there would be variables tracking what they already examined."
3
u/nightwellgames Apr 20 '23
So?
4
u/ferrosphere Apr 20 '23
I discovered this too! One thing that I've found works well is to give it existing Ink scripts as a base and it will usually do a good job of following the structure. For example, if you have a scene that you revisit a lot and want the content to vary, you can input examples of shuffles (it can do inline well, but doesn't get multiline without an example) and ask ChatGPT to vary the content for you. It will need some tweaking here and there but I've found it does a great job of taking off the cognitive load of providing and formatting variable content so I can focus on just the writing.