Need help with my dialogue system. It works, but I want it everywhere.

Hi there! I made a dialogue system for my game where I can simply write sentences for my NPC’s/The Player in a Macro as seen in the image I added.

The macro casts the text to a widget where it changes variables and uses functions to print out the text in the colors belonging to the person talking as a subtitle system of sorts. It works well and sentences wait for player input until they go to the next one, but I can only use these macros with the actor I made them for. How the hell should I set it up so I can actually use this convenient system for every actor that I want to print text from?

Functions are not a possibility as I need the delays in the macros. Macros in a macro library do not take variables I believe? Casting to a widget or actor does not allow you to access their macros. It’s annoying because I try to make my systems cookie-cutter clear and simple to use when they will be used a lot.

Thanks in advance!

Hi @Blackbirdobyri

The best way to do this is make a Master parent class with everything in it you need all NPCs to be able to do.

You can then create child classes for which you can change and customise to your needs whilst keeping thr access to all the macros and functions from the parent.