News:

A forum for users of LackeyCCG

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Penagain

#1
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

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?
#2
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!!
#3
Plugins & Plugin Creation Forum / Card Text Viewing
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?
#4
I thought I had Kind Doubles working, but now I think I was hallucinating. So help is still very much appreciated.

OK. I did it in a way that feels silly.

<pack>
<packtitle>Earth Alliance Starter</packtitle>
<packimage>01-Pr_sd-Hm</packimage>
<packkind>Starter</packkind>
<packcommoncrit><field>Set</field><eval>IS</eval><data>Premier</data></packcommoncrit>
<chance>
<kind>
<qty>47</qty>
<crit><field>Fixeds</field><eval>CONTAINS</eval><data>Human</data></crit>
</kind>
<kind>
<qty>1</qty>
<crit><field>Name</field><eval>IS</eval><data>Level the Playing Field [Pr]</data></crit>
</kind>
<kind>
<qty>1</qty>
<crit><field>Name</field><eval>IS</eval><data>Level the Playing Field [Pr]</data></crit>
</kind>
<kind>
<qty>1</qty>
<crit><field>Name</field><eval>IS</eval><data>Level the Playing Field [Pr]</data></crit>
</kind>
</chance>
</pack>


But it was NOT having it when I tried to set the quantity to 3 (because of the PackDoubles setting, I assume).
#5
I do have a question about syntax:

I know I can set a pack to allow doubles. Can I set a Kind within the Pack to allow doubles? I tried KindDoubles and that didn't work :)

The situation is that I have a pack (a deck in this case) for a game where all the cards are fixed and one card appears three times. I know I can tediously construct that by naming each card in the pack definitions... but I have another way that works so smooth except that it won't pull those two extra copies with the pack.

I may not be explaining myself very well.

<pack>
<packtitle>Earth Alliance Starter</packtitle>
<packimage>01-Pr_sd-Hm</packimage>
<packkind>Starter</packkind>
<packcommoncrit><field>Set</field><eval>IS</eval><data>Premier</data></packcommoncrit>
<chance>
<kind>
<qty>48</qty>
<crit><field>Fixeds</field><eval>CONTAINS</eval><data>Human</data></crit>
</kind>
<kind>
<qty>2</qty>
<crit><field>Name</field><eval>IS</eval><data>Level the Playing Field</data></crit>
</kind>
</chance>
</pack>


Thoughts?
#6
Thanks! I will keep poking around with it as time permits.

#7
Well... the fact of the matter is that I probably would have never been able to get a game of Overpower going anyway... so this is probably best left as a Mystery. I was hoping that this would be like my Card Pool problem and there would just be an answer that clearly jumped out to a more knowledgable user. I certainly didn't intend to have it turn into any appreciable amount of work or effort for anyone (particularly you, since you have already done so much to help me out!)

Fingers crossed that the next time I try to resurrect something, it's not broken at all! :D
#8
Is it a PNG/JPG problem--I know Lackey loves its JPGs... can it not handle PNGs? Though I imagine you work with mostly PNGS in your Magic plugin.

(Again, I have only really played with very dead games in pretty old plugins, so my speculation is based on that :))
#9
I was thinking it was related to that cardback file change (I did notice that error and do a little poking on it) but I optimistically thought I could fix it by just putting a JPG version of the cardback into the plugin folder... no such luck :)
#10
Continuing my tour through Lackey plugins for dead games from my adolescence... anyone know why this plugin isn't loading?

http://www.werepenguin.com/overpower/updatelist.txt
#11
Oooh, I see how what you built there works--that's SMART!

I think I have all of the Magi-Nation packs and starter decks sorted out! So much of our conversation has helped me, I would have been completely stuck without you.

I'm going to work on Babylon 5 next, but it does not have any multi-chance packs, so I think I have the necessary skills at this point. But if things were more complex, that last bit of coding you shared would be a life-saver. Thank you again, SO MUCH, for taking the time to pitch in and help me.
#12
Will do. I had a meltdown earlier today, but realized it was because of the need to explicitly permit duplicate copies. So... so far, trial and error (and the excellent source code from your plugin) have been getting me through.

I am working on a sort of complicated multi-chance starter deck with a blend of fixed and random cards from two sets right now... so if that all falls apart, I know where to run for help :)
#13
IT IS WORKING! And you, CrazyChucky... you are MY HERO!

I have a lot to do still, but I copied your Magic plugin and then just made one Magi-Nation pack by modifying your packdefinitions file, and it's working!

More to go... but you've got my feet on the path!
#14
I'm going to do some more exploring and experimenting! Thank you so much for your help... I wouldn't be surprised if I wind up back here with more questions :)
#15
Thanks for investigating this for me!

My question is, how do I make the XML version of the file get read by the plugin?

I know that when there is a Packdefinitions file, the Card Pool tab shows up in Lackey, and when there is not, it does not. (At least, I think I know that :)) But when I create a Packdefinitions.xml file and put it in there... it doesn't trigger the Card Pool tab to show up.

So do I just use the XML programing from the page you linked me to... but in a packdefinitions.txt file?

I freely confess this is all a bit over my head, but I'm stubbornly willing to learn :)