Store, edit and recall info in a matrix?

Hi, I'm working on a couple of in-game systems that require storing information in a bunch of matrices. It's not immediately obvious for me how I'd go about doing that, so I've resorted to some pretty shoddy solutions (like storing information within the states and parameters of unused actors) - but this method is fast proving pretty unsuitable. I've looked into writing functions for it in the script editor and accessing the information through script calls but after a few days of searching online I've also hit a bit of a dead end on that front.

Does anyone have any methods for storing, altering and recalling information within matrices? Whether through clever variable use or through script calling?

Thank you
When I'm still using VX / VXA, I just make a script and store information inside constant.
Code:
module DataText
SOMETHING = ['a', 'b', 'c']
end
Then the value is accessed in the event using game variable via script call.
$game_variables[1] = DataText::SOMETHING

CMIIW, cause I don't use VXA anymore and I've forgotten lotsa things.

Game Variable is pretty flexible. It can become any type of data including object or array. It's a global variable and also part of the game system, so you can save the game safely while keeping the processed data.
I use this method to store my entire story in an array. The constant is unchanged, so you may process the data after it's inside the game variable.
Wow thanks Kuru, that's amazingly convenient - I never knew game variable was that versatile. Immediate solution to my problem, thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/store-edit-and-recall-info-in-a-matrix.123173/