Promote DataTables to variables in BP?

Hi staff,

I’ve got a question regarding DataTable objects in BP. I use data tables to feed csv tables to a self-scripted BP dialogue system. It works perfectly, and I’m very excited about it :slight_smile: However, it would now be very convenient for my team if I could convert the “PlayDialogue” call into a BP macro so that they could start a dialogue in the easiest way possible: just feed a DataTable to the macro and it handles all the rest, by iterating over the DataTable ("Get DataTableRow) and playing each line of dialogue.

However, I see no way in which I could realize this concept, as there does not seem to be a way to promote DataTables to a variable. Is this guess right, or am I missing something? If so, is there a chance that we will be able to use DataTable variables in the future?

Thanks for any information on this topic :slight_smile:

Is there no one who can help me with this issue or at least explain to me why it is not possible to achieve that? Someone from the staff maybe? Would be very thankful for any advice as I don’t get why I shouldn’t be able to use DataTables as variables.

Thank you!

I have the exact same problem - Can’t seem to make an elegant dialogue system without feeding data tables as variables into the conversation logic. And I can’t find any solution to make data tables variable. Have you found a solution yet?

I was thinking about converting data tables into lots of other variable arrays… but that would be a monster blueprint if you have lots of characters and lots of dialogues. Help!!

Thank you!

The workaround I found most elegant for my blueprint only dialogue system was to make different blueprints whenever there was a different table and override the ‘GetDialogueRow’ function (which simply returns the row item in the specified data table by name). It’s restrictive, but the only alternative is to go the C++ route (which is not possible for me).

In my case, the dialogue controllers are actor components, so you can separate the datatables by character or by topic and have multiple dialogue controllers on the actors (this way a character can have any number of datatables. Jumping from one table/component to another mid conversation is possible, so you can have re-usability ).

I am also very eager to find out why this isn’t possible!

Hellow Im Here To Promote My Site Plz Visit My Site Ejoy Thanks
marlboro racing jacket

Please keep up the good work and I’m looking forward to reading more from you soon Bomber Jacket

You can safely create your date table. And use this construction in function to get and write each item with ID to a variable. If the information was useful, please vote in a plus.

Your post help to integrate the data table and promote them in variable bp