Creating a new data file (similar to the ones RM uses) [VX ACE]

Hello to anyone who might see this!
I want to add some different mechanics, namely a new type of equipment and different slot space for it to be equipped in (not an extension of the equipment types, a completely new one). I couldn't find any scripts to do it the way I wanted, so I've been creating this in the programme from scratch. I've been following RM's structure and manual, so far so good, but I have no idea how to create the data file needed to draw the information on the equipment. Basically I can't create the equipment itself.
Any help will be much appreciated!

Edited to add: If there's a way that doesn't involve creating such a file I'd be interested to know too
That's a fairly big project you've taken on! 🙂 I think my initial instinct is that creating a data file like the engine uses is more complicated than you need. You can fairly easily define your weapon data in code instead. I've got a custom attack system, and I just have a giant switch statement that looks like this:

Code:
when "sleep"
  stats.name = "Sleep"
  stats.cooldown = 360
  stats.type = :addstate
  stats.hitArea = :line
  stats.hitDistance = 3
  stats.states = [ [ :sleep, -1 ] ] # -1 is important, so we will draw the Zzz
  stats.attackAnimationId = AnimationIds::CastSleep
  stats.description = "Puts enemies in a line in front to \\as[sleep]. Attacking them will wake them up."

For reference, I've configured 50 attacks and probably 200 monsters using a system like this and it works fine from a perf point of view. You have to make changes in the code editor to update your weapons, but if you're hacking a custom slot into the engine, you must be fairly familiar with code already 😉

If you wanna get geeky about speed, the most efficient thing is actually to have a dictionary rather than a switch statement (I believe ruby evals switch statements by doing each one in sequence rather than a dictionary which will be ~a single hash lookup to get your item). However, for me, I wanted to run code when I was building up my data objects and so a switch statement worked better. If you cache the result of this, it won't matter either way.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-new-data-file-similar-to-the-ones-rm-uses-vx-ace.133028/