Hello, Working with Scriptable Objects for a game I am developing with me and my friend. Using it to store separate events as objects which can be called to display with options with how to deal with it; each giving a outcome like losing 10 gold, etc.
Being the least code literate out of the two of us I coded (aka copied 90% of it) a resource management/display script:
https://paste.mod.gg/iipapofrqbzo/0
and then hooked it up to the buttons to do their respective action
The issue then is that tied to the "Option 1" of every event, no matter which event it loads option 1 will always give the same outcome. I brought up cloning the Scriptable Object instance but my friend said along the lines of "no, that's overkill, imagine making a copy of a script for every event" or along those lines. I am not sure where to go from here, brute forcing it doesn't seem the most optimal thing to do but idk, normally I would turn to her but she is swamped with all the coding and I want to put in my 2 cents and learn to contribute beyond just saying "I want it like this", any other ideas on how I could go about doing this? Thanks.
A tool for sharing your source code with the world!