Since we don't have access to dictionaries right now I have been using arrays with indexes as my key and then the value at that index as my value for key value pairs. If you try to set a value of an array at index 1 but have nothing at index 0 and then set the game storage variable to it you will get a difficult error to try and track down in your code. It would be nice if we could store an array with empty fields in a game storage variable. There is also no None variable for variables which makes it more difficult to check if a index in an array is empty or not.
For anyone else stuck on this here is the workaround I found. Use a count with loop to count from the length of the array to the index you are going to use and set each index inbetween to 0.
Since we don't have access to dictionaries right now I have been using arrays with indexes as my key and then the value at that index as my value for key value pairs. If you try to set a value of an array at index 1 but have nothing at index 0 and then set the game storage variable to it you will get a difficult error to try and track down in your code. It would be nice if we could store an array with empty fields in a game storage variable. There is also no None variable for variables which makes it more difficult to check if a index in an array is empty or not.
For anyone else stuck on this here is the workaround I found. Use a count with loop to count from the length of the array to the index you are going to use and set each index inbetween to 0.
Share this post
Link to post
Share on other sites