I am creating an unlock menu using Active System Boxes and an array. Being new to Fusion I'm struggling to figure out how to achieve the method for the result I'm after.
The end result should be: Player selects options from 0 to 10 checkboxes and clicks continue (fully working) -> Array is checked and outputs cost for options, player clicks button to apply the options (this is where I struggle) -> Cost is deducted from player and Options are then active (working).
I currently have it so that each option has a value in the array, 0 = Unselected, 1 = Selected, 2 = Applied. The inital checkboxes toggle the value between 0 and 1. What I'm struggling to figure out is then how to change the value to 2 when the Apply button for the options that have been selected.
I'm figuring it should be a loop through the array, checking the value and then adding a +1 where the value equals 1.
So roughly speaking, something like:
Set array position (0,0);
Run loop while array y position < 10
IF (value) EQUALS 1 THEN write value (value)+1 ELSE Do Nothing;
Set array position (current position)+(y position+1);
A big part of this is probably me just not knowing where to find, and which functions will achieve this. All and any help would be appreciated!