Unity enum c# - quest controller thingy

Hi, what i’m doing is making a quest controller/creator, i am using a custom editor that i’m in the process of making.

pretty much what i’m attempting to do is making a custom editor, you click an “add quest” button which in turn adds a new quest you then select said quest via enum then it gets the required variables for that quest. i want it to be capable of handling multiple quests.

what I’ve got
in the quest editor, there’s an enum to select which quest you’ve picked, be that kill X target, go get x object. and for each quest there’s some variables that i can input, ie what target to go kill or what object to go collect and a mulitide of differences…

what i want
from the aforementioned variance in quests i want the enum to add the script which is simple enough, but in the inspector i want it to bring up the required variables straight away.

what i think
the only way i can think of it is to initialize the public variables in the enum then pass them to the script thats added when the scene is started, but there might be 2 quests or 200 quests for the quest controller to handle so i’m not sure how that’d work. maybe if it ran off a list that you add onto then an array of each variable type that it runs a loop when started.

sorry for the long post, thanks for any and all help

Maybe have a look at scriptable objects?
https://unity3d.com/learn/tutorials/topics/scripting *see “Live Sessions on Scripting” theres few