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.


Messages - CrazyChucky

Pages: 1 2 [3] 4 5 ... 23
31
Unfortunately Lackey scripts can't actually do the math for you, but they can output fixed messages and roll dice.

For instance, for the example card X, if you give it this script:

Code: [Select]
<s><l>Use Fist</l><f>/say Fist: Damage = 9 x;/rolld6</f></s>
Then the script will be available when you right-click on the card. (Shown here on an existing Magic card just as an example)
Image 1

Clicking on it will print its text to the chat log, then roll the die.
Image 2

(We used to be able to embed images here, but it looks like that's not currently working.)

32
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: February 01, 2021, 01:27:31 pm »
2/1/21

Commander Legends is now (mostly) high-res. (The double-foiled alternate prints, as well as the tokens that only appear in the commander decks, are still low-res.)

I've also added an ActualSet field to the card data. This always matches the card's set code as listed on Scryfall, rather than some older, custom set codes I maintain for Lackey backwards compatibility with saved decks, or the "1" I now prepend for promo prints.

33
Plugins & Plugin Creation Forum / Re: VTES 5TH edition ccg
« on: January 30, 2021, 04:47:20 pm »
Sydnelson hasn't posted here in the forum in a decade, but seems to still be maintaining and updating the plugin, so I'd say it's likely they'll be adding the new cards. You could try joining the VTES Facebook group, if you haven't already. (I'm not a member, so I have no idea how active it is or isn't these days.)

34
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: January 22, 2021, 10:10:56 pm »
1/22/21

Kaldheim is uploaded, as well as what's revealed so far of Kaldheim Commander.

Additionally:
  • Commander Collection: Green is now high-res.
  • Topdeck the Halls, the new holiday card, is added.
  • Secret Lair: Ultimate Edition has the new Pathways.
  • Various Secret Lair cards added and/or updated to high-res, as appropriate

35
Plugins & Plugin Creation Forum / Re: Checksums unveiled?
« on: November 27, 2020, 09:49:44 pm »
I got curious again and revisited this. Even with your trick of subtracting 256, amcsi, I wasn't able to get the correct checksum on all image files. It was bugging me, so eventually I just learned how to call C++ from inside Python. No need to replicate C++'s implementation details if I can use it for real!

Code: [Select]
# in Python
import ctypes
c_checksum = ctypes.CDLL('checksum.so') # would just be 'checksum' on Windows, I think

def get_checksum(filename):
    """Calls the (mostly) original C++ function."""
    # str(filename) is so this function can be called with a Path object too
    string_argument = ctypes.create_string_buffer(str(filename).encode())
    return c_checksum.get_checksum(string_argument)
Code: [Select]
// checksum.cc, which is compiled to make the shared library
#include <iostream>

extern "C" int get_checksum(char filename[])
{
    FILE* fp = fopen(filename, "rb");
    if(fp == NULL) {
        return 0; // If there is no file, return with a sum of 0.
    }
    long current, next = 0;
    char temp_char = 0;
    int sum = 0;
    do
        {
        current = next;
        temp_char = fgetc(fp);
        next = ftell(fp);
        if (temp_char != 10 && temp_char != 13)
            sum += (unsigned int)temp_char;
        sum %= 100000000; // modulo to prevent memory type overflow
        } while (current != next);
    fclose(fp);
    return sum;
}

36
Plugins & Plugin Creation Forum / Re: Commander Legends
« on: November 06, 2020, 03:45:39 pm »
Full set is up. No draftable pack just yet, though?still trying to find more specific information about how the packs are laid out.

37
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: November 06, 2020, 03:44:40 pm »
11/6/20

The full Commander Legends set is up. (The normal set is "cmr", and the borderless planeswalkers and foiled alt-frame cards are under "1cmr".)
I have not yet added the draftable pack, because I haven't yet been able to find detailed enough information about how the various slots are allocated.

Also:
  • Zendikar Rising and Zendikar Rising Commander are now high-res.
  • Added Germ-spawning script for Living Weapons.

11/8/20

Skyclave Relic wasn't making token copies of itself. Fixed.

38
Plugins & Plugin Creation Forum / Re: Commander Legends
« on: November 03, 2020, 10:27:28 pm »
Some of the cards have been spoiled, and most of those are in the plugin already (with set code "cmr"). I imagine the full set will probably be revealed by the end of this week.

39
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: October 29, 2020, 02:56:03 pm »
10/29/20

Added full Zendikar Rising Commander set, new Secret Lair cards, and ongoing spoilers for Commander Legends.
Also added scripts for Monarch, Amass, and Encore.

10/30/20

Aaaaand also removed the Ravnica sets and M20 from Standard. Only a month late. Can you tell I don't really follow Standard?

40
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: October 13, 2020, 02:52:21 pm »
Walking Dead cards? What are you talking about? I'm pretty sure nothing like that exists. ?_?

41
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: September 26, 2020, 02:42:37 pm »
9/26/20

Jumpstart is now high-res.

42
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: September 22, 2020, 11:29:04 am »
9/21/20

Whoops, I had Double Masters using standard drafting packs! Now corrected, so you should get:
  • 1 rare or mythic rare
  • 3 uncommons
  • 8 commons
  • 2 "foil" slots, which can be of any rarity
(The probabilities aren't 100% accurate, but are as good as I can simulate in Lackey.)

Also added the Zendikar Secret Lair Drop.

43
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: September 20, 2020, 08:33:29 pm »
9/20/20

Double Masters is now high-res.

44
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: September 17, 2020, 08:47:26 pm »
Thanks! I think I fixed it, let me know if you still find some missing.

45
Plugins & Plugin Creation Forum / Re: Magic: The Gathering Plugin Updates
« on: September 17, 2020, 04:06:38 pm »
Incidentally, I realized just the other day that for a while, I've been making a formatting error in the version file. It stopped Lackey from correctly doing automatic updates. But now it's fixed!

Pages: 1 2 [3] 4 5 ... 23