|
Post by Tesagk on Jul 31, 2018 23:19:19 GMT
Trying to find out if there's a resource on the members of preset variables like set and card.
Specifically, I'm trying to figure out how to access the index number of a card in a set, rather than the alpha ordering that is used by default (set.card[1].name will be the top entry if you sort by name)
|
|
|
Post by ronelm2000 on Aug 3, 2018 13:51:57 GMT
|
|
|
Post by Tesagk on Aug 6, 2018 22:00:47 GMT
I've read it several times, it doesn't specify all of the attributes available in a particular preset.
|
|
|
Post by Tesagk on Aug 6, 2018 22:02:57 GMT
In-general though, I think my problem is specific to the fact that the way MTG Set Editor, at least with its MTG Templates, sorts in the Export All function is the actual culprit. I'll just have to manually save.
|
|
|
Post by ronelm2000 on Aug 19, 2018 15:07:49 GMT
Well, afaik, that card arrangement is actually random up until you sort them with the script file. Normally in MTG you can do that just fine, although sometimes you actually need a "custom arrangement" on some of the cards.
That being said, I have no idea if the Export function contains access to said script file. But it does give you access to fields which can be scripted. That's your best bet.
You can introduce a {card.serial2} which will be programmed in script to give you what you want. For example, my actual serial arrangement for a custom CG goes like this, rather than purely by name.
card_serial := { if card.rarity == "PR" then input := set.set_id + "/" + set.subset_id + "-" + "PE" + to_string(pr_card_number(), format: ".2d") + " " + card.rarity else if card.rarity == "(Alternate Art)" and rarity_or_copy() == "PR" then input := set.set_id + "/" + set.subset_id + "-" + "PE" + to_string(alt_pr_card_number(), format: ".2d") + " " + card.rarity else if card.rarity == "TD" then input := set.set_id + "/" + set.subset_id + "-TE" + to_string(td_card_number(), format: ".2d") + " " + card.rarity else if card.rarity == "(Alternate Art)" and rarity_or_copy() == "TD" then input := set.set_id + "/" + set.subset_id + "-TE" + to_string(alt_td_card_number(), format: ".2d") + " " + rarity_or_copy() else input := set.set_id + "/" + set.subset_id + "-E" + to_string(card_number(), format: ".3d") + foil_shortcut() + " " + rarity_or_copy() } which basically let me define own "numbers" to foils and copy another, or have a different numbering altogether if it's "TD" or "PR" rarity.
PS: You can try it, if it does allow access to scripts, then {card_serial(card)}.png should work.... and so should something like {custom_index_of(card)}.png
|
|
|
Post by Tesagk on Aug 19, 2018 15:46:27 GMT
By "you can try it" do you mean putting all of that into the editor box?
|
|