Register

Ready To Use Cards

An Add-on Module for Foundry Virtual Tabletop

Author: didialchichi Project Source: Project URL Versions 11 - 12 (Verified 12.238) Last Updated 1 month ago

Ready To Use Cards Module

Introduction

The mindset

This module has been developped with the following mindset :

Supported languages

This module is currently available in French and in English.

Choose the decks you want

Comes with Ready to use decks

Inside the settings, you will be able to toggle those decks :

For those decks, on click in the settings and all is ready to use !

Setting panel

Alternative:

Regiter deck alternative

And then uncheck actions you don't want to have :

Choosing decks

Add custom decks

The GUI won't change as long as the stack is not registered inside this module decks.

You can still create other decks. The same way you did it before.

Once you're done, you can add the deck to the registered ones :

Regiter deck

By doing so, a second stack for the discard will automatically be created. And now you will have access to this module GUI !

Regiter deck result

If you want to make slight changes (like adding Jokers) from preconfigured decks, presets are available :

Available presets

Choosing which actions you want for your cards

The config panel

The conf panel for choosing them is available by two methods :

Choosing actions access

If you choose the second method, config panel will directly be set on the click stack.

Choosing actions result

Each checkbox is linked to a possible action in the main GUI.

Additional data for a deck

Appear when a deck is unfolded. This first paragraph gives you additional information on this deck, and let you decide some general parameters :

Additional parameters

Those parameters are for an advanced usage of this module. If you just want to know how to select the available actions for your deck, you can skip those details

Used prefix for labels

Most of the decks only have this parameter.

It indicates RTUC where to search for labels when cards of this deck are played. Labels for deck name, actions or chat messages are constructed with a prefix depending from the deck. (It will try with the given prefix, and fallback to RTUCards.default. if not found ).

You will have more details on how this works inside README LABELS

Revealed cards put face down

By default, revealed cards are handled the same way the some way has the hand stacks. This options can allow players to reveal cards face down.

When this option is chosen, the revealed cards are directly put face down and the other players don't see anything in chat. (Same behavior as when players draw cards in their hand)

 

The deck configuration is locked

This parameter only appear when a deck has been registred inside RTUC via hooks. By unlocking it, you will be able to modify what has been defined in the hook.

If you lock it back, it will fallback to the default settings defined in the hook.

With version 1.10.0, the hook signature has slightly changed, and available actions for the deck have to be defined differently. When migrating from a previous version, this parameters will be set to unlocked so that you won't loose your previously defined actions.

Once you're sure the module/system calling the hook has also been updated, you can lock it back. It will then retrieve the defaultSettings from the hook.

When a deck configuration is locked, you can dwelve into action categories to see which actions have been chosen, but you won't be able to change them.

Actions are grouped by categories

You will first see actions for deck and discard cards. Those actions are for GMs. (Some of them are also accessible to players if you give them ownership on those stacks.)

For each of these action groups, will you be able to define where this action can be done, and by who :

Choosing actions grid

And depending on which options you took, you will be able to define additionnal properties :

Choosing actions params

All those properties have default values. Apart from the button text, a next chapter will describe the utility of each one.

When an action group is folded, the square icon will help you see if you took :

Some actions groups have no grid : It just means that there is only on action related to this group.

Some rules for the card stacks

Player card stacks rules :

Decks and Discard piles rules :

Action group : Peeks on cards

By default, GM can't see a player hand, but there are some cases where it can be useful. Mainly for assisting a player who hasn't understood one of its cards.

With this action, the GM may see other player cards, or even the deck cards.

If the GM choose to do so, players will be warned

Peeking on warning

This is what he will see by default :

Before peeking on

And once he clicks on the Peek on content button :

After peeking on

Action group : Moving a card through stacks

It regroups multiple actions, each one making a card go from a stack to another :

Its grid is the most complex one. When you put the mouse cursor on top of one of the grid boxes, it will let you see which action is concerned.

Move through stacks

All discard in batch

Batch discard

This will add a button on left side to discard all card of this type. If not set, the discard will need to be done by selecting each card one by one.

Action group : Play cards

This one has mulitple parameters, allowing different play modes :

Play cards params

Playing card mode

Show played cards in chat

By default, only the card name and description is shown in chat.

Basic play message

By setting it to 1, the card image will also be put in the message.

Card shown when played

Multiple cards play range

Only used if the Playing card mode is set to Multiple cards.

When click on the button for playing a card, you will have access to a second panel, allowing you to select additional cards.

Multiple card selection

This parameter allows you to define the min and max amount of cards that have to be added.

You have to use one of the following syntaxes :

Amount of discarded cards

