Organizing an RPG equipment system... scriptwise

How should I go about organizing the scripts for an invenotry system in an RPG? Should I use arrays for this? I’ve already assembled a basic movement system and a basic item inventory system… now how do I go about assembling this system?