Author Topic: Card Text Viewing  (Read 150 times)

Penagain

  • Newbie
  • *
  • Posts: 16
    • View Profile
Card Text Viewing
« 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?

CrazyChucky

  • Sr. Member
  • ****
  • Posts: 287
  • MTG Plugin Maintainer
    • View Profile
    • MTG Plugin Changelog
Re: Card Text Viewing
« Reply #1 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.

Penagain

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Card Text Viewing
« Reply #2 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!!

CrazyChucky

  • Sr. Member
  • ****
  • Posts: 287
  • MTG Plugin Maintainer
    • View Profile
    • MTG Plugin Changelog
Re: Card Text Viewing
« Reply #3 on: June 14, 2020, 02:36:09 AM »
Hmm... perhaps an initialization script on relevant cards?

Code: [Select]
/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:

Code: [Select]
/ch;/cn"I have errata"
But this doesn't:

Code: [Select]
/cn"I have errata";/ch
This only applies if they're separated merely by semicolons. Separately tagged scripts are fine:

Code: [Select]
<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
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
« Last Edit: June 14, 2020, 02:39:35 AM by CrazyChucky »

Penagain

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Card Text Viewing
« Reply #4 on: June 15, 2020, 09:48:35 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

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?

CrazyChucky

  • Sr. Member
  • ****
  • Posts: 287
  • MTG Plugin Maintainer
    • View Profile
    • MTG Plugin Changelog
Re: Card Text Viewing
« Reply #5 on: June 15, 2020, 02:24:49 PM »
Ah, yeah there is that. Scripts only work on the table, for better or for worse.