Could someone tell me what is going wrong here? I’m trying to make a quick macro in my macro library for my actors to use that can take text and output the correct format. Only my macro library seems to really be struggling with Text variables. Does anyone know what is going on here? I realize I have redundant coding in the image, I was just trying to fix the issue.
Also, the macro seems to not accept any type in variables. I have to set a local variable for the macro to actually accept it unlike a float where I can just type that in. Not sure if my library is corrupted or if this is intended with the text variable. I’m guessing this has something to do with Text needing a reference? Would strings work instead here?
The problem you encountered is indeed because Text Is Empty wants a reference, and macro parameters are not actually parameters, the compiler is trying to put the text in the Text Is Empty node the same as you do it where calling the macro, hence the error when that is not a variable (note that Text Is Empty node doesn’t allow you type some text in, must connect something).
Using a function instead of a macro would resolve the issue, but probably not so useful for your macro library Otherwise need to use (local) variables as you originally did, or use Make Literal Text and feed that into the macro.
Or use strings as you ended up doing, where the Is Empty node does not require a reference.