orcnog / orcnog-card-viewer

MIT License
4 stars 0 forks source link

The card will not be displayed in foundry with other player #28

Closed ChiaraKira closed 6 months ago

ChiaraKira commented 10 months ago

I'm a player and i dont't know why but i can't share the cards I've draw with other player only the GM. Please help me.

I have this code on the macro:

` let deckName = 'Cards Sharp Deck'; let discardPile = 'Pila di Scarto'; let share = true;

OrcnogFancyCardDealer({ deckName: deckName , discardPileName: discardPile }).draw(share);`

orcnog commented 8 months ago

Hi @ChiaraKira, I'm low on free time lately but I have seen your comment and I will try to replicate this issue.... but just like at an auto mechanic's shop, if I can't reproduce the problem I'm not sure I can fix it. Any other steps to reproduce that you can add will help, thanks!

But just upon looking at your pasted code, I might see a syntax error. Try making the 3rd-to-last line in your snippet deckName: deckName,. I.e. removing the extra space before the comma. Lmk if that fixes the issue.

orcnog commented 6 months ago

I tested with the following macro code (only changing the deckName to the name of a deck in my own game):

let deckName = 'Deck of Many More Things';
let discardPile = 'Pila di Scarto';
let share = true;

OrcnogFancyCardDealer({
deckName: deckName ,
discardPileName: discardPile
}).draw(share);

...and this worked just fine for me. Please try again. Maybe it was inadvertently fixed in one of the 2 updates that have been released since you originally logged this issue. It's working for me! Marking this closed. (feel free to log another issue if it is indeed still broken for you)