# Sorting weapons + monsters

**URL:** <https://forum.kirupa.com/t/sorting-weapons-monsters/311845>\
**Category:** flash\
**Created:** [July 18, 2010, 3:13pm UTC](https://forum.kirupa.com/t/sorting-weapons-monsters/311845 "2010-07-18T15:13:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvrb](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Post date:** [July 18, 2010, 3:13pm UTC](https://forum.kirupa.com/t/sorting-weapons-monsters/311845/1 "2010-07-18T15:13:31Z")

</div>

Hello everyone. I’ve just started making a RPG game. I want to add alot of monsters, and I’m looking for a way to keep all my monsters in one class maybe? So I’d have a class called “Monsters” and in it it would be like:

```auto

Monster1{
Strength = 50;
Stamina = 25;
Agility = 30;
}
Monster2{
Strength = 10;
Stamina = 15;
Agility = 40;
}

```

etc.

Is there a way I can store my monsters like that, AND read them from my main timeline, so when my character enters my dungeon, it will take a random monster from that class file? And also I would need to get the stats from the monster, so I can calculate the damage dealth.

I would also need a system like this for sorting out all my weapons in game, where the stats are kept too.

Can anyone help me with an easy way to make this?
