Is there some kind of node where I can basically have an input string convert to a different kind of variable?
Sort of like a switch, except for variables only.
Is there some kind of node where I can basically have an input string convert to a different kind of variable?
Sort of like a switch, except for variables only.
yup. generally you can drag the pin out into the other pin, and it would normally convert for you… for most types, not all.
other you have to drag the pin off, and type the name of the type you want to convert to.
Ok let me change my question, because I realized this isn’t exactly what I need. I have a variable called inventory which is a structure. The structure contains basically a bunch of variables telling what slot has what item.
Say for example I needed to do something to the item in row1column1. I call the function in my character blueprint, and send it the string that says “row1column1”. Now I need to say that since the string says row1column1, then it needs to do something to row1column1. That is what I’m trying to accomplish
so string functions then.
you can use the LEFT and LEN and other normal text commands to extract data. i’m assuming first youd retrieve the first number, and then the second.
In fact, you could always test using excel/google sheets since it uses pretty much the same commands
you can then do what you need with the results, first answer being Row=X and second being Column=X