Commit c5c89587 authored by artfreakwiu's avatar artfreakwiu

No commit message

No commit message
parent 942bdc40
......@@ -40,6 +40,18 @@ styling field:
choice: normal
choice: silver
choice: gold
styling field:
type: boolean
name: corner stamp
description: Should there be a foil stamp in the lower right corner?
initial: yes
styling field:
type: choice
name: rules alignment
description: Should the rules text be justified? WARNING: Justification is not perfect.
initial: not justified
choice: not justified
choice: justified
styling style:
foil image:
render style: text
......@@ -120,7 +132,7 @@ card style:
left: 40
top : 74
height: 28
width: 280
width: {if is_nmonster() then 275 else 280 }
z index: 2
alignment: middle right
font:
......@@ -142,9 +154,9 @@ card style:
z index: 1
############################# Card type
monster type:
left: 35
left: 39
top : 401
width: 193
width: { card_style.monster_type.content_width + 6 }
height: 14
alignment: middle left
z index: 2
......@@ -160,7 +172,7 @@ card style:
visible: script: if is_nmonster() then false else true
############################# Edition and Card ID
number:
left: 200
left: 203
top : 380
width: 115
height: 15
......@@ -171,7 +183,7 @@ card style:
size: 8
color: rgb(0,0,0)
edition:
left: 44
left: 43
top: 380
width: 115
height: 15
......@@ -182,7 +194,7 @@ card style:
color: rgb(0,0,0)
############################# Text box
rule text:
left: 34
left: 35
top :
script: if is_nmonster() then 397 else 412
width: 289
......@@ -197,7 +209,7 @@ card style:
name: yugioh-text-replacements
alignment: middle center
size: 3.5
alignment: top left
alignment: { if styling.rules_alignment=="justified" then "top left justify" else "top left" }
z index: 3
padding left: 1
padding top: 2
......@@ -210,7 +222,7 @@ card style:
line height line max: 1.1
############################# Attack/Defense
attack:
left: 202
left: 204
top: 475
width: 48
height: 18
......@@ -228,7 +240,7 @@ card style:
visible: script: if is_nmonster() then false else true
defense:
z index: 4
left: 276
left: 278
top: 475
width: 48
height: 18
......@@ -258,13 +270,111 @@ card style:
size: 7
color: rgb(0,0,0)
copyright:
left: 180
left: { if styling.corner_stamp=="no" then 202 else 180 }
top : 495
width: 145
height: 18
z index: 2
z index: 4
alignment: middle right
font:
name: Palatino Linotype
size: 7
color: rgb(0,0,0)
############################################extra card field:
extra card field:
type: choice
name: bar
choice: bar
editable: false
extra card field:
type: choice
name: leftbracket
choice: lbracket
editable: false
extra card field:
type: choice
name: rightbracket
choice: rbracket
editable: false
extra card field:
type: text
name: atkoverlay
default: "ATK/"
editable: false
extra card field:
type: text
name: defoverlay
default: "DEF/"
editable: false
extra card field:
type: choice
name: corner foil
choice: 1st
choice: 2nd
editable: true
extra card style:
bar:
left: 37
top : 474
height: 1
width: 288
z index: 4
render style: image list
choice images:
bar: bar.png
visible: script: if is_nmonster() then false else true
leftbracket:
left: { if is_nmonster() then (309 - card_style.level.content_width) else 35 }
top : { if is_nmonster() then 79 else 400 }
height: { if is_nmonster() then 17 else 14 }
width: { if is_nmonster() then 5 else 4 }
z index: 2
render style: image list
choice images:
lbracket: /yugioh-standard-levels.mse-symbol-font/leftbracket.png
rightbracket:
left: { if is_nmonster() then 315 else (card_style.monster_type.content_width + 40) }
top : { if is_nmonster() then 79 else 400 }
height: { if is_nmonster() then 17 else 14 }
width: { if is_nmonster() then 5 else 4 }
z index: 4
render style: image list
choice images:
rbracket: /yugioh-standard-levels.mse-symbol-font/rightbracket.png
atkoverlay:
left: 170
top: 475
width: 48
height: 18
z index: 1
alignment: right middle
font:
name: MatrixBoldSmallCaps
italic name: Matrix-Bold
size: 12
color: rgb(0,0,0)
visible: script: if is_nmonster() then false else true
defoverlay:
left: 244
top: 475
width: 48
height: 18
z index: 1
alignment: right middle
font:
name: MatrixBoldSmallCaps
italic name: Matrix-Bold
size: 12
color: rgb(0,0,0)
visible: script: if is_nmonster() then false else true
corner foil:
left: 332
top : 492
height: 20
width: 20
z index: 3
render style: image list
choice images:
1st: cornerfirst.png
2nd: cornerunlimited.png
visible: script: if styling.corner_stamp=="no" then false else true
......@@ -69,34 +69,37 @@ init script:
# step 2 : surround by <i> tags
{ "<i-flavor>" + input + "</i-flavor>" };
type_over_list := replace_rule(match:" ?-$", replace:"")
monster_type_filter :=
tag_remove_rule(tag: "<word-list-") +
type_over_list +
{ "<word-list-monster>{input}</word-list-monster>" }
space_to_wltags := replace_rule(match:"( +|<soft> </soft>)",
replace:{"</word-list-{list_type}>{_1}<word-list-{list_type}>"})
card_class_filter :=
tag_remove_rule(tag: "<word-list-") +
type_over_list +
{ "<word-list-card>{input}</word-list-card>" }
# Determine type of card
card_type := {
if card.type2 == "Effect<sym>]</sym>" then "effect monster"
else if card.type2 == "Fusion<sym>]</sym>" then "fusion monster"
else if card.type2 == "Fusion / Effect<sym>]</sym>" then "fusion monster"
else if card.type2 == "Fusion/Effect<sym>]</sym>" then "fusion monster"
else if card.type2 == "Ritual<sym>]</sym>" then "ritual monster"
else if card.type2 == "Ritual / Effect<sym>]</sym>" then "ritual monster"
else if card.type2 == "Ritual/Effect<sym>]</sym>" then "ritual monster"
else if card.type1 == "<sym>[</sym>Legendary Dragon" then "legendary dragon"
else if card.type1 == "<sym>[</sym>Divine-Beast" then "obelisk"
else if card.attribute == "spell" then "spell card"
else if card.level == "<sym>[</sym>Spell Card<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card%<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card!<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card+<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card&<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card$<sym>]</sym>" then "spell card"
else if card.level == "<sym>[</sym>Spell Card#<sym>]</sym>" then "spell card"
else if card.attribute == "trap" then "trap card"
else if card.level == "<sym>[</sym>Trap Card<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card%<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card!<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card+<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card&<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card$<sym>]</sym>" then "trap card"
else if card.level == "<sym>[</sym>Trap Card#<sym>]</sym>" then "trap card"
else "normal monster"
if card.attribute == "spell" then "spell card"
else if contains(card.level, match:"Spell Card") then "spell card"
else if card.attribute == "trap" then "trap card"
else if contains(card.level, match:"Trap Card") then "trap card"
else if card.type1 == "<word-list-monster>Divine-Beast</word-list-monster>" then "obelisk"
else if card.type1 == "<word-list-monster>Legendary Dragon</word-list-monster>" then "legendary dragons"
else if contains(card.type2, match:"Fusion") then "fusion monster"
else if contains(card.type2, match:"Ritual") then "ritual monster"
else if contains(card.type2, match:"Synchro") then "synchro monster"
else if contains(card.type2, match:"Effect") then "effect monster"
else if contains(card.type2, match:"Spirit") then "effect monster"
else if contains(card.type2, match:"Toon") then "effect monster"
else if contains(card.type2, match:"Union") then "effect monster"
else "normal monster"
}
# Default 'attribute' of card
attribute := {
......@@ -107,6 +110,10 @@ init script:
############### Type of card
nm_ext_querry := {
if set.gods_have_effects == "no" then is_normal_monster_extended(value)
else is_normal_monster(value)
}
is_nmonster := {
card.card_type == "spell card" or
card.card_type == "trap card"
......@@ -123,13 +130,16 @@ init script:
card.card_type == "ra" or
card.card_type == "legendary dragons"
}
is_normal_monster := {
is_normal_monster_extended := {
card.card_type == "normal monster" or
card.card_type == "obelisk" or
card.card_type == "slifer" or
card.card_type == "ra" or
card.card_type == "legendary dragons"
}
is_normal_monster := {
card.card_type == "normal monster"
}
is_spell_card := {
card.card_type == "spell card" or
card.attribute == "spell" or
......@@ -197,6 +207,11 @@ set field:
type: text
name: copyright
description: Copyright information. This will not appear on the card.
set field:
type: boolean
name: gods have effects
description: Should god cards have effects?
initial: yes
############################# Default style
default set style:
title:
......@@ -281,14 +296,19 @@ card field:
card field:
type: text
name: type1
script: a_and_d_filter(value)
default: "<sym>[</sym>"
script: monster_type_filter(value)
default: " "
editable: false
card field:
type: text
name: separator
script: if nm_ext_querry(value) then " " else " / "
show statistics: false
editable: false
card field:
type: text
name: type2
script: a_and_d_filter(value)
default: "<sym>]</sym>"
script: card_class_filter(value)
editable: false
card field:
type: text
......@@ -297,10 +317,10 @@ card field:
# Either just monster, monster / type1
combined_editor(
field1: card.type1,
separator: " / ",
separator: card.separator,
field2: card.type2,
soft_before_empty: true,
hide_when_empty: true,
hide_when_empty: true,
type_over1: " /",
type_over2: "/"
)
......@@ -336,23 +356,16 @@ card field:
script: text_filter(value)
editable: false
show statistics: false
card field:
type: text
name: flavor
script: flavor_text_filter(value)
editable: false
show statistics: false
card field:
type: text
name: rule text
multi line: true
save value: false
save value: true
show statistics: false
script:
if is_normal_monster(value) then
combined_editor(field1: card.rules, separator: "<line>\n</>", field2: card.flavor)
else
forward_editor(field: card.rules)
if nm_ext_querry(value) then flavor_text_filter(value)
else text_filter(value)
default: card.rules
############################# Attack/Defense
card field:
type: text
......@@ -386,34 +399,37 @@ card field:
show statistics: false
############################################################## Word lists
# Doesn't do anything yet
#word list:
# name: type
# word: Dragon
# word: Spellcaster
# word: Zombie
# word: Warrior
# word: Beast-Warrior
# word: Beast
# word: Winged Beast
# word: Fiend
# word: Fiary
# word: Insect
# word: Dinosaur
# word: Reptile
# word: Fish
# word: Sea Serpent
# word: Machine
# word: Thunder
# word: Aqua
# word: Pyro
# word: Rock
# word: Plant
# word: Divine-Beast
# word: Toon
# word: Spirit
# word: Union
# word: Effect
# word: Fusion
# word: Ritual
# word: Divine
word list:
name: monster
word: Aqua
word: Beast
word: Beast-Warrior
word: Dinosaur
word: Divine-Beast
word: Dragon
word: Fairy
word: Fiend
word: Fish
word: Insect
word: Legendary Dragon
word: Machine
word: Plant
word: Pyro
word: Reptile
word: Rock
word: Sea Serpent
word: Spellcaster
word: Thunder
word: Warrior
word: Winged Beast
word: Zombie
word list:
name: card
word: Effect
word: Fusion
word: Ritual
word: Spirit
word: Synchro
word: Toon
word: Union
\ No newline at end of file
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