|
Post by Tesagk on Jul 18, 2018 17:03:36 GMT
Specifically, I'm trying to set my file names when I do "Export All" card images. Unfortunately, the little bit of code I found through a Google search ##{position(of:card,in:set)+1} - {card.name}.png doesn't work and is very out-of-date, but I can't seem to find anything current? p.s. : Bonus Question! MSE seems to use a scripting syntax, but I can't seem to find a reference for it. I'm sure I'm just Googling the wrong things... any help for the right direction would be phenomenal Edit 1: Some quick looking with different terms revealed this helpful place which answers my Bonus Question. But I'm still not seeing much on how I would get what I'm looking for. It looks like I'd have to use script to call a function to sort the list? How would I even begin? Edit 2: Currently I have: ##{position(of:card,in:set)+1}-30 - Almos2 - {card.name}.png The only problem is that I can't seem to figure out how to change how the Export sorts. So it doesn't properly do it based on set number.
|
|
impspiritguide
2/2 Zombie
Favorite Color: Brown
Posts: 129
Set Hub: http://magicseteditor.boards.net/thread/256/pokemon-thread
Formerly Known As: Imp Elemental Spirit Guide
|
Post by impspiritguide on Jul 18, 2018 22:04:23 GMT
I can't answer your question but I can help you from "Googling" things (I would suggest finding another search engine as in all honesty Google has sucked at everything but marketing since its inception, I use DuckDuckGo but there are at least half a dozen actual search engines out there, Google is the primary reason that people have even created the term Deep Web as it didn't hardly exist before you had to register your web-site to get hits from Google, but I'll get off my soapbox).
This is the newest forums, MSE recently migrated to here from the sourceforge site due to the site have resiliency issues. There was another forum site before that but it is all but non-existent here.
The previous site can be found here. Amongst other things that site had a Documentation section that you reference above for your export resources, that part is very technical but use-able. If you have time to comb through several of the old forums there is a lot of good information in them (previous questions asked etc), but unfortunately it can be time-consuming now as there is no available search function at the forums.
For dealing with general templating there is also Green Meep's templating tutorial. It is extremely basic (it doesn't cover export templating at all), but it could help with some of your scripting questions. There are Part 1, Part 2, as well as the original and a script & text manipulation tutorial.
Good luck with your question and I hope some of that helps.
|
|
|
Post by Tesagk on Jul 19, 2018 2:08:45 GMT
impsiritguide: Thank you! Had discovered some resources in the intervening time, but I'll take your entire post into consideration. Lots of useful stuff there.
|
|
|
Post by Tesagk on Jul 24, 2018 0:07:32 GMT
Follow-up question. Is there a way to have MTG Set Editor replace spaces in the card name with hyphens?
|
|
|
Post by Tesagk on Jul 27, 2018 14:48:02 GMT
Would this achieve what I want?
script: position(of: card, in: set) + 1 + "/" + length(set) my_replace := replace@(match: "\s", replace: "-") my_replace(card.name)
|
|
|
Post by Tesagk on Jul 31, 2018 20:28:46 GMT
This is closer to what I want, but not quite perfect (doesn't work):
###{position(of:card,in:set,order_by:number)+1}-37-Almos2-{replace(card.name,match:" ", replace:"-")}.png This works:
###{position(of:card,in:set)+1}-37-Almos2-{replace(card.name,match:" ", replace:"-")}.png But I'm trying to adjust the order-by. However, I can't seem to find out how to access the card's number in the set, rather than its alphabetical listing number.
|
|