Create account / Log in

Counting cards in hand

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Counting cards in hand

Postby kerkael » May 8th, 2018, 5:14 pm

Hi,
I have this Terraforming Mars Module I have adapted, and some other developer added a : Game Piece Inventory Window to show the number of cards each player has in hand. This is required to claim a Milestones, if you can say you have 16 cards in hand.
However, this does not work.
It shows the total number of cards in all hands, instead of regrouping them by PlayerSide.
This is mentioned in the property, but as the player Blue, I see Blue : 15 cards where I have 5 and the other players a total of 10.
What's wrong ?
    Show only pieces matching these properties : {type=="card" && map=="hand"}
    Sort and Group By Properties : PlayerSide
    Label for folders : $PropertyValue$ = $sum_cardCount$ card(s)
    Sort ? (checked)
    Label for sort : $PieceName$
    Sorting method : alpha

Thanks for helping
kerkael
 
Posts: 44
Joined: December 1st, 2017, 3:03 pm

Re: Counting cards in hand

Postby kerkael » May 8th, 2018, 7:25 pm

GOTCHA !
Found suggestion for an answer in another topic.
    Sort and Group By Properties : $CurrentMap$
    Label for folders : $CurrentMap$ = $sum_Cardcount$ card(s)
PlayerSide could not be used to organise the view, as it's calculated for the current player !!!
As all the player hands/maps are named using the Side (Blue, Red, Green, Black, Yellow), this works fine.

It is not perfect, as the folder name gives the info about the number of cards, but I can't prevent it from showing some label for each card. After all, it's an inventory :).
kerkael
 
Posts: 44
Joined: December 1st, 2017, 3:03 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 2 guests

cron