Initial commit
This commit is contained in:
2
data/magic-text.mse-export-template/desktop.ini
Normal file
2
data/magic-text.mse-export-template/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
LocalizedResourceName=@magic-text.mse-export-template,0
|
||||
51
data/magic-text.mse-export-template/export-template
Normal file
51
data/magic-text.mse-export-template/export-template
Normal file
@@ -0,0 +1,51 @@
|
||||
mse version: 0.3.8
|
||||
short name: Text
|
||||
full name: Raw list data
|
||||
position hint: 002
|
||||
icon: icon.png
|
||||
version: 2009-06-29
|
||||
installer group: magic/Export/text
|
||||
|
||||
depends on: magic.mse-game 2008-08-08
|
||||
|
||||
game: magic
|
||||
create directory: false
|
||||
file type: *.txt|*.txt|*.*|*.*
|
||||
|
||||
option field:
|
||||
type: choice
|
||||
name: output
|
||||
description: What data should be output?
|
||||
choice: card names
|
||||
choice: MSE forum
|
||||
|
||||
option field:
|
||||
type: boolean
|
||||
name: output Tokens
|
||||
description: Should tokens be output
|
||||
|
||||
option field:
|
||||
type: boolean
|
||||
name: output Basic Lands
|
||||
description: Should tokens be output
|
||||
|
||||
script:
|
||||
is_token := {contains(card.shape, match:"token") or contains(card.shape, match:"emblem") or contains(card.shape, match:"rulestip") }
|
||||
is_basic_land := {card.name == "Plains" or card.name == "Island" or card.name == "Swamp" or card.name == "Mountain" or card.name == "Forest" or card.name == "Wastes"}
|
||||
|
||||
included := {
|
||||
(is_token() and options.output_Tokens)
|
||||
or (is_basic_land() and options.output_Basic_Lands)
|
||||
or (not(is_token()) and not(is_basic_land()))
|
||||
}
|
||||
|
||||
MSEcard := {"[b]"+card.name+"[/b] "+to_text(card.casting_cost)+"\n"
|
||||
+to_text(card.type)+" ("+substring(to_text(card.rarity),end:1)+")"+"\n"
|
||||
+to_text(card.rule_text)+"\n"
|
||||
+to_text(if length(to_text(card.flavor_text))>0 then "[i]"+to_text(card.flavor_text)+"[/i]\n" else "")
|
||||
+to_text(card.pt)+"\n\n"
|
||||
}
|
||||
write_card := {if options.output=="card names" then to_text(card.name+"\n") else MSEcard()}
|
||||
write_card_if_desired := {if included() then write_card() else ""}
|
||||
write_cards := to_text(for each card in sort_list(cards, order_by: {input.card_number}) do write_card_if_desired())
|
||||
to_string(write_cards)
|
||||
BIN
data/magic-text.mse-export-template/icon.png
Normal file
BIN
data/magic-text.mse-export-template/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user