mse version: 2.0.0 game: magic full name: L5R Style short name: L5R installer group: magic/L5R style icon: icon.png position hint: 830 version: 2014-02-22 depends on: package: magic.mse-game version: 2008-06-02 depends on: package: magic-mana-small.mse-symbol-font version: 2007-09-23 depends on: package: magic-future-common.mse-include version: 2008-05-21 card width: 324 card height: 454 card dpi: 150 #By: Pichoro ############################################################ Style Scripts init script: # Which artifact template should be used? Which multicolor template should be used? alternate_template := { if input == "a" or input == "m" then "c" else input } template := { alternate_template() + "{type}.jpg" } land_template := { alternate_template() + "{type}.jpg" } # Use land templates for previews because they show more contrast hybrid_previews := "hybrid" # 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 } mana_to_color := { count := number_of_items(in: colors) if hybrid == "" then # not a hybrid, not artifact if count == 0 then "colorless" else if count == 1 then color_names_1() else if count == 2 then color_names_2() + ", multicolor" else if count == 3 then color_names_3() + ", multicolor" else if count == 4 then color_names_4() + ", multicolor" else if count == 5 then color_names_5() + ", multicolor" else "colorless" else # hybrid, not artifact if count == 0 then "colorless" else if count == 1 then color_names_1() else if count == 2 then color_names_2() + ", hybrid" else if count == 3 then color_names_3() + ", hybrid" else if count == 4 then color_names_4() + ", hybrid" else if count == 5 then color_names_5() + ", hybrid" else "colorless" } typesymbol_for := to_text + replace@(match: "(Legendary|Basic|Snow|World| )", replace: "") + { if input == "Creature" then "creature" else if input == "Sorcery" then "sorcery" else if input == "Instant" then "instant" else if input == "Artifact" then "artifact" else if input == "Enchantment" then "enchantment" else if input == "Land" then "land" else if input == "Planeswalker" then "planeswalker" else if input == "Structure" then "structure" else "multitype" } copyright_filter := replace@(match:"/", replace: " ") ############################################################## Set info fields ############################################################## 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: 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: package choice name: text box mana symbols match: magic-mana-*.mse-symbol-font initial: magic-mana-small.mse-symbol-font 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: card color: left: 0 top: 0 width: 324 height: 454 z index: -1 render style: image popup style: in place image: { card_background() } name: left: 64 top: 12 width: 195 height: 42 z index: 0 alignment: center middle shrink-overflow font: name: L5RTitles color: rgb(0,0,0) size: 18 weight: bold casting cost: left: 4 top : 60 width: 27 height: 205 direction: vertical alignment: top center symbol font: name: magic-mana-small size: 18 scale down to: 18 alignment: bottom right always symbol: true z index: 2 padding top: 0 rarity: left: script: if card_count() > 99 then 278 else if card_count() > 9 then 282 else 286 top: 441 width: 7 height: 7 z index: 2 render style: image popup style: in place choice images: basic land: common.png common: common.png uncommon: uncommon.png rare: rare.png mythic rare: set.png special: promo.png image: left: 16 top: 49 width: 292 height: 227 mask: imagemask.png type: left: 36 top: 287 width: 253 height: 30 z index: 1 alignment: middle center shrink-overflow font: name: L5RTitles color: rgb(0,0,0) size: 14 padding left: 6 padding top: 2 padding right: 4 padding bottom: 2 line height hard: 1.3 line height line: 1.1 text: left: 36 top: 320 width: 253 height: 110 z index: 0 alignment: center font: name: Concorde Nova color: rgb(0,0,0) size: 9 scale down to: 6 symbol font: name: { styling.text_box_mana_symbols } size: 9 padding left: 6 padding top: 2 padding right: 4 padding bottom: 2 line height hard: 1.2 line height line: 1.5 line height soft: 0.9 line height hard max: 1.3 line height line max: 1.6 type symbol: left: 22 top: 12 width: 29 height: 40 z index: 0 alignment: middle center render style: image popup style: in place choice images: artifact: /magic-future-common.mse-include/artifact_white.png creature: /magic-future-common.mse-include/creature_white.png enchantment: /magic-future-common.mse-include/enchantment_white.png instant: /magic-future-common.mse-include/instant_white.png land: /magic-future-common.mse-include/land_white.png multitype: /magic-future-common.mse-include/multitype_white.png sorcery: /magic-future-common.mse-include/sorcery_white.png structure: structure_white.png planeswalker: /magic-future-common.mse-include/planeswalker_white.png power: left: 105 top: 257 width: 25 height: 35 z index: 1 alignment: center font: name: L5RTitles color: rgb(0,0,0) size: 20 weight: bold scale down to: 8 toughness: left: 194 top: 257 width: 25 height: 35 z index: 1 alignment: center font: name: L5RTitles color: rgb(0,0,0) size: 20 weight: bold scale down to: 8 ################################################################## Style Specific Card Fields extra card field: type: text name: setartist show statistics: false script: combined_editor(field1: set.title separator: " Illus. ", field2: card.illustrator) description: The artist for the card save value: false extra card field: type: text name: copyrightnumber show statistics: false script: copyright_filter(combined_editor(field1: card.copyright, separator: " ", field2: card.card_number)) description: The copyright line and number for the card save value: false extra card field: type: text name: player credit save value: true description: A field for crediting the card creator or the inspiration for the card extra card field: type: text name: cmc save value: false editable: false description: The converted mana cost of the card script: cmc(card.casting_cost) extra card field: type: choice name: set symbol script: "sym" save value: false editable: false extra card field: type: choice name: foil layer choice: foil save value: false editable: false extra card style: setartist: left: 24 top: 440 width: 250 height: 10 z index: 1 alignment: left font: name: Concorde Nova SC color: rgb(255,255,255) size: 6.5 scale down to: 2 copyrightnumber: right: 298 top: 440 width: 150 height: 10 z index: 1 alignment: right font: name: Concorde Nova color: rgb(255,255,255) size: 6.5 scale down to: 2 player credit: left: 312 top: 400 height: 10 width: 344 z index: 2 alignment: center angle: 90 font: name: Concorde Nova SC color: rgb(255,255,255) size: 6.5 scale down to: 2 cmc: left: 270 top: 12 width: 35 height: 40 z index: 0 alignment: middle center font: name: L5RTitles color: rgb(255,255,255) size: 24 weight: bold scale down to: 8 set symbol: left: 149 top: 255 width: 25 height: 35 z index: 1 render style: image alignment: middle center choice images: # Images based on the set symbol sym: script: symbol_variation(symbol: set.symbol, variation: "common") foil layer: left: 0 top : 0 width: 324 height: 454 z index: 5 render style: image image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}