Count of cards in map window

Is there a variable that returns the # of cards in a map window or board? Or perhaps a way to make a global command count them? (I am just a beginner).

Is there a list of all variables available?

I think the only way to do this is to have a Global Key Command cause each
card to increment a global variable by one and then report the total.

It’s not very easy. You need a single unit with a Set Global Property trait
to set the global variable to zero first.

The next global Key Command matching all cards triggers a Set Global
Property trait to increments the global variable by 1.

Then a third trait in the “helper” unit then reports the total. These three
traits are linked together by a trigger.

  • M.

On 29 September 2010 20:03, JohnnyNonsense greg.larson08@gmail.com wrote:

Is there a variable that returns the # of cards in a map window or
board? Or perhaps a way to make a global command count them? (I am
just a beginner).

Is there a list of all variables available?

I think the only way to do this is to have a Global Key Command cause each card to increment a global variable by one and then report the total.�

It’s not very easy.� You need a single unit with a Set Global Property trait to set the global variable to zero first.


The next global Key Command matching all cards triggers a Set Global Property trait to increments the global variable by 1.

Then a third trait in the “helper” unit then reports the total.� These three traits are linked together by a trigger.


- M.

On 29 September 2010 20:03, JohnnyNonsense <greg.larson08@gmail.com> wrote:

Is there a variable that returns the # of cards in a map window or

board? �Or perhaps a way to make a global command count them? �(I am

just a beginner).



Is there a list of all variables available?