How to store Goals (think RPG Quest) in SQL
问题 Someone asked me today how they should store quest goals in a SQL database. In this context, think of an RPG. Goals could include some of the following: Discover [Location] Kill n [MOB Type] Acquire n of [Object] Achieve a [Skill] in [Skillset] All the other things you get in RPGs The best I could come up with is: Quest 1-* QuestStep QuestStep 1-* MobsToKill QuestStep 1-* PlacesToFind QuestStep 1-* ThingsToAcquire QuestStep 1-* etc. This seems a little clunky - Should they be storing a query