I have to design a quests game that each quest has different logic. My first solution is store a function_code (such as 1,2,3,4,…) for each quest, then depend on it to call function to use. I really do not know how to make it more effective.
I want to find a better design for this task.
New contributor
Cường Trần Hưng is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.