Data Table or Matrix

A combat results table is the heart and soul of most wargames. Is it not?

Does anyone have any success stories in building a data table or matrix within a Vassal module? Aside from creating my own class, which I’m not there yet, the only thing I have arrived at is to create a series of global properties which I can then reference via a GetProperty function.

Of course, there’s always the possibility of nested if functions. That works as long as module run time performance is not an issue. Or programmer’s sanity.

I was hoping there was a way to reference the values in a game piece’s spreadsheet property. I haven’t found it yet.

Are you trying to just display a combat results table or have one that
automatically resolves combat?

On Sat, Mar 8, 2014 at 9:16 AM, MKerby mckerbyariz@gmail.com wrote:

A combat results table is the heart and soul of most wargames. Is it
not?

Does anyone have any success stories in building a data table or matrix
within a Vassal module? Aside from creating my own class, which I’m not
there yet, the only thing I have arrived at is to create a series of
global properties which I can then reference via a GetProperty function.

Of course, there’s always the possibility of nested if functions. That
works as long as module run time performance is not an issue. Or
programmer’s sanity.

I was hoping there was a way to reference the values in a game piece’s
spreadsheet property. I haven’t found it yet.


Read this topic online here:
Data Table or Matrix


messages mailing list
messages@vassalengine.org
vassalengine.org/mailman/listinfo/messages

The latter. So far I’ve created a series of global properties that I reference through a GetProperty function so that I set the actual result in a unique property with the following:

GetProperty(“Prime”+$x$+$y$) where Prime19 is a die result of 1 referenced against a set of circumstances denoted by the 9. It works for as many dimensions I wish to add to the matrix, but the growing list of GPs does become a bit daunting.