Commit 1dd7f510 authored by pichoro's avatar pichoro

Magic Archenemy Scheme cards template, with forum spoiler exporter.

Yay 1500!
parent f38b9c25
mse version: 0.3.8
short name: Forum
full name: Spoiler Exporter
position hint: 002
icon: icon.png
version: 2010-05-17
installer group: Magic Archenemy/Export/forum
depends on:
package: archenemy.mse-game
version: 2010-05-17
game: archenemy
file type: *.txt|*.txt|*.*|*.*
# By Pichoro
# Based on code by Idle Muse, Innuendo and Seeonee
option field:
type: choice
name: forum
choice: mse
choice: mtgsalvation
description: What forum should the spoiler be formatted for?
option field:
type: boolean
name: text costs
initial: yes
description: Should mana costs be plain text? Symbols usually can't be copied and pasted.
option field:
type: text
name: creator
description: The creator of the set.
option field:
type: boolean
name: include notes
description: Should card notes be included?
initial: no
option field:
type: boolean
name: color rarities
description: Should rarities be colored?
initial: yes
script:
# Colored rarity markers.
rarity_color := {
if card.rarity == "basic land" then " (C)"
else if card.rarity == "common" then " (C)"
else if card.rarity == "uncommon" then " [color=silver](U)[/color]"
else if card.rarity == "rare" then " [color=gold](R)[/color]"
else if card.rarity == "mythic rare" then " [color=orange](M)[/color]"
else if card.rarity == "special" then " [color=purple](S)[/color]"
else " (C)"
}
# Non colored rarity markers.
rarity_uncolor := {
if card.rarity == "basic land" then " (C)"
else if card.rarity == "common" then " (C)"
else if card.rarity == "uncommon" then " (U)"
else if card.rarity == "rare" then " (R)"
else if card.rarity == "mythic rare" then " (M)"
else if card.rarity == "special" then " (S)"
else " (C)"
}
# Formats rules text w/ only italic tags.
forum_rules_filter_plain := replace@(match:"[(]", replace:"[i](")+
replace@(match:"[)]", replace: ")[/i]")
# Formats rules text w/ mana symbols. MSE and mtgsally use same bbcode tags for mana.
forum_rules_filter_mtgsally_mse :=
# Italics around parenthesis.
replace@(match:"[(]", replace:"[i](")+
replace@(match:"[)]", replace: ")[/i]")+
# 2/C's don't appear in regular english, format them all.
replace@(match:"2/W", replace:":sym2w:")+
replace@(match:"2/U", replace:":sym2u:")+
replace@(match:"2/B", replace:":sym2b:")+
replace@(match:"2/R", replace:":sym2r:")+
replace@(match:"2/G", replace:":sym2g:")+
# C/D's don't appear in regular english, format them all.
replace@(match:"W/U", replace:":symwu:")+
replace@(match:"W/B", replace:":symwb:")+
replace@(match:"U/B", replace:":symub:")+
replace@(match:"U/R", replace:":symur:")+
replace@(match:"B/R", replace:":symbr:")+
replace@(match:"B/G", replace:":symbg:")+
replace@(match:"R/G", replace:":symrg:")+
replace@(match:"R/W", replace:":symrw:")+
replace@(match:"G/W", replace:":symgw:")+
replace@(match:"G/U", replace:":symgu:")+
# Various positions for taps, untaps and chaos symbols.
replace@(match:" T ", replace:" :symtap: ")+
replace@(match:" Q ", replace:" :symq: ")+
replace@(match:" C ", replace:" :symch: ")+
replace@(match:"T,", replace:":symtap:,")+
replace@(match:"Q,", replace:":symq:,")+
replace@(match:"C,", replace:":symch:,")+
replace@(match:"T:", replace:":symtap::")+
replace@(match:"Q:", replace:":symq::")+
replace@(match:"C:", replace:":symch::")+
# Mana right before a space.
replace@(match:"G ", replace:":symg: ")+
replace@(match:"R ", replace:":symr: ")+
replace@(match:"B ", replace:":symb: ")+
replace@(match:"U ", replace:":symu: ")+
replace@(match:"W ", replace:":symw: ")+
replace@(match:"S ", replace:":snow: ")+
# Mana right before a comma.
replace@(match:"G,", replace:":symg:,")+
replace@(match:"R,", replace:":symr:,")+
replace@(match:"B,", replace:":symb:,")+
replace@(match:"U,", replace:":symu:,")+
replace@(match:"W,", replace:":symw:,")+
replace@(match:"S,", replace:":snow:,")+
# Mana right before a colon.
replace@(match:"G:", replace:":symg::")+
replace@(match:"R:", replace:":symr::")+
replace@(match:"B:", replace:":symb::")+
replace@(match:"U:", replace:":symu::")+
replace@(match:"W:", replace:":symw::")+
# Drag rules text to search for more mana characters. Reverse color wheel order works better. Repeat several times.
replace@(match:"G:", replace:":symg::")+
replace@(match:"R:", replace:":symr::")+
replace@(match:"B:", replace:":symb::")+
replace@(match:"U:", replace:":symu::")+
replace@(match:"W:", replace:":symw::")+
replace@(match:"G:", replace:":symg::")+
replace@(match:"R:", replace:":symr::")+
replace@(match:"B:", replace:":symb::")+
replace@(match:"U:", replace:":symu::")+
replace@(match:"W:", replace:":symw::")+
replace@(match:"G:", replace:":symg::")+
replace@(match:"R:", replace:":symr::")+
replace@(match:"B:", replace:":symb::")+
replace@(match:"U:", replace:":symu::")+
replace@(match:"W:", replace:":symw::")+
# Symbolize snow.
replace@(match:"S:", replace:":snow::")+
replace@(match:"S:", replace:":snow::")+
replace@(match:"S:", replace:":snow::")+
# Symbolize numbers from 20-0 when before a comma.
replace@(match:"20,", replace:":20mana:,")+
replace@(match:"19,", replace:":19mana:,")+
replace@(match:"18,", replace:":18mana:,")+
replace@(match:"17,", replace:":17mana:,")+
replace@(match:"16,", replace:":16mana:,")+
replace@(match:"15,", replace:":15mana:,")+
replace@(match:"14,", replace:":14mana:,")+
replace@(match:"13,", replace:":13mana:,")+
replace@(match:"12,", replace:":12mana:,")+
replace@(match:"11,", replace:":11mana:,")+
replace@(match:"10,", replace:":10mana:,")+
replace@(match:"9,", replace:":9mana:,")+
replace@(match:"8,", replace:":8mana:,")+
replace@(match:"7,", replace:":7mana:,")+
replace@(match:"6,", replace:":6mana:,")+
replace@(match:"5,", replace:":5mana:,")+
replace@(match:"4,", replace:":4mana:,")+
replace@(match:"3,", replace:":3mana:,")+
replace@(match:"2,", replace:":2mana:,")+
replace@(match:"1,", replace:":1mana:,")+
replace@(match:"0,", replace:":0mana:,")+
# Symbolize numbers from 20-0 when before another symbol or a colon.
replace@(match:"20:", replace:":20mana::")+
replace@(match:"19:", replace:":19mana::")+
replace@(match:"18:", replace:":18mana::")+
replace@(match:"17:", replace:":17mana::")+
replace@(match:"16:", replace:":16mana::")+
replace@(match:"15:", replace:":15mana::")+
replace@(match:"14:", replace:":14mana::")+
replace@(match:"13:", replace:":13mana::")+
replace@(match:"12:", replace:":12mana::")+
replace@(match:"11:", replace:":11mana::")+
replace@(match:"10:", replace:":10mana::")+
replace@(match:"9:", replace:":9mana::")+
replace@(match:"8:", replace:":8mana::")+
replace@(match:"7:", replace:":7mana::")+
replace@(match:"6:", replace:":6mana::")+
replace@(match:"5:", replace:":5mana::")+
replace@(match:"4:", replace:":4mana::")+
replace@(match:"3:", replace:":3mana::")+
replace@(match:"2:", replace:":2mana::")+
replace@(match:"1:", replace:":1mana::")+
replace@(match:"0:", replace:":0mana::")+
# Symbolize X and Y when before a comma.
replace@(match:"Y,", replace:":symy:,")+
replace@(match:"X,", replace:":symx:,")+
# Symbolize X and Y when before another symbol or a colon.
replace@(match:"Y:", replace:":symy::")+
replace@(match:"X:", replace:":symx::")
# Count the number of paragraphs to detect number of walker abilities.
write_card := {
# The Name
"\n[b]"+card.name+"[/b]"
# The Type and Rarity
+"\n"+card.type+(if options.color_rarities then rarity_color() else rarity_uncolor())
# The Rules Text
+(if card.rule_text != "" then "\n")
+(if not options.text_costs then forum_rules_filter_mtgsally_mse(remove_tags(card.rule_text)))
+(if options.text_costs then forum_rules_filter_plain(card.rule_text))
# The Flavor Text
+(if card.flavor_text != "<i-flavor></i-flavor>" then "\n[i]")
+card.flavor_text
+(if card.flavor_text != "<i-flavor></i-flavor>" then "[/i]")
# The Notes
+(if options.include_notes and card.notes !="" then "\n[spoiler]Card Notes: ")
+(if options.include_notes and card.notes !="" then card.notes)
+(if options.include_notes and card.notes !="" then "[/spoiler]")
+"\n"
}
write_cards := to_text(for each card in sort_list(cards, order_by: {input.card_number}) do write_card())
to_string("Full Spoiler List for "+set.title+"\nSet by "+options.creator+"\n"+set.description+"\n"+write_cards)
mse version: 0.3.8
game: archenemy
short name: Standard
installer group: Magic Archenemy/normal style
icon: card-sample.png
position hint: 01
version: 2010-05-20
depends on:
package: archenemy.mse-game
version: 2010-05-17
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-future-common.mse-include
version: 2007-09-23
card width: 435
card height: 621
card dpi: 131.1179678
# By Pichoro
# Images by Art_Freak
############################################################## Extra scripts
init script:
# Use the normal tap symbol
mana_t := {
if styling.tap_symbol == "old" then "old"
else if styling.tap_symbol == "diagonal T" then "older"
else "new"
}
# Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols }
############################################################## Set info fields
set info style:
symbol:
variation:
name: invertedcommon
border radius: 0.10
fill type: solid
fill color: rgb(255,255,255)
border color: rgb(0,0,0)
############################################################## Extra style options
styling field:
type: boolean
name: use guild mana symbols
description: Use the Ravnica guild symbols instead of the official half/half circles for hybrid mana.
initial: no
styling field:
type: package choice
name: text box mana symbols
match: magic-mana-*.mse-symbol-font
initial: magic-mana-small.mse-symbol-font
styling field:
type: choice
name: tap symbol
description: What tap and untap symbols should be used on cards?
initial: modern
choice: modern
choice: old
choice: diagonal T
styling field:
type: boolean
name: inverted common symbol
description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: no
styling field:
type: choice
name: artist font color
description: Should the illustrator, copyright, and illustrator paintbrush be white or black?
choice: white
choice: black
styling field:
type: package choice
name: overlay
description: Should there be an overlay applied, such as foil?
match: magic-overlay-*.mse-include
required: false
styling style:
use guild mana symbols:
choice images:
yes: /magic-mana-small.mse-symbol-font/mana_guild_rg.png
no: /magic-mana-small.mse-symbol-font/mana_rg.png
tap symbol:
render style: both
choice images:
modern: /magic-mana-small.mse-symbol-font/mana_t.png
old: /magic-mana-small.mse-symbol-font/mana_t_old.png
diagonal T: /magic-mana-small.mse-symbol-font/mana_t_older.png
############################################################## Card fields
card style:
############################# Background stuff
border color:
left: 0
top: 0
width: 435
height: 621
radius: 16
left width: 16
right width: 15
top width: 13
bottom width: 15
z index: 4
############################# Name line
name:
left: 63
top: 35
width: 306
height: 27
alignment: bottom center shrink-overflow
padding bottom: 0
z index: 2
font:
name: Matrix
size: 16
weight: bold
color: black
############################# Image
image:
left: 26
top: 25
width: 383
height: 571
z index: 1
mask: image_mask.png
############################# Card type
type:
left: 65
top: 406
width: { 312 - max(21,card_style.rarity.content_width) }
height: 21
alignment: middle left shrink-overflow
z index: 2
font:
name: Matrix
size: 14
color: black
rarity:
right: 370
top: 407
width: 37
height: 19
z index: 2
render style: image
alignment: middle right
choice images:
# Images based on the set symbol
common:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
mythic rare: script: symbol_variation(symbol: set.symbol, variation: "mythic rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special")
############################# Text box
text:
left: 64
top: 435
width: 309
height: 122
font:
name: MPlantin
italic name: MPlantin-Italic
size: 14
scale down to: 7
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: 14
alignment: middle left
z index: 2
padding left: 5
padding top: 2
padding right: 5
padding bottom: 2
line height hard: 1.2
line height line: 1.5
############################# Card sorting / numbering
############################# Copyright stuff
illustrator:
left: 99
top: 570
width: 267
height: 14
alignment: center
z index: 2
font:
name: Matrix
size: 11
color: {styling.artist_font_color}
copyright line:
left: 67
top: 587
width: 296
height: 14
alignment: center
z index: 2
font:
name: MPlantin
size: 6
color: {styling.artist_font_color}
############################################################## Extra card fields
extra card field:
type: choice
name: frame
choice: frame
save value: false
editable: false
extra card field:
type: choice
name: foil layer
choice: foil
save value: false
editable: false
extra card field:
type: choice
name: paintbrush
script: styling.artist_font_color
editable: false
save value: false
extra card style:
paintbrush:
right: { 232 + ( card_style.illustrator.content_width * -0.5 ) }
top: 571
width: 35
height: 14
z index: 6
render style: image
choice images:
black: /magic-future-common.mse-include/paintbrush_black.png
white: /magic-future-common.mse-include/paintbrush_white.png
frame:
left: 0
top: 0
width: 435
height: 621
z index: 0
render style: image
image: card.png
foil layer:
left: 0
top: 0
width: 435
height: 621
z index: 3
render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment