OK...I think I could work something out here with the GPs and
triggers...
 
That said, where can I get Brent's 'Calculated Properties' trait?  I've
looked on vassalengine.org and didn't find it.
 
Oh, and I've solved that problem with the cards in FoD, Tim.  I'm just
reporting the match in the chat window and letting the Dracula player
turn the card over himself.  I've playtested a few times and it works
out absolutely fine.  Probably not worth all the extra work to fix the
'flipping' issue. (especially since I can't post the mod anyway...)
 
Thanks,
 
Dave

________________________________

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



Yes - if you have the 'Calculated Properties' trait plugged in that
Brent
made

Yes - if you don't, but in a more arcane way. Have a trigger send the
value
of one deck to a GP, then have it increase the value of that GP by the
value
of the other deck. Read off the value of your GP to trigger resultant.
You
must also provide a reset mechanism if this process is done continually
(btw
this is what is essentially what you need to do in your FoD mod for the
card
movements at top although invoking different properties, to reveal
things -
I still haven't got to it yet). You may need a couple of DP's in here to
do
some number passing, but it is possible.

If you look at the Combat Commander module you'll find all of this type
of
stuff, but it takes a bit of dissection to follow

_____ 

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

Subject: RE: [vassalengine] Number of Cards in Deck

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: vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com
[mailto:vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com]
On Behalf Of Tim McCaron
Sent: Friday, July 27, 2007 11:28 AM
To: vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com
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: vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com
<mailto:vassalengine%40yahoogroups.com>
[mailto:vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com
<mailto:vassalengine%40yahoogroups.com> ] On
Behalf Of David Neumann
Sent: Friday, July 27, 2007 10:52 AM
To: vassalengine@ <mailto:vassalengine%40yahoogroups.com>
yahoogroups.com
<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]

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



 


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

Reply via email to