Week 8: Shooting at the [Sun]
May 8, 2025
Hi everyone, and welcome back to Constructing [daybreak]! This week marks my first attempts at prompt engineering, both in Chat-GPT to reformat my dialogue document as well as in LLM for Unity to generate dialogue scripts for short scenes. With that in mind, I will let the results speak for themselves.
01. Of 10 [Suns], 9 shall be shot down
As the title implies, it took me around 10 attempts before Chat-GPT successfully understood what I was asking it to do. In order for Chat-GPT to reformat my dialogue, I had to give it step-by-step instructions explaining the header system I use to automate reading dialogue files into Unity. However, merely instructing Chat-GPT on how to reformat my document was too confusing of a task for it to accomplish on its first try, as evidenced below.


While Chat-GPT grasped the fact that I had two characters it appeared confused as to what I actually wanted. Not only did it incorrectly reformat every line (turning every line of dialogue into an option), it also decided to rewrite every line, which was not something I was looking for at this point in time.
Enter the few-shot prompt engineering strategy, in which one provides the AI with an example of the result one is looking for as part of the prompt. Using the tutorial scenes as a sample for what the reformatting should look like, Chat-GPT is able to successfully understand the header system I am using:


Only, Chat-GPT is still rewriting all of my dialogue, despite my requests for it to ignore the meaning of the dialogue and to copy paste everything after the colon. Luckily, making my prompt more strict and specific by combining these two instructions into “Ignore all text after the colon,” I was able to finally get the result I desired using the prompt shown below.


02. [Dawn] Rising
In addition to throwing prompts at Chat-GPT, I also decided to try prompt engineering LLM for Unity, to evaluate the quality of writing that the local LLMs can produce. While I have yet to stop LLM for Unity from outputting into the Debug log, here are the prompts and outputs of my two short attempts:
Attempt 1:


Attempt 2:


While the LLM does capture the tone of the two characters decently well in the second attempt, there is still much to be desired in the narrative department, from a setting consistent with the main narrative to the pacing of how the story is told. However, these will not be the final prompts given to the AI; I will be spending the next week workshopping these prompts to create (hopefully) a well-paced side narrative that compliments the main narrative recorded in the binary tree.
See you next week!
Leave a Reply
You must be logged in to post a comment.