Hi! I'm hoping to create some custom inspectors to speed up my workflow. One thing I'd like to be able to achieve is having a text box component attached to an NPC in which I write down their conversation text, which is then referenced from within an ORK event.
Make sense? So I'd like to be able to make one event called ORKGenericNPC (or whatever), which reads variables that I've set in a custom inspector.
While I'm sure this is possible on some level, what would you recommend is the best way to achieve this? I am guessing writing a custom event step? That reads data from whichever actor's gameobject is set in that event's settings? Just thinking out loud, here, really, but I'd appreciate some input.
That should be pretty easy - just write your custom component, unless you need to do something special for the inspector, the default Unity inspector should be enough for the text input.
In the ORK event, use a Field To Variable step to store the text you've written in your component into a global string variable. You can display the value stored in the variable using text codes in Show Dialogue steps.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
In the ORK event, use a Field To Variable step to store the text you've written in your component into a global string variable. You can display the value stored in the variable using text codes in Show Dialogue steps.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I think we can consider this one resolved ;)