Set Global Property - Expression Builder in Property Name field

Vassal 3.6.4 WIN64

Prototype - Set Global Property

Global Property Name FIELD allows use of Expression Builder - Is this a bug or intentional???
I wouldn’t expect expression builder to be permitted here…

If nothing else, it’s inconsistent with the Dynamic Property trait, which does NOT allow use of Expression Builder for the property name…

It’s intentional.

Dynamic Property is different because that Trait defines the existence of the property as well as allowing it to be changed.

Global Properties on the other hand are defined at module, map or zone level and the trait only allows changes. Hence the property name in Set Global Property can be allowed to be determined by an expression. This can be useful.

2 Likes

Here’s an example of how I’ve used it. Similarly I’ve used it to substitute in which “side” is being affected, etc.

3 Likes