Tips for Crafting Engaging Missions?

I‘m currently trying to convert uni learn material into engaging game experiences using AI to be more interested in the taught concepts and to understand them better but I have difficulties in making it engaging. Do I need an exciting end goal? do I need more interactive elements? Any tips or ideas?

Here is what I was able to tinker together so far with AI:

(note: the h-index is the concept that my uni assignment is trying to make me learn. The h-index measures both the productivity and impact of a researcher’s work by considering the number of citations their papers have received):

Dialogue:

[Narrator]: "The neon lights flicker in the perpetual twilight of the cyberpunk city. You navigate through crowded streets, each corner whispering secrets of the digital age."

[Old man]: "Hey, you there! You look like someone who can solve problems."

[You]: "Depends on the problem. What do you need?"

[Old man]: "There's a critical issue affecting our research database. The h-index calculation for our scientists is malfunctioning, throwing off all metrics."

[You]: "Sounds complicated. What exactly is the problem?"

[Old man]: "We need an efficient algorithm that can calculate the h-index from a series of citation counts. The current system is too slow."

[Narrator]: "You realize this task could be crucial for the city's scientific progress. The old man looks at you with a mix of hope and desperation."

[You]: "Alright, I'll see what I can do."

Task:

Develop an algorithm to efficiently calculate the h-index from a list of citation counts.

Reward:

100$, 200xp

Choices:

[A]: Ask the old man for more details on the current system's flaws.

[B]: Investigate the research database to understand the data structure.

[C]: Search for similar problems and existing algorithms in the city's digital archives.


[Edit]: Changed the AI output into a more readable format