- Home /
Help creating a randomized story event system
I am trying to create a system to trigger randomized events at specific points in the game. Those events should check to see if specific conditions are satisfied and then present the player with different options to resolve the event. An example would be a small interaction like this:
In the morning the player wakes up and an event triggers and shows on screen:
"Before breakfast you find your magical sword suddenly talking to you : "Hey, good morning for killing, isn't it?""
The player gets some options for responses like "AHH TALKING SWORD" or "Hey, you can talk?" etc.
The Event should check if the player has a magic sword to consider beeing triggered. Each possible answer might have some condition as well (maybe the character needs to be smart enough for some answers), as well as some actions that trigger in response (the sword might respond, stats may change etc.).
I am struggling to find a way of managing a large number of events and coming up with a way to properly represent the state of conditions throughout the game. I would like to use scriptable objects to make it easy to add/modify the events, but i have very little experience with creating custom editors to make this work in a managable way.
Sadly i have a very hard time finding examples for a system like this because any search for events is populated with the unity event system (which might be nice to trigger these, but does not help in their implementation).
Any help or pointers to relevant tutorials would be greatly appreciated.
Looks like a graph to me. Also, take a look at unity's Playables
Your answer

Follow this Question
Related Questions
Accessing local system ( File Browser ) 2 Answers
ScriptableObject use error , not use ? 0 Answers
Cannot create assets with c# 1 Answer
Save EditorWindow to disk 1 Answer