IMPORTANT
To use this,
all the game's members will need to have the script installed.
Maybe later, someone will add this functionality to the main GP site.
Using the script
1. Defining the decks
In GP the card decks can be defined in the game options using image URLs or text.
2. Players - Drawing from a new deck
The syntax is [draw="deck name" deckState]#card to draw[/draw].
Don't worry about the deckState (which card have already been drawn) for now.
If no deck name is used, then the first one in the game options will be used.
e.g. This draws 3 cards from the game's first deck (maybe it has only one).
After posting, the cards are drawn.
The bottom right has the new state of the deck (which you'll need for drawing without replacement).
3. Drawing more from a deck
Either typing or clicking the state add a subsequent draw.
The state is added to the draw BBCode, and the user just has to say how many cards they're selecting.
4. Display
The display depends on whether a card is text or an image URL.
A couple of decks[ +- ] Advanced rules definition JSON examples
"decks":
{
"Major Arcana":[
"https://github.com/Searge/tarot/raw/master/img/big/major_00_Fool.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_01_Magician.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_02_High_Priestess.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_03_Empress.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_05_Hierophant.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_06_Lovers.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_07_Chariot.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_08_Strength.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_09_Hermit.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_10_Wheel_of_Fortune.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_11_Justice.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_12_Hanged_Man.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_14_Temperance.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_15_Devil.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_16_Tower.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_17_Star.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_18_Moon.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_19_Sun.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_20_Judgement.jpg",
"https://github.com/Searge/tarot/raw/master/img/big/major_21_World.jpg"
],
"Deck of many things":
[
"Balance",
"Comet",
"Don jon",
"Euryale",
"The Fates",
"Flames",
"Fool",
"Gem",
"Idiot",
"Jester",
"Key",
"Knight",
"Moon",
"Rogue",
"Ruin",
"Skull",
"Star",
"Sun",
"Talons",
"Throne",
"Vizier",
"The Void"
]
}
๐ Install script
Last edited December 14, 2022 7:41 pm