it's looking a lot like Mr. MO's Hash thing might work.
for example, he does something like this:
RANGE_SKILLS = {}
# RANGE_SKILLS[Skill_ID] = [Range, Speed, Character Set, Mash Time(in seconds), Kick Back(in tiles)]
RANGE_SKILLS[7] = [10, 5, "Magic Balls", 3, 1]
RANGE_SKILLS[13] = [15, 10, "Ammo", 3, 0]
RANGE_SKILLS[69] = [10, 4, "Shuriken", 2, 0]
class MrMo_ABS
def RANGE_SKILLS
return RANGE_SKILLS
end
end
which can be then accessed through stuff like this:
if $ABS.RANGE_SKILLS[my_variable] != nil
p $ABS.RANGE_SKILLS[my_variable][0]
End
What I don't understand is why "class MrMo_ABS" becomes "$ABS" and how the whole hash set up works outside the class, but then has to be defined inside the class. How would this be set up differently from a multidimensional array, i.e.,
a = array[x][y]