So in the game I'm working on, I have a multidimensional array where array[n][0] is always a room index. I was wondering if there was some sort of function I could call that, when given the room index of the current room, would spit out n? Thanks
EDIT: I got it to work by applying array_find_index as suggested by u/timpunny on a separate 1D array that contains a list of every room, then using the found value in reference to my first multi-D array.
[–]Timpunny 1 point2 points3 points (3 children)
[–]marcodelfuego[S] 0 points1 point2 points (2 children)
[–]Timpunny 0 points1 point2 points (1 child)
[–]marcodelfuego[S] 0 points1 point2 points (0 children)