floating point math, multiplication in a piece?

Is there some way for a Vassal piece to perform floating point math? Can I evaluate an expression like $value1$ * .5 * $value2$ + $value3$.

Anyway to assign this value to a dynamic or global property?

Currently, this can only be done by writing custom Java code and linking it in to the module.

You will be able to do this using The stage 1 beanshell functionality I am planning to include in v3.2. Beanshell will allow you to include arbitrarily complex Java expressions in fields that currently allow $name$ variables. So either way, time to brush up on your Java.

B.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

So do you have any time frame and/or documentation about what the new features are? My real question is: is it worth my time to learn how to do an extension verses waiting for 3.2?

And though we module developers don’t say it often enough, thanks for all the hard work.

Thus spake “dcholtx”:

We’re shooting for 3.2.0-beta1 during June, so not terribly far off. I’m
expecting the 3.2 beta process to be much shorter than the one for 3.1,
since there are fewer changes from 3.1 to 3.2 than 3.0 to 3.1, and a lot
of the time 3.1 spent in beta was devoted to killing old bugs which are
now gone.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On 21/04/2009 at 6:14 AM dcholtx wrote:

This forum tends to be the de facto repository of pre-release documenation and discussion.

Check out my posts over the past 6 months containing terms like ‘calculated property’, ‘beanshell’ and ‘scripting’

B.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

When are name triggers available is 3.2 or later?

Thus spake “Brent Easton”:

Speaking of that, I think we should start a Planning page in the new wiki.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On 21/04/2009 at 7:27 AM dcholtx wrote:

Named Keystrokes will be available in 3.2.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)