OK...
 
So, Tim figured out that I was using the wrong property name.
 
Now my question is, can you combine variables?  That is, perform
mathematical functions on variables?  I don't see any way to do this in
the reference manual, and when I try something like <name>_numPieces +
<name>_numPieces, I get something like 10 + 10 instead of 20.
 
I want to be able to add the number of cards in 2 decks together, and
trigger on the resulting number.
 
So, any ideas?  Or am I missing something with the math and this is way
easier than I'm making it.
 
Thanks.
 
Dave

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Tim McCaron
Sent: Friday, July 27, 2007 11:28 AM
To: [email protected]
Subject: RE: [vassalengine] Number of Cards in Deck



This is because the property is misnamed in manual where you are looking

Try <name>_numPieces :-)

_____ 

From: [email protected]
<mailto:vassalengine%40yahoogroups.com>
[mailto:[email protected]
<mailto:vassalengine%40yahoogroups.com> ] On
Behalf Of David Neumann
Sent: Friday, July 27, 2007 10:52 AM
To: [email protected] <mailto:vassalengine%40yahoogroups.com>

Subject: [vassalengine] Number of Cards in Deck

Hi all,

I have a deck of cards and I want to be able to set a trigger so that
when the last card is pulled, a trigger occurs.

The game starts with this deck empty, then cards are added during the
game, and then they are finally removed from the deck.

I've been trying to use the <name>_numCards property, but it doesn't
seem to do anything.

I've set a trigger on each card that when a card is drawn from the
deck, it should trigger if <name>_numCards = 0. Nothing happens. I
added a text label to each card to monitor the value of
<name>_numCards, and I never get a number, all I get is
<name>_numCards, never a number.

What am I doing wrong? Is there something I need to do to have the
<name>_numCards property work?

Thanks,

Dave Neumann

[Non-text portions of this message have been removed]



 


[Non-text portions of this message have been removed]

Reply via email to