I'm trying to set the value of a number of float variables at the same time. The number of variables I need to set is not consistent. I've got my floats named:
- 0_chance_f
- 1_chance_f
- 2_chance_f
- 3_chance_f
I'm trying to use an int to represent the current float being changed, then increment that as I work through the floats to be changed. What I had hoped to do was:
- Convert int to string
- Build string using int+"_chance_f"
- Set the value of the float corresponding to the new string
- Increment the int value
- Goto 1
But the 'set float value' action only lets me choose from a list of existing float variables, there's no option to choose a string and use that as a variable name. I imagine it's fairly simple to do in code - but I'm using Playmaker because I don't know how to code
Is this something that can be done in Playmaker currently and I'm just missing the 'how' or if not: is it functionality that can be added fairly easily?