So hey guys,
I've been having some difficulty trying to figure out how to create your own objects/classes in code.
What I want is to have an object that can be referenced by other sub data members, like when you create a class in java.
(Box class, having width and height ... bla bla bla )
Kinda also like a record variable type in pascal.
Or module in ruby.

More Detail:
What i really want is to implement a similar event system as in RPG Maker XP / VX, if any of you know what that is. My aim is to try and create common events, containing an index, name, action and dependanacy fields.

I hope i explained myself clearly laugh