Post by theoneveyronian on Jul 17, 2019 14:01:25 GMT
Hello all, I'm new to these forums but I've used MSE for the past 2 years. Recently I decided to try and code my own custom game template into the program, and for the most part it works as intended. But I'm having a few issues that's stopping certain parts of my template from working as I want it to and I have no idea what parts of the code are wrong or what I need to add or take away to fix it, so if anyone can help me by suggesting changes to my code to fix these problems before I progress with coding my other styles in, it'd be much appreciated!
This is the code I have so far:
This code generates the following errors in MSE:
This is the code I have so far:
<div class="spoiler">{game}
mse version: 2.0.0
full name: CarBorgs, Realms of Carerth TCG
short name: CarBorgs
installer group: carborgs/game files
icon: card-back.png
position hint: 20
############################################################## Functions & filters
init script:
# Index for sorting, CarBorgs (by Team order), Attacks, Battlegear, Locations and Spells (by Team order).
sort_index := {
if card.type=="Enzorian CarBorg" then "1"
else if card.type=="Rebel Rogue CarBorg" then "2"
else if card.type=="Bugarian CarBorg" then "3"
else if card.type=="Hybrosian CarBorg" then "4"
else if card.type=="Hunter-Predator CarBorg" then "5"
else if card.type=="Rockithian CarBorg" then "6"
else if card.type=="Novasnake CarBorg" then "7"
else if card.type=="Galibien CarBorg" then "8"
else if card.type=="Multiteam CarBorg" then "9"
else if card.type=="Teamless CarBorg" then "10"
else if card.type=="Attack" then "11"
else if card.type=="BattleGear" then "12"
else if card.type=="Generic Spell" then "13"
else if card.type=="Enzorian Spell" then "14"
else if card.type=="Rebel Rogue Spell" then "15"
else if card.type=="Bugarian Spell" then "16"
else if card.type=="Hybrosian Spell" then "17"
else if card.type=="Hunter-Predator Spell" then "18"
else if card.type=="Rockithian Spell" then "19"
else if card.type=="Novasnake Spell" then "20"
else if card.type=="Galibien Spell" then "21"
else if card.type=="Location" then "22"
};
include file: keywords
############################################################## Text Filters
# add symbols to text
symbol_filter :=
# step 5a : add arrow/diamond/dot symbols
replace_rule(
match: "->|>>>|@|<>",
replace: "<sym-auto>&</sym-auto>" )+
# step 5b : longdash for keywords
replace_rule(
match: "--",
replace: "—")+
# step 5c : dot separator
replace_rule(
match: "`|::",
replace: "•")+
# step 5d : trademark symbol
replace_rule(
match: " TM ",
replace: "™")+
# step 5e : copyright symbol
replace_rule(
match: "CR",
replace: "©")
# the rule text filter
# - adds -> symbols
# - adds @ symbols
# - adds :: symbols
# - makes text in parentheses italic
text_filter :=
# step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") +
tag_remove_rule(tag: "<b-auto>") +
# step 2 : reminder text for keywords
expand_keywords_rule(
default_expand: { contains(match:mode, set.automatic_reminder_text) },
combine: { "<b-auto>{keyword}</b-auto><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
) +
# step 3 : expand shortcut words ~ and CARDNAME
replace_rule(
match: "~|~THIS~|CARDNAME",
in_context: "(^|[[:space:]])<match>",
replace: "<atom-cardname>&</atom-cardname>"
) +
# step 4 : fill in atom fields
tag_contents_rule(
tag: "<atom-cardname>",
contents: { if card.name=="" then "CARDNAME" else card.name }
) +
# step 5 : symbols
symbol_filter +
# step 6 : italic reminder text
replace_rule(
match: "[(][^)\n]*[)]?",
in_context: "(^|[[:space:]])<match>|<atom-keyword><match>",
replace: "<i-auto>&</i-auto>")
# the flavor text filter
# - makes all text italic
flavor_text_filter :=
# step 1 : remove italic tags
remove_tag@(tag: "<i-flavor>") +
# step 2 : surround by <i> tags
{ "<i-flavor>" + input + "</i-flavor>" } +
# curly quotes
(if set.curly_quotes then curly_quotes) +
# Determine type of card
card_type := {
if card.card_type == "Attack" then "Attack"
else if card.card_type == "Battlegear" then "Battlegear"
else if card.card_type == "Location" then "Location"
else if card.card_type == "CarBorg Enzorian" then "CarBorg"
else if card.card_type == "CarBorg Rebel Rogue" then "CarBorg"
else if card.card_type == "CarBorg Bugarian" then "CarBorg"
else if card.card_type == "CarBorg Hybrosian" then "CarBorg"
else if card.card_type == "CarBorg Hunter-Predator" then "CarBorg"
else if card.card_type == "CarBorg Rockithian" then "CarBorg"
else if card.card_type == "CarBorg Novasnake" then "CarBorg"
else if card.card_type == "CarBorg Galibien" then "CarBorg"
else if card.card_type == "CarBorg Multiteam" then "CarBorg"
else if card.card_type == "CarBorg Teamless" then "CarBorg"
else if card.card_type == "Spell Generic" then "Spell"
else if card.card_type == "Spell Enzorian" then "Spell"
else if card.card_type == "Spell Rebel Rogue" then "Spell"
else if card.card_type == "Spell Bugarian" then "Spell"
else if card.card_type == "Spell Hybrosian" then "Spell"
else if card.card_type == "Spell Hunter-Predator" then "Spell"
else if card.card_type == "Spell Rockithian" then "Spell"
else if card.card_type == "Spell Novasnake" then "Spell"
else if card.card_type == "Spell Galibien" then "Spell"
else "Attack"
}
############### Type of card
is_nCarBorg := {
card.card_type == "Attack" or
card.card_type == "Spell Generic" or
card.card_type == "Spell Enzorian" or
card.card_type == "Spell Rebel Rogue" or
card.card_type == "Spell Bugarian" or
card.card_type == "Spell Hybrosian" or
card.card_type == "Spell Hunter-Predator" or
card.card_type == "Spell Rockithian" or
card.card_type == "Spell Novasnake" or
card.card_type == "Spell Galibien" or
card.card_type == "Battlegear" or
card.card_type == "Location"
}
is_CarBorg := {
card.card_type == "CarBorg Enzorian" or
card.card_type == "CarBorg Rebel Rogue" or
card.card_type == "CarBorg Bugarian" or
card.card_type == "CarBorg Hybrosian" or
card.card_type == "CarBorg Hunter-Predator" or
card.card_type == "CarBorg Rockithian" or
card.card_type == "CarBorg Novasnake" or
card.card_type == "CarBorg Galibien" or
card.card_type == "CarBorg Multiteam" or
card.card_type == "CarBorg Teamless"
}
is_Attack := {
card.card_type == "Attack"
}
is_Spell := {
card.card_type == "Spell Generic" or
card.card_type == "Spell Enzorian" or
card.card_type == "Spell Rebel Rogue" or
card.card_type == "Spell Bugarian" or
card.card_type == "Spell Hybrosian" or
card.card_type == "Spell Hunter-Predator" or
card.card_type == "Spell Rockithian" or
card.card_type == "Spell Novasnake" or
card.card_type == "Spell Galibien"
}
is_Battlegear_card := {
card.card_type == "Battlegear"
}
is_Location_card := {
card.card_type == "Location"
}
############### Determine Card Position
pos_of_card := {
position(
of: card
in: set
order_by: {
card.card_type + card.card_type + card.name
}) + 1
}
card_number := {
position (
of: card
in: set
order_by: { rarity_sort() + sort_index() + sort_name(card.name) }
filter: set_filter()
) + 1
}
card_count := {
number_of_items(in: set, filter: set_filter())
}
############################################################## Set fields
set field:
type: text
name: title
description: This information will not appear on the card.
set field:
type: info
name: Set Information
set field:
type: text
name: set_code
description: Recommended only 3 Capital digits. Will appear before card number.
set field:
type: text
name: description
multi line: true
description: This information will not appear on the card.
set field:
type: text
name: artist
description: Editing this will set 1 artist for all the cards and will appear in the artist bar below the picture.
set field:
type: text
name: copyright
description: Copyright information
set field:
type: multiple choice
name: automatic reminder text
choice: innate
choice: activated
choice: triggered
choice: deckbuilding restrictions
choice: pseudo
choice: action
choice: custom
initial: innate, activated, triggered, pseudo, action, custom
# Convert from older mse versions
script:
if value = "yes" then "innate, activated, triggered, action, custom"
else if value = "no" then ""
else value
description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword.
set field:
type: boolean
name: automatic card numbers
description: Should card numbers be shown on the cards?
set field:
type: boolean
name: automatic copyright
description: Should the copyright line above be shown on the cards?
set field:
type: boolean
name: curly quotes
description: converts quotes to curly quotes.
############################# Default style
default set style:
title:
padding left: 2
font:
size: 16
symbol:
max aspect ratio: 2.5
variation:
name: common
border radius: 0.10
fill type: solid
fill color: rgb(0,0,0)
border color: rgb(255,255,255)
variation:
name: uncommon
border radius: 0.07
fill type: linear gradient
fill color 1: rgb(39,195,96)
fill color 2: rgb(49, 85, 20)
border color 1: rgb(0, 0, 0)
border color 2: rgb(0, 0, 0)
variation:
name: rare
border radius: 0.07
fill type: linear gradient
fill color 1: rgb(240,235,13)
fill color 2: rgb(129,103,46)
border color 1: rgb(0, 0, 0)
border color 2: rgb(0, 0, 0)
variation:
name: super rare
border radius: 0.07
fill type: linear gradient
fill color 1: rgb(51,153,255)
fill color 2: rgb(38,79,96)
border color 1: rgb(0, 0, 0)
border color 2: rgb(0, 0, 0)
variation:
name: ultra rare
border radius: 0.07
fill type: linear gradient
fill color 1: rgb(255,255,255)
fill color 2: rgb(130,130,130)
border color 1: rgb(0, 0, 0)
border color 2: rgb(0, 0, 0)
variation:
name: colossal rare
border radius: 0.07
fill type: linear gradient
fill color 1: rgb(204,102,102)
fill color 2: rgb(72,0,0)
border color 1: rgb(0, 0, 0)
border color 2: rgb(0, 0, 0)
############################################################## Card fields
############################# Background stuff
card field:
type: choice
name: card_type
choice:
name: CarBorg
choice: Enzorian
choice: Rebel Rogue
choice: Bugarian
choice: Hybrosian
choice: Hunter-Predator
choice: Rockithian
choice: Novasnake
choice: Galibien
choice: Multiteam
choice: Teamless
choice: Attack
choice: Battlegear
choice: Location
choice:
name: Spell
choice: Generic
choice: Enzorian
choice: Rebel Rogue
choice: Bugarian
choice: Hybrosian
choice: Hunter-Predator
choice: Rockithian
choice: Novasnake
choice: Galibien
identifying: true
show statistics: false
card list visible: true
card list column: 3
card list width: 175
description: The type of the card
show statistics: false
############################# Name line
card field:
type: text
name: name
editable: true
card list visible: true
card list column: 1
show statistics: false
card field:
type: choice
name: rarity
choice: common
choice: uncommon
choice: rare
choice: super rare
choice: ultra rare
choice: colossal rare
initial: common
card list visible: true
editable: true
description: Click to load a rarity symbol for the card
show statistics: false
icon: statistics-icons/rarity.png
card list column: 6
choice colors:
common: rgb(255,255,255)
uncommon: rgb(39,195,96)
rare: rgb(240,235,13)
super rare: rgb(51,153,255)
ultra rare: rgb(255,255,255)
colossal rare: rgb(204,102,102)
############################# Image
card field:
type: image
name: image
show statistics: false
card list visible: false
############################# Type Bar
card field:
type: text
name: typebar
editable: true
save value: true
card list name: Typebar
card list visible: true
show statistics: false
card list column: 10
description: The card type field. If this is for a CarBorg please show the Team and expand it with CarBorg type information.
############################# Card ID
card field:
type: text
name: number
save value: false
script: card_number() + "/" + card_count()
sort script: rarity_sort() + card.card_number
card list visible: true
card list column: 4
card list name: #
editable: false
show statistics: false
card field:
type: text
name: set_code
save value: false
card list visible: true
card list name: Set code
editable: false
show statistics: false
############################# Card code
card field:
type: text
name: card_code
save value: false
card list visible: true
card list name: Card code
editable: false
show statistics: false
############################# Elemental Symbols (y/n)
card field:
type: choice
name: fire
choice: yes
default: nil
choice: no
icon: statistics-icons/fire-yn.png
card list column: 18
description: Yes or No, defaults to no.
card field:
type: choice
name: water
choice: yes
choice: no
default: nil
icon: statistics-icons/air-yn.png
card list column: 19
description: Yes or No, defaults to no.
card field:
type: choice
name: earth
choice: yes
choice: no
default: nil
icon: statistics-icons/earth-yn.png
card list column: 20
description: Yes or No, defaults to no.
card field:
type: choice
name: air
choice: yes
choice: no
default: nil
icon: statistics-icons/water-yn.png
card list column: 21
description: Yes or No, defaults to no.
############################# Text box
card field:
type: text
name: rule text
script: text_filter(input: value, card_name: card.name)
multi line: true
show statistics: false
description: The rules text for the card
show statistics: false
card list column: 22
card field:
type: text
name: flavor text
script: flavor_text_filter(value)
show statistics: false
multi line: true
description: The flavor text for the card
card field:
type: text
name: text
multi line: true
save value: false
show statistics: false
script:
combined_editor(field1: card.rule_text, separator: "<line>\n</line>", field2: card.flavor_text)
description: The rules and flavor text for the card; use up and down arrows to switch
############################# Stats
card field:
type: text
name: strength
save value: true
card list name: Strength
card list column: 6
card list name: STR
description: How Strong is this CarBorg?
card field:
type: text
name: speed
save value: true
card list name: Speed
card list column: 7
card list name: SPD
description: How Speedy is this CarBorg?
card field:
type: text
name: bravery
save value: true
card list name: Bravery
card list column: 8
card list name: BVY
description: How Brave is this CarBorg?
card field:
type: text
name: wisdom
save value: true
card list name: Wisdom
card list column: 9
card list name: WIS
description: How Wise is this CarBorg?
############################# Non-discipline stats
card field:
type: text
name: knowledge_nuts
save value: true
card list name: Knowledge Nuts
icon: statistics-icons/kn.png
card list column: 10
description: How many Knowledge Nuts does this CarBorg have?
card field:
type: text
name: energy
save value: true
save value: true
card list name: Energy
icon: statistics-icons/e.png
card list column: 11
description: What is this CarBorg's energy score?
############################# Attack stuff
card field:
type: text
name: build_points
card list name: Build Points
card list column: 12
icon: statistics-icons/bp.png
description: The build points to use this attack in a deck.
card field:
type: text
name: base_damage
save value: true
card list name: Base Damage
card list column: 13
icon: statistics-icons/base-d.png
description: The base damage that this attack inflicts.
card field:
type: text
name: fire_damage
card list name: Fire Damage
card list column: 14
icon: statistics-icons/fire-d.png
description: The elemental damage that this attack inflicts.
card field:
type: text
name: water_damage
card list name: Water Damage
card list column: 15
icon: statistics-icons/water-d.png
description: The elemental damage that this attack inflicts.
card field:
type: text
name: earth_damage
card list name: Earth Damage
card list column: 16
icon: statistics-icons/earth-d.png
description: The elemental damage that this attack inflicts.
card field:
type: text
name: air_damage
card list name: Air Damage
card list column: 17
icon: statistics-icons/air-d.png
description: The elemental damage that this attack inflicts.
############################# Copyright stuff
card field:
type: text
name: artist
default: set.artist
card list column: 22
icon: statistics-icons/art.png
description: Who drew the image, or where is it from?
card field:
type: text
name: copyright
default: set.copyright
show statistics: false
description: Copyright Information. (C) = ©; TM = ™
############################################################## Auto replace
# Do we need categories?
#auto replace category: text box
#auto replace category: copyright
#auto replace category: everywhere
auto replace:
match: (C)
replace: ©
auto replace:
match: AE
replace: Æ
whole word: false
auto replace:
match: TM
replace: ™
whole word: false
auto replace:
match: --
replace: —
auto replace:
# note the spaces
match:
-
replace:
—
auto replace:
match: `
replace: •
auto replace:
match: ::
replace: •
############################################################## Statistics categories
statistics dimension:
name: Card Types
script: card.card_type
icon: statistics-icons/typ.png
colors:
Attack : rgb(77,77,77)
Battlegear : rgb(221,221,221)
CarBorg Enzorian : rgb(51,153,255)
CarBorg Rebel Rogue : rgb(204,0,0)
CarBorg Bugarian : rgb(0,128,0)
CarBorg Hybrosian : rgb(255,204,0)
CarBorg Hunter-Predator : rgb(28,28,28)
CarBorg Rockithian : rgb(140,70,0)
CarBorg Novasnake : rgb(255,255,255)
CarBorg Galibien : rgb(255,102,0)
CarBorg Multiteam : rgb(178,178,178)
CarBorg Teamless : rgb(178,178,178)
Location : rgb(102,51,204)
Spell Generic : rgb(178,178,178)
Spell Enzorian : rgb(51,153,255)
Spell Rebel Rogue : rgb(204,0,0)
Spell Bugarian : rgb(0,128,0)
Spell Hybrosian : rgb(255,204,0)
Spell Hunter-Predator : rgb(28,28,28)
Spell Rockithian : rgb(140,70,0)
Spell Novasnake : rgb(255,255,255)
Spell Galibien : rgb(255,102,0)
group: Attack
group: Battlegear
group: CarBorg Enzorian
group: CarBorg Rebel Rogue
group: CarBorg Bugarian
group: CarBorg Hybrosian
group: CarBorg Hunter-Predator
group: CarBorg Rockithian
group: CarBorg Novasnake
group: CarBorg Galibien
group: CarBorg Multiteam
group: CarBorg Teamless
group: Location
group: Spell Generic
group: Spell Enzorian
group: Spell Rebel Rogue
group: Spell Bugarian
group: Spell Hybrosian
group: Spell Hunter-Predator
group: Spell Rockithian
group: Spell Novasnake
group: Spell Galibien
statistics dimension:
name: Rarities
icon: statistics-icons/rarity.png
script: card.rarity
colors:
common : rgb(25,25,25)
uncommon : rgb(140,210,121)
rare : rgb(255,214,9)
super rare : rgb(10,50,200)
ultra rare : rgb(150,150,150)
colossal rare : rgb(200,10,10)
group: common
group: uncommon
group: rare
group: super rare
group: ultra rare
group: colossal rare
############################################################## Card pack items
pack type:
name: common
filter: card.rarity == "common"
pack type:
name: uncommon
filter: card.rarity == "uncommon"
pack type:
name: common / uncommon
filter: card.rarity == "common" or card.rarity == "uncommon"
pack type:
name: rare
filter: card.rarity == "rare"
pack type:
name: rare (1:3 super rare) (1:9 ultra rare) (1:18 colossal rare)
filter: if random_select([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1] count:1, replace: false) == 1 then ( card.rarity == "colossal rare" ) else if random_select([0,0,0,0,0,0,0,0,1] count: 1, replace: false) == 1 then ( card.rarity == "ultra rare" ) else if random_select([0,0,1] count: 1, replace: false) == 1 then ( card.rarity == "super rare" ) else ( card.rarity == "rare" )
pack type:
name: super rare
filter: card.rarity == "super rare"
pack type:
name: ultra rare
filter: card.rarity == "ultra rare"
pack type:
name: colossal rare
filter: card.rarity == "colossal rare"
############################################################## Card packs
pack type:
name: booster pack
item:
name: rare (1:3 super rare) (1:9 ultra rare) (1:18 colossal rare)
item:
name: rare
item:
name: uncommon
amount: 5
item:
name: common
amount: 8
pack type:
name: additional common
item:
name: common
pack type:
name: additional common / uncommon
item:
name: common / uncommon
pack type:
name: additional uncommon
item:
name: uncommon
pack type:
name: additional rare
item:
name: rare
pack type:
name: additional rare (1:3 super rare) (1:9 ultra rare) (1:18 colossal rare)
item:
name: rare (1:3 super rare) (1:9 ultra rare) (1:18 colossal rare)
pack type:
name: additional super rare
item:
name: super rare
pack type:
name: additional ultra rare
item:
name: ultra rare
pack type:
name: additional colossal rare
item:
name: colossal rare</i></i-flavor></match></atom-keyword></match></atom-cardname></match></b-auto></i-auto></sym-auto></div><i>
<div class="spoiler"></div></i>{style}
mse version: 2.0.0
game: CarBorgs
short name: creatures
installer group: carborgs/creatures
icon: card-sample.png
position hint: 01
depends on:
package: carborgs.mse-game
depends on:
package: carborgs-symbols.mse-symbol-font
card width: 370
card height: 523
card dpi: 300
############################################################## Extra scripts
############################################################## Extra style
styling field:
type: choice
name: foil name
description: What color foil should be used on the name?
initial: normal
choice: normal
choice: silver
choice: gold
styling style:
foil name:
render style: text
############################################################## Card fields
card style:
############################# Background stuff
card_type:
left: 0
top: 0
width: 370
height: 523
z index:-2
render style: image
popup style: in place
choice images:
CarBorg Enzorian: card_enzorian.png
CarBorg Rebel Rogue: card_rebelrogue.png
CarBorg Bugarian: card_bugarian.png
CarBorg Hybrosian: card_hybrosian.png
CarBorg Hunter-Predator: card_hunter-predator.png
CarBorg Rockithian: card_rockithian.png
CarBorg Novasnake: card_novasnake.png
CarBorg Galibien: card_galibien.png
CarBorg Multiteam: card_multiteam.png
CarBorg Teamless: card_teamless.png
############################# Name line
name:
left: 69
top : 5
width: 250
height: 40
alignment: middle center
angle: 0
padding bottom: 0
z index: 2
font:
name: Crimes Times Six
size: 16
shadow color: rgb(96,96,96)
shadow displacement x: 1
shadow displacement y: 1
color:
else if styling.foil_name=="silver" then rgb(230,230,230)
else if styling.foil_name=="gold" then rgb(216,199,53)
else rgb(255,255,255)
rarity:
left: 318
top : 5
width: 40
height: 40
z index: 2
render style: image
choice images:
common:
script:
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")
super rare:
script:
symbol_variation(symbol: set.symbol, variation: "super rare")
ultra rare:
script:
symbol_variation(symbol: set.symbol, variation: "ultra rare")
colossal rare:
script:
symbol_variation(symbol: set.symbol, variation: "colossal rare")
############################# Image
image:
left: 12
top : 45
width : 346
height : 251
z index: 1
mask: mask.png
############################# typebar
typebar:
left: 12
top : 296
width: 346
height: 17
alignment: middle left
angle:
z index: 2
font:
name: Arial
size: 12
weight: bold italic
color: rgb(255,255,255)
symbol font:
name: carborgs-symbols
size: 12
############################# Text box
rule text:
left: 56
top : 313
width: 263
height: 159
font:
name: Arial
size: 14
scale down to: 8
color: rgb(0,0,0)
symbol font:
name: carborgs-symbols
alignment: middle left
size: 14
alignment: middle left
angle: 0
z index: 3
padding left: 2
padding top: 2
padding right: -3
padding bottom: 0
line height hard: 1.0
line height line: 1.0
line height soft: 0.9
line height hard max: 1.2
line height line max: 1.2
############################# Attributes
strength:
left: 25
top: 326
width: 31
height: 26
z index: 2
alignment: right middle
font:
name: Arial
size: 16
weight: bold
color: rgb(0,0,0)
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
speed:
left: 25
top: 366
width: 31
height: 26
z index: 2
alignment: right middle
font:
name: Arial
size: 16
color: rgb(0,0,0)
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
bravery:
left: 25
top: 406
width: 31
height: 26
z index: 2
alignment: right middle
font:
name: Arial
size: 16
color: rgb(0,0,0)
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
wisdom:
left: 25
top: 446
width: 31
height: 26
z index: 2
alignment: right middle
font:
name: Arial
size: 16
color: rgb(0,0,0)
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
fire:
left: 318
top: 313
width: 36
height: 34
render style: image
popup style: in place
choice images:
yes: CB_fire_on.png
air:
left: 318
top: 432
width: 36
height: 35
render style: image
popup style: in place
choice images:
yes: CB_air_on.png
earth:
left: 318
top: 392
width: 36
height: 35
render style: image
popup style: in place
choice images:
yes: CB_earth_on.png
water:
left: 318
top: 352
width: 36
height: 35
render style: image
popup style: in place
choice images:
yes: CB_water_on.png
############################# Non-discipline stats
knowledge_nuts:
left: 13
top: 473
width: 42
height: 42
z index: 2
alignment: center middle
font:
name: Arial Black
weight: bold
size: 24
color: rgb(0,0,0)
symbol font:
name: carborgs-symbols
alignment: center middle
size: 24
energy:
left: 288
top: 472
width: 60
height: 46
z index: 2
alignment: center middle
font:
name: Arial
weight: bold
size: 20
color: rgb(0,0,0)
symbol font:
name: carborgs-symbols
alignment: right middle
size: 12
card_code:
left: 58
top: 473
width: 223
height: 23
z index: 2
alignment: center middle
font:
name: Arial
size: 12
color: rgb(0,0,0)
symbol font:
name: carborgs-symbols
alignment: right middle
size: 12
############################# Credits line
set_code:
left: 58
top : 507
width: 24
height: 10
z index: 2
alignment: middle left
font:
name: Arial
size: 8
color: rgb(255,255,255)
weight: bold
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
number:
left: 81
top : 507
width: 51
height: 10
z index: 2
alignment: middle left
font:
name: Arial
size: 8
color:
script:
if card.card_type == "CarBorg Hunter-Predator" then "rgb(255,255,255)"
else rgb(0,0,0)
weight: bold
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
copyright:
left: 132
top : 507
width: 148
height: 10
alignment: middle right
z index: 2
font:
name: Arial
size: 8
color:
script:
if card.card_type == "CarBorg Hunter-Predator" then "rgb(255,255,255)"
else rgb(0,0,0)
weight: bold
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
artist:
left: 58
top : 495
width: 223
height: 12
z index: 2
alignment: middle center
font:
name: Arial
size: 8
color:
script:
if card.card_type == "CarBorg Hunter-Predator" then "rgb(255,255,255)"
else rgb(0,0,0)
shadow color: rgb(128,128,128)
shadow displacement x: 1
shadow displacement y: 1
This code generates the following errors in MSE:
- set has no member 'symbol' in function symbol_variation in function ? ? ?[...]
- set has no member 'symbol' in function symbol_variation while updating styles for 'rarity'
- Variable not set: flavor_text_filter while updating card value 'flavor text'
- Variable not set: text_filter while updating card value 'rule text'
- Variable not set: card_number while updating card value 'number
- Warnings while reading file: (style file) On line 113: Expected floating point number instead of "
- Warnings while reading file: (game file) On line 41: Unexpected key: 'symbol filter', On line 261: Unexpected key: 'symbol'
There's also a dependency error with the versions, but I left that one out as it doesn't appear to affect anything.
I'm fairly new to coding still so I don't really understand why I'm getting the "variable not set" errors when I am reasonably sure I have set them? I really want to get at least these codes error-free before I go ahead and code the rest of my style files (as the game uses a lot of card styles).
I should also explain that I'm trying to get this template to use the MSE symbol editor for the rarity symbols (like the MTG templates do) which is why most of my errors relate to symbol and rarity, but I am unsure of what code I might be missing. I also want to get the card numbers to display like MTG's does, in the X/XXX format.
So, if anyone can help me get all the errors in the code sorted out and the template working as I intend it to, by suggesting code that I need to add or change, I would be really grateful as I've already spent a long time creating my templates and getting it coded into MSE up to this point, and I don't want to have to abandon it now just because I don't know how to get the flavour text, card numbers or rarity symbols working.
Any help appreciated, thanks!
I'm fairly new to coding still so I don't really understand why I'm getting the "variable not set" errors when I am reasonably sure I have set them? I really want to get at least these codes error-free before I go ahead and code the rest of my style files (as the game uses a lot of card styles).
I should also explain that I'm trying to get this template to use the MSE symbol editor for the rarity symbols (like the MTG templates do) which is why most of my errors relate to symbol and rarity, but I am unsure of what code I might be missing. I also want to get the card numbers to display like MTG's does, in the X/XXX format.
So, if anyone can help me get all the errors in the code sorted out and the template working as I intend it to, by suggesting code that I need to add or change, I would be really grateful as I've already spent a long time creating my templates and getting it coded into MSE up to this point, and I don't want to have to abandon it now just because I don't know how to get the flavour text, card numbers or rarity symbols working.
Any help appreciated, thanks!