Yeah. The approach for his goal is somewhat noobistic
Depends on how he later wants to access his weapons… by name? by ID?, I would make all other values members of a struct and wrap it in a second struct with the “key” value.
Then a simple loop can find the “key” and spit out the “data” struct…
PS: If he adds the index to each array he intended to create, then he would have implemented the rudimentary form of a relational database