Only used if the Playing card mode is set to Card cost.

Works like the Multiple cards plays range attribute, except that the card will be labelled as discard instead of played.

If the Show played cards in chat has been set to 1, those card image won't be displayed in chat. Only the first selected card image will be displayed.

Action group : Exchanging card with another player

For this action, you need to choose two things :

Exchanging cards

Action group : Looping through card faces

This action can be done as long as the card is visible for you and you own the stack.

You also need to have multiple faces for your card or this action won't be displayed.

Flipping cards

Card back is included

By default, the card back is considered as a valid card face, making all cards having at least two faces. You can choose to remove this face from the available faces by setting this parameter to 0

Action group : Rotating selected card

This one is slightly different from the others : It actually doesn't add any changes to the card. Only the GUI is altered. The card is put upside down.

Mainly useful for cards who can be read from the two ways.

Changing icons and card default background

This functionnality is available for decks and discard piles. Only the GMs are allowed to do it.

It can be accessed via the main display :

Config icons

Why two images?

Be it Actors, Items, or Card stacks, their are represented inside Chat or Right panel via a square. That's not the ideal format for cards. So I'm using two different images:

Additional parameters

Hide/Display card listing inside main UI

Manage card listing

By clicking on the eye icon

It will simply toggle the listing display.

By using double clicks

Using Hand and Revealed cards summary

When you add the module, two panels will be displayed on your canvas :

Shortcut display

Configuring your panels

This configuration is available for each player.

The configure panel can be opened via the module settings panels, or directly via a right click on the left icon of one of the two panels.

Shortcut config

In it, you can:

If you choose to display 0 cards, the panel will instead display the summary of the stack :

Shortcut zero cards

There is also a keyboard binding Shift + H that allows the toggling of those two panels. This binding comes on top of thse configurations.

Moving your panels

The left icon of each shortcut is draggable. Use them to move your shortcuts where you want.

Available actions on panels

Following the actions on the chat message

Each action comes with a message sent to the chat log.

Some messages such has the drawing card part are not displayed the same way depending on if you own the stack or not.

What the other player will see :

Draw seen by other

What the player will see :

Draw seen by player

And when they clicks on the link :

Draw details

Playing with card stack permissions

Once registered, decks and discard piles are set with default permissions to OBSERVER.

You can alter those permissions for each players if you want to change the default behavior :

Playing with permissions

You don't have access to this panel for player hands and revealed cards. What can be done for there are directly managed by code and you should not alter the default permissions put on these.

Changing decks permissions

By default, permissions are set to OBSERVER to everyone.

If you change it to :

Changing discards permissions

By default, permissions are set to OBSERVER to everyone.

If you change it to :

Warning : If you choose to give OWNER rights to players, they will have access to the actions Put it back in the deck and Shuffle all discard inside deck. Those actions usually shuffle the deck after putting the cards inside it. If the player doing it doesn't have the OWNER rights on the deck, the shuffle step will be ignored and the cards will be put on the top of the deck. (card.data.sort remained unchanged)

Additional configuration settings

Configuration settings

The first two ones are for the chatlog when GM is doing actions

Smaller window : Each player can choose if he wants the classic card stack display or if he prefers a smaller one. Smaller one may be mandatory if you use a laptop screen which is most of the time smaller.

Cards in hands and Revealed cards can be toggled to delete players hands or revealed cards. That way, Players will only have one stack to manage. But the related actions won't be available anymore.

Peek on player's hand : Uncheck it if you don't want to be tempted !

For advanced users

There are some more stuff that can be done. Since it can be a little complicated, I've stored those feature description in a separated file : README DEVELOPERS

Here is a summaray of what can be done :

Credits for card images used in the preconfigured decks :

Available Versions

  1. Version 1.14.3

    1 month ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  2. Version 1.14.2

    1 month, 3 weeks ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  3. Version 1.14.1

    1 month, 3 weeks ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  4. Version 1.14.0

    2 months, 3 weeks ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  5. Version 1.13.1

    4 months, 2 weeks ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  6. Version 1.13.0

    4 months, 2 weeks ago
    Foundry Version 11 - 12 (Verified 12.238) Manifest URL Read Notes
  7. Version 1.12.5

    10 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  8. Version 1.12.4

    10 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  9. Version 1.12.3

    1 year, 3 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  10. Version 1.12.2

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  11. Version 1.12.1

    Foundry Version 10 - 10 (Verified 10.284) Manifest URL Read Notes
  12. Version 1.11.0

    Foundry Version 10 - 10 (Verified 10.284) Manifest URL Read Notes
  13. Version 1.10.2

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes