GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Adding multiple rows within 1 Table

JGary321JGary321 Posts: 1,246Member
edited May 2012 in Working with GS (Mac)
Hey guys, working on an RPG here... Got a lot done.. Just implementing the Item System. I have everything in place with it, but I did it the long way. I was wondering if anyone knew of an easier way to add multiple Rows together within the same table WITHOUT having to include the table name in the math everytime. For Example:

tableCellValue( game.Table_Player Info ,1, game.PLAYER_LVL )+
tableCellValue( game.Table_Item Info , game.R-Hand ,1)+
tableCellValue( game.Table_Item Info , game.L-Hand ,1)+
tableCellValue( game.Table_Item Info , game.Armor ,1)+
tableCellValue( game.Table_Item Info , game.Jewelry_1 ,1)+
tableCellValue( game.Table_Item Info , game.Jewelry_2 ,1)+
tableCellValue( game.Table_Item Info , game.Enchantment ,1)

I have to scroll the window a few times to get it to all show.

I've tried numerous things to combine it, but nothing seems to work. All these rows I want to add together use the same Table(Except for 1st one), so I just figured there has to be a way to clean it up a little.

JG

Comments

This discussion has been closed.