I would like to know how to use the Table.new class.
Here is what i've tried:
My problem is that it tries to convert everything into an integer... I was hoping the table class would be able to help me when i'm working with my Bio-mod List.
Here is what i've tried:
Code:
class Bio_List
@list = Table.new(50, 6)
@list[0,0] = 32 #item ID
@list[0,1] = 1 #zone
@list[0,2] = 0 #lvl Requirement
@list[0,3] = [1,2,3,4,5,6,10] #actors able to use it
@list[0,4] = 0 #Skill Additions by ID
@list[0,5] = "head.png" #icon
@list[1,0] = 33
@list[1,1] = [2,3]
@list[1,2] = 0
@list[1,3] = [1,2,3,4,5,6,10]
@list[1,4] = 0
@list[1,5] = "arm.png"
end
My problem is that it tries to convert everything into an integer... I was hoping the table class would be able to help me when i'm working with my Bio-mod List.