[C++] Adding variable amounts of pins to a custom node

I’m trying to script a dialogue system for use in blueprint using C++ but I can’t figure out how to add variable amounts of exec pins to the output of my nodes or have variable amounts of inputs.

For example, I want a function that adds several dialogue responses for a player (string inputs) and just as many output exec pins to correspond to each choice. Say you want to add three choices, you click the “add pin” button twice on the input side and twice on the output side, and the function works. Is there any way to do this is C++ or even with a pure blueprint macro? If it is not possible, is there at least way to add variable amounts of pins to one side of a node? Thanks in advance.

Exec pin kind of complicated if you want to add your own. With the ability to add more you need to look at the editor source code of how they do for their node.

My suggestion is use int variable for your choice and with the node Switch you can add as much as you want the out put exec. Or just look how they do for switch node and make your own version with more option.

Thanks for the reply, I’ll be sure to look into this soon. If it works, I’ll post my solution in this thread.