Could be nice if there was a variable type "array" of floats.
That way I can "join" many variables to one without having to create lots of variables to create.
I could create a comma-separated string but this isn't modifiable/checkable then by AC actions.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Thanks for the suggestion. A custom Action to process such a string could certainly be written for specific purposes, but I'm not sure how user-friendly a "generic" Action to process such data.
Can you shared details of the situation you're dealing with, as well as how you'd imagine an Action being able to work with it? It will help me decide the best approach.
The idea is to allow multiple checks without many variables.
E.g. an action is taken when a book is taken and a page read. You have to have 2 variables and two actions to check both.
Instead you can have a float[2]. I checked and modified gvar.cs to include a "FloatArray" (and enum.cs) with the help of Claude.
From actions, you can now a) check a specific index of that array, therefore you can group related actions only to one variable and b) check all values of the array -> instant result when all the actions must be e.g. 1 to proceed.
I did some changes to the .cs files, if you are interested, let me know.
Generally, limiting the number of variables needed if the data to be managed is "related" is a good idea.
If you can consider this, I will wait for an implementation. If not, I will try to implement it fully myself and keep a checkout in my local AC copy in case you change something in the scripts later.
I'm posting in extending the editor the working code.