Adding Cell Values
Hey, guys. I've looked around on the forums with no luck, so I wanted to know if anyone knew if a quick way to add all the cell values (which periodically change) of a table together so that I can use that result in other areas.
Thanks
Thanks
Comments
Make a rule in the timer saying (if col < MaxCol AND row ≤ MaxRow) {Change game.value to tablecellvalue(table1,covarl,rowvar) }
Make another rule saying that (experiment with it in and outside the timer. I don't think it makes a difference but I might be wrong)
If (colvar = 15)
{
Change rowvar to rowvar + 1
}
Make sure to add a "Change colvar to colvar + 1" right after the "Change game.value..." (inside that same rule).
Hope that helped!
P.S. There are faster versions of timers rather than "Every 0 seconds" that you can look around and find on the GSForums!
- 5227