Say I have a deck of cards on the board, is there anyway to limit the mouse-over stack viewer to just view the very top card of the deck? Because right now the viewer would have all the cards in the deck line up horizontally, while I just need the very top card popped up.
Generally, if you have a stack viewer attached to a map, it will work the same for all pieces on the map, showing all the pieces in a given stack.
To change the way the viewer displays a given set of pieces, you need to change the stacking behavior for those pieces.
For example, you could assign different pieces to different Game Piece Layers on a map, which will prevent them from stacking with one another.
Or you could assign the individual pieces the Does Not Stack trait, in which case they won’t show up in the viewer unless you choose the Show Non-Stacking Pieces option when configuring the viewer.
What if I need the pieces to be able to stack and I want only the top of the deck to show?
If it makes my intention clearer, I am trying to create a “discard pile” for discarded cards. The cards always face up and creates a deck with only the top card visible. Right now when I hover my mouse over the discard pile, all the cards in the pile show up, but I just want the very top card to show up. Any idea?
Is your discard pile an empty deck? If not, then making it so will do what
you want. Be sure to add a discard/return to deck command to each card and
have it go to your discard deck so you don’t have issues with dragging the
card exactly onto the pile. In the mouse over stack viewer, there’s a check
box for showing the top piece in a deck. Check that if you need to have the
topmost card on the deck be zoomed in when you hover over the discard deck
otherwise the mouse over will ignore deck contents.
Making an empty deck for the discard pile is a great idea!
I would like to do that, except for one problem. I have the draw deck (all cards facing down) on the same board, so if I enable “Show top piece” for the discard deck, it would also affect the draw deck. Which means if I hover the mouse over the draw deck, I will see what the topmost card is even though it is facing down (masked).
A fix to that would be creating 2 separate boards, but is there a way to get around that?
Hmmm. You’re right it does show the top most card unmasked for a deck. I’m
not sure if that’s a bug or not or how to correct that. I’ll play around
with a module I have that does that and see if I can find the settings that
shows only the masked card. I suspect that ownership of the deck might fix
that, but if it’s a common draw deck that doesn’t help.
However, it’s not exactly a game breaker. If you have your draw deck to
always shuffle, the card drawn isn’t always the top card rather it draws it
randomly from within the deck as I understand it. The top card shown is
actually the last card you added to the deck in the module editor unless you
add cards to the deck later during the game.
cparrott wrote:
check
the
Making an empty deck for the discard pile is a great idea!
I would like to do that, except for one problem. I have the draw deck (all
cards facing down) on the same board, so if I enable “Show top piece” for
the discard deck, it would also affect the draw deck. Which means if I
hover the mouse over the draw deck, I will see what the topmost card is even
though it is facing down (masked).
A fix to that would be creating 2 separate boards, but is there a way to get
around that?
I’d like the option to “exclude masked objects” as well. Mainly for decks. Like posted above, seeing the “top card” in a masked deck isn’t a huge deal when set to always reshuffle.
In the game I’m making there are multiples of cards anyway, so seeing that there’s one specific card left won’t break the game. Still, would be nice though.
The solution is to define two Mouse over Stack Viewer objects … One for normal viewing and dedicated for zooms. But without Include top piece in deck.
The second Mouse over Stack Viewer will have “include top piece in deck” selected and include individual pieces [by using a property filter]. Finally, declare Piece selection by filter : DeckName=MyDeck1 || DeckName=MyDeck2
DeckName is a reversed vassal word to point on your wanted deck (MyDeck1,2 in this exemple).
By this way the zoom function is granted for “discarded cards” shown in deck objects.