LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: Penagain on June 13, 2020, 02:14:33 PM

Title: Card Text Viewing
Post by: Penagain on June 13, 2020, 02:14:33 PM
OK, my next challenge...

I'm working with a game that has a fair number of cards with errata. The card info in Lackey accounts for that, but the card images (obviously) do not.

I know there is a setting in Lackey that will cause all cards text to be displayed in the card viewer, which is handy but covers up the bulk of the art on the cards.

Is there a way to code cards in the setlist so that the ones with errata display the card text in the viewer, but the ones without do not? That way we aren't covering cool card art with boring text boxes when we don't have to, only when we need to?
Title: Re: Card Text Viewing
Post by: CrazyChucky on June 13, 2020, 06:15:29 PM
I don't know of a setting to do that selectively and automatically. Have you tried holding the `/~ key (in in the top left, just below escape) while mousing over cards? That should display the full card data next to the cursor.
Title: Re: Card Text Viewing
Post by: Penagain on June 13, 2020, 08:06:53 PM
That works just fine, for sure.

I guess what I really need is a way to tag the card so that I even know when to check the text and when not to bother.

I'll keep thinking too. Thanks for letting me know there wasn't something basic I was just too dense to see!!
Title: Re: Card Text Viewing
Post by: CrazyChucky on June 14, 2020, 02:36:09 AM
Hmm... perhaps an initialization script on relevant cards?

/cn"I have errata"

will make a small blue N on the card (on the table, not in the viewer pane), and hovering over it will show the note. With some searching and replacing, you could even make the note be the full errata text if you want.

Caveat: Lackey apparently doesn't stop reading in the note if there's another script directly afterward. So this works:

/ch;/cn"I have errata"

But this doesn't:

/cn"I have errata";/ch

This only applies if they're separated merely by semicolons. Separately tagged scripts are fine:

<s><a>y</a><l>Initialize</l><f>/ch;/cn"I have errata"</f></s> <s><l>Reveal top card</l><f>/vp1at1</f>

Scripting guide: https://www.lackeyccg.com/forum/index.php?topic=2134.0 (https://www.lackeyccg.com/forum/index.php?topic=2134.0)
Older scripting guide, which is outdated in general, but is still a useful reference for its commands, which work when preceded by /c: https://www.lackeyccg.com/forum/index.php?topic=1801.0 (https://www.lackeyccg.com/forum/index.php?topic=1801.0)
Title: Re: Card Text Viewing
Post by: Penagain on June 15, 2020, 09:48:35 AM
Quote from: CrazyChucky on June 14, 2020, 02:36:09 AM

Older scripting guide, which is outdated in general, but is still a useful reference for its commands, which work when preceded by /c: https://www.lackeyccg.com/forum/index.php?topic=1801.0 (https://www.lackeyccg.com/forum/index.php?topic=1801.0)

Ahh--I had ben looking at that. The /c was something I hadn't been able to puzzle out yet! THANK YOU!

To your knowledge, all of the scripts only activate upon playing to the table, right? Nothing will actually pop up on those cards in the Hand window?
Title: Re: Card Text Viewing
Post by: CrazyChucky on June 15, 2020, 02:24:49 PM
Ah, yeah there is that. Scripts only work on the table, for better or for worse.
Title: Re: Card Text Viewing
Post by: danivillso on October 15, 2020, 03:32:14 PM
Helpful topic, thank you guys  ;)