[messages] [Module Design] Evaluating properties possible?

Thomas Russ tar at isi.edu
Tue Oct 12 09:10:05 MST 2010

On Oct 11, 2010, at 11:56 PM, eekamouse wrote:

> Here is the scenario: I want to keep a running total of the "Honor
> value" of the cards in a player's personal deck.
> Adding up all of the counts. I was hoping to be able to do something
> like this...
> $Player1_Deck_OneHonor$ + ($Player1_Deck_TwoHonor$ * 2) +
> ($Player1_Deck_ThreeHonor$ * 3)
> So that it would add up all the different values and multiply them and
> show the right Honor value.
> SO!!! My question is... Is there a way to get all of these  
> properties to
> "eval"/"evaluate" on the fly? :)

Not at present.

This is an enhancement that is planned for the next version of Vassal  
3.2, when new technology (beanshell) will be added that is able to  
process arithmetic expressions.

More information about the messages mailing list