A deck question

Thanx!

Glad I could help.

Now, I will try automate the reverse process. Clic on other button, and the 25 cards distributed on the map return to deck. I hope achieve it :open_mouth:

Easy way to do that would be to place a Marker in your card prototype. Something like

CardType = Standard

Then just have the button send a “Return to Deck” key command to all pieces with the property:

CurrentMap = (map the cards are on) && CardType = Standard

That should do it.

Sorry, my head is confused. I´m trying to resolve the mistery whole last night, unsuccessfully (of course), and now you give me the secret in two words, leaving my mind blank.
Two questions:

  1. I have to create a new button?, or the same button is used for rebuild the deck?
  2. “Return to Deck” is a trait that does not allow the expression “CurrentMap =(map the cards are on) && CardType = Standard”. Then, where I write this expression?

Thanks again.

You can do either. If you use the same button, you’ll have use a Dynamic Property trait to change the status of the button. If you want to do that, let me know and I’ll tell you how.

The property traits would be in the new button. Your button would have the following:

Action Button
Invokes CTRL 1

Global Key Command
Keyboard Command: CRTL 1
Global Key Command: CTRL R (if this is your “Return to Deck” key)
Matching Properties: CurrentMap = (map the cards are on) && CardType = Standard
Apply to all pieces

In other words, you’re using the button to send a command to somewhere else based on the Property Expression.

With the above property expression, the CTRL R would then get sent to all pieces with the CardType = Standard on the layout map and, if your card prototype has a “Return to Deck” trait that is triggered with a CTRL R and the Marker - CardType = Standard, they’ll all be returned to the deck.

Ok. I understand, and the other button finally works.
I think that is better two buttons instead of one, but if you want to explain how to do the two actions at a single button, I will be all eyes (spanish expression).
Thanks again, and again, …

I’m going to post a follow up on this …except I can’t seem to get it to work right in the sample mod (sheepish grin)

I’ll be back.

Hi everybody,

I will try to do the same (only drawing one card from the top of a deck in fact) and that seems to doesn’t work when cards are face down in the deck.
That work well when the deck is face on (face down = never).

I miss something ? you have an explanation ?

(sorry for my poor english).

Arnaud.

On Jun 3, 2010, at 8:02 AM, Nono wrote:

When you say that it “doesn’t work”, what exactly do you mean?

Do you mean that when you click on the deck to draw a card, nothing
happens?
Or do you get the entire deck instead of just one card?

C’est meilleur que mon français.


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

Post generated using Mail2Forum (mail2forum.com)

In the exemple modul of this topic, you click on the “Deal” button and the card are automatically placed on board. If you change the card prototype to add a mask, and if you set the deck to “content are face-down : ALWAYS” (insted of NEVER) when you click on the “Deal” button, nothing happen.

In my module, I juste want to draw one card when I click on the “deal” button, so it is more simple, I don’t need the trigger etc… that works fine if my deck is set to NEVER (but I see the face of the bottom card of the deck) and doesn’t work when it is set to ALWAYS (I see the back of the card but nothing happen).

Arnaud.

Check your trait stack order. The mask trait is hiding the dealing trait, thus preventing it from working

From: Nono messages@forums.vassalengine.org
To: messages@forums.vassalengine.org
Sent: Thu, June 3, 2010 1:31:23 PM
Subject: [Module Design]Re: A deck question

tar wrote:

In the exemple modul of this topic, you click on the “Deal” button and the card are automatically placed on board. If you change the card prototype to add a mask, and if you set the deck to “content are face-down : ALWAYS” (insted of NEVER) when you click on the “Deal” button, nothing happen.

In my module, I juste want to draw one card when I click on the “deal” button, so it is more simple, I don’t need the trigger etc… that works fine if my deck is set to NEVER (but I see the face of the bottom card of the deck) and doesn’t work when it is set to ALWAYS (I see the back of the card but nothing happen).

Arnaud.


Arnaud URBON


Messages mailing list
Messages@forums.vassalengine.org (Messages@forums.vassalengine.org)
http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org

Post generated using Mail2Forum (mail2forum.com)

Wherever I place the mask trait that doesn’t work.
I try “mask” before “sent to location” and the opposite, in both cases that doesn’t work.

may be I don’t understand what you have said ???

Arnaud.

If it’s still not working after moving the mask about then you have some other restriction / option you are not telling us about.
Drawing cards from decks should work be it if the cards are face up or face down - that has no bearing on the problem.

From: Nono messages@forums.vassalengine.org
To: messages@forums.vassalengine.org
Sent: Thu, June 3, 2010 3:34:07 PM
Subject: [Module Design]Re: A deck question

Tim M wrote:

Wherever I place the mask trait that doesn’t work.

I try “mask” before “sent to location” and the opposite, in both cases that doesn’t work.

may be I don’t understand what you have said ???

Arnaud.


Arnaud URBON


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

Post generated using Mail2Forum (mail2forum.com)

I don’t know if this would apply but make sure your Mask is set up properly. Here’s what the mask trait should look like:

http://www.drnostromo.com/tbk/Mask.png

If yours has only the top image, click the Display Style and select Use Image. Then add your graphic again.

Ok that works now, TIM has right, the “mask” trait has to be place before the “send to location” traits. In my module, my mistake was I call a “prototype” trait after the “send to location” in which there is an other “mask” trait.

Thank you for your help and for this explanation.

cheers,
Arnaud.

rezing a dead thread but its relevant. I am trying to do this exact thing with a hex grid rather than irregular. I reaaly dont feel like putting the dots in myself. when i use “use region on selected map” it says it cannot find it (may be related to my using a multi-zone grid) and if I use “use zone on selected map” it dumps them all on the center grid location. ideas?