Post by cajun on Apr 5, 2018 9:12:17 GMT
Update!
With the release of Mainframe DFC I've updated the Lackey exporter to fix a bug with how it read Mainframe Walkers and autoscripting for Sacrificers and Double Faced Planeswalkers (and now "Create This, a legendary...")
LackeyCCG Exporter and sample plugin
What's All This Then?
A long overdue update to the Lackey exporter with instructions to create your own plugin for it.
On top of some fixes, token creation, scry, reveal/look/exile scripts, entering the battlefield tapped or with counters, and planeswalker abilities are now automagically scripted within Lackey. Note the tokens and emblems need to be in the same set file for Lackey to make the tokens.
Well What Do I Do With It?
Instructions:
- Download this and unzip it.
- Move magic-lackeyccg.mse-export-template to your MagicSetEditor/data/ folder
- Move sample to LackeyCCG/plugins
- Open the set file to export.
- Watch out for the limitations below, make sure you're not viewing a token, then go to Export Set -> HTML -> Lackey
- Put the set's unique name or set code into set code
- If you are exporting with DFC-Exporter templates, change that option to Back faces
- If you create Clue tokens without using Investigate, set that to yes. [This was a MSEM switch that got carried over]
- If this is a new set or an image update, set export images to yes. For just allcards updates, you can disable it.
- Export that set and save it within LackeyCCG/plugins/sample/sets
- Copy paste the data in the saved .txt into allcards.txt (you can overwrite the sample cards there)
- Rename the SET-files folder to just SET and move it into setimages
- In the SET folder, cut the images at the end, labeled SET1, SET2 etc and paste them into the tokens folder in setimages.
- Rename the plugin/sample folder to the name of your plugin.
- In your folder, open the format file. Rename Format to your format name and TST to your set code. You can add additional sets to this format with <set>SET</set> within the <format> tags
- Open the plugininfo and replace "sample" with the name of your plugin
- And if you'd like to add packs, open the packs file and open packdefinitions1.xml in Notepad. There is a template there for packs with or without mythic rares, all that needs to be changed is the TST to the set code you exported with.
- Open Lackey and click the plugin tab, browse installed plugins and click your plugin to ensure it loads up correctly
- Once you're ready to share, zip the plugin folder and upload it to your site of choice.
- DFC-Exporter - Download Link
- DFC-Exporter and DFC-Sparker-Exporter are a pair of templates that make it easier to export DFC images for Lackey
- The DFC exporters will start on the backface, so export at least the DFCs with the Back face option on
- Then go to the style tab of one of those cards and flip "back face" to no, then export the full set with the Front face option in the exporter
- This will create the images needed automatically and the full allcards data
Script Limitations
Teeny Text
- Autoscript only checks the first four paragraphs per face.
I Never Make Tpyos
- Many of these autoscripts need exact wording to function. Here is the token check, bracketed bits are [optional]
- Subtypes can be any word that starts with a capital letter. Tokens must have at least one subtype to be autoscripted.
- Tokens should be named their subtypes OR the words after "token named " in the ability creating them
- Planeswalker Emblems should be named Emblem, with a typeline of Emblem - [Planeswalker Subtype]
Way Too Many Tokens
- Per line, this can create up to 20 tokens of up to three different types
- "Create ten 1/1 white Soldier creature tokens, ten 2/2 white Knight creature tokens, and ten 3/3 white Angel creature tokens with flying." works but "Create twenty-one 1/1 white Soldier creature tokens." and "Create a 1/1 white Soldier creature token, a 1/1 blue Soldier creature token, a 1/1 black Soldier creature token, and a 1/1 red Soldier creature token." do not.
- These token scripts can be added/adjusted in allcards.txt as such:
INFINITE KNOWLEDGE
- Autoscript can't handle Scry 10+ or reveal/look/exile more than twenty cards.
- These can be adjusted in allcards.txt as such:
Double Check
-Scry X, then reveal/look effects in the same sentence will only scry. This can be fixed in the allcard.txt
- Only the first counter check will be autoscripted. If you /really/ need that +1/+1 counter Vanishing card, you can add them like this
please help everything is on fire
This is very similar to the script I use to export MSEM, so there /shouldn't/ be any other issues, but if you run into something or get stuck, lemme know below.
With the release of Mainframe DFC I've updated the Lackey exporter to fix a bug with how it read Mainframe Walkers and autoscripting for Sacrificers and Double Faced Planeswalkers (and now "Create This, a legendary...")
LackeyCCG Exporter and sample plugin
What's All This Then?
A long overdue update to the Lackey exporter with instructions to create your own plugin for it.
On top of some fixes, token creation, scry, reveal/look/exile scripts, entering the battlefield tapped or with counters, and planeswalker abilities are now automagically scripted within Lackey. Note the tokens and emblems need to be in the same set file for Lackey to make the tokens.
Well What Do I Do With It?
Instructions:
- Download this and unzip it.
- Move magic-lackeyccg.mse-export-template to your MagicSetEditor/data/ folder
- Move sample to LackeyCCG/plugins
- Open the set file to export.
- Watch out for the limitations below, make sure you're not viewing a token, then go to Export Set -> HTML -> Lackey
- Put the set's unique name or set code into set code
- If you are exporting with DFC-Exporter templates, change that option to Back faces
- If you create Clue tokens without using Investigate, set that to yes. [This was a MSEM switch that got carried over]
- If this is a new set or an image update, set export images to yes. For just allcards updates, you can disable it.
- Export that set and save it within LackeyCCG/plugins/sample/sets
- Copy paste the data in the saved .txt into allcards.txt (you can overwrite the sample cards there)
- Rename the SET-files folder to just SET and move it into setimages
- In the SET folder, cut the images at the end, labeled SET1, SET2 etc and paste them into the tokens folder in setimages.
- Rename the plugin/sample folder to the name of your plugin.
- In your folder, open the format file. Rename Format to your format name and TST to your set code. You can add additional sets to this format with <set>SET</set> within the <format> tags
- Open the plugininfo and replace "sample" with the name of your plugin
- And if you'd like to add packs, open the packs file and open packdefinitions1.xml in Notepad. There is a template there for packs with or without mythic rares, all that needs to be changed is the TST to the set code you exported with.
- Open Lackey and click the plugin tab, browse installed plugins and click your plugin to ensure it loads up correctly
- Once you're ready to share, zip the plugin folder and upload it to your site of choice.
- DFC-Exporter - Download Link
- DFC-Exporter and DFC-Sparker-Exporter are a pair of templates that make it easier to export DFC images for Lackey
- The DFC exporters will start on the backface, so export at least the DFCs with the Back face option on
- Then go to the style tab of one of those cards and flip "back face" to no, then export the full set with the Front face option in the exporter
- This will create the images needed automatically and the full allcards data
Script Limitations
Teeny Text
- Autoscript only checks the first four paragraphs per face.
I Never Make Tpyos
- Many of these autoscripts need exact wording to function. Here is the token check, bracketed bits are [optional]
[Create LEGENDNAME, ]number(X, a, an, two-twenty)[ tapped][ and attacking][ snow][ legendary] [p/t] [color1] [and color2] subtype[ subtype2][ subtype3] [enchantment ][artifact ][land ][creature ]token(s)[ with stuff][ named stuff]
- Subtypes can be any word that starts with a capital letter. Tokens must have at least one subtype to be autoscripted.
- Tokens should be named their subtypes OR the words after "token named " in the ability creating them
- Planeswalker Emblems should be named Emblem, with a typeline of Emblem - [Planeswalker Subtype]
Way Too Many Tokens
- Per line, this can create up to 20 tokens of up to three different types
- "Create ten 1/1 white Soldier creature tokens, ten 2/2 white Knight creature tokens, and ten 3/3 white Angel creature tokens with flying." works but "Create twenty-one 1/1 white Soldier creature tokens." and "Create a 1/1 white Soldier creature token, a 1/1 blue Soldier creature token, a 1/1 black Soldier creature token, and a 1/1 red Soldier creature token." do not.
- These token scripts can be added/adjusted in allcards.txt as such:
<s><l>Spawn [type] tokens</l><f>/spawn[x2, x3 etc if multiple] [Token's name, by default "PT Colors Subtypes SetCode"]</f></s>
INFINITE KNOWLEDGE
- Autoscript can't handle Scry 10+ or reveal/look/exile more than twenty cards.
- These can be adjusted in allcards.txt as such:
<s><l>Look at top X</l><f>/vp1ptX</f></s>
<s><l>Reveal the top X</l><f>/vp1atX</f></s>
<s><l>Reveal the top X</l><f>/vp1atX</f></s>
Double Check
-Scry X, then reveal/look effects in the same sentence will only scry. This can be fixed in the allcard.txt
<s><l>Scry X, then reveal Y</l><f>/vp1ptX;/vp1atY</f></s> ##original
<s><l>Scry X</l><f>/vp1ptX</f></s><s><l>Reveal Y</l><f>/vp1atY</f></s> ##fixed version
<s><l>Scry X</l><f>/vp1ptX</f></s><s><l>Reveal Y</l><f>/vp1atY</f></s> ##fixed version
- Only the first counter check will be autoscripted. If you /really/ need that +1/+1 counter Vanishing card, you can add them like this
<s><a>y</a><l>Initialize</l><f>/cc=X</f></s>
##where is red, green, or yellow, and X is your number.
##where is red, green, or yellow, and X is your number.
please help everything is on fire
This is very similar to the script I use to export MSEM, so there /shouldn't/ be any other issues, but if you run into something or get stuck, lemme know below.