Card Creator
On this page, all commands and syntax for the Card Creator will be explained.
Syntax
Basic Actions
Syntax | Description | Example | Result |
---|---|---|---|
- attack: [value] |
Creates an attack ability with a value of [value] |
- attack: 3 |
3 |
- move: [value] |
Creates a move ability with a value of [value] |
- move: 3 |
3 |
- teleport: [value] |
Creates a teleport ability with a value of [value] |
- teleport: 3 |
3 |
- shield: [value] |
Creates a shield ability with a value of [value] |
- shield: 1 |
1 |
- retaliate: [value] |
Creates a retaliate ability with a value of [value] |
- retaliate: 1 |
1 |
- loot: [value] |
Creates a loot ability with a value of [value] |
- loot: 1 |
1 |
- heal: [value] |
Creates a heal ability with a value of [value] |
- heal: 1 |
1 |
Conditions
The [condition] can take any of the following values:
-
bane
-
bless
-
brittle
-
chill
-
curse
-
disarm
-
dodge
-
empower
-
enfeeble
-
immobilize
-
impair
-
infect
-
invisible
-
muddle
-
pierce
-
poison
-
pull
-
push
-
regenerate
-
rupture
-
safeguard
-
strengthen
-
stun
-
swing
-
ward
-
wound
Syntax | Description | Example | Result |
---|---|---|---|
- [condition] : [value] |
Creates a [condition] with the value [value]. |
- poison |
|
Elements
The [element] in this section can take any of the following values:
-
earth
-
fire
-
air (or wind)
-
ice
-
light
-
dark
-
wild
-
any combination of elements separated by '/' will generate an or element
Syntax | Description | Example | Result |
---|---|---|---|
- [element] |
Renders the icon for the element [element]. |
- earth |
|
- [element]: consume |
Renders the icon for the element [element] and adds a consume x. This is usually used within an optional block. |
- earth: consume |
|
infuse: [ [elements..] ] |
This is a modifier of the actions block, and will create a mandatory box with the specified [elements..]-list. |
infuse: [earth, wild] |
[!] |
Styles
You can add modifieres to help with fineplacement, relocation, manipulating the element and much more. To use modifiers all blocks need to be an object, this means it needs a ':'' in the block. Single word blocks like - earth will need to add a ':' to use modifiers. - earth: '' Here is a list of styles each block can take:
Syntax | Description | Example | Result |
---|---|---|---|
margin |
Adds a buffer space on all sides of an element. The first value is for spacing on top, then right, bottom and the last one is for spacing to the left. |
|
|
margin[direction] |
Adds a buffer space on the specified side of an element. [direction] can be either Top, Left, Right or Bottom |
|
|
padding |
Include a buffer space on all sides of an element. the first value is for spacing on top, then right, and bottom and the last one is for spacing to the left. |
|
|
padding[direction] |
Include a buffer space on the specified side of an element. [direction] can be either Top, Left, Right or Bottom |
|
An important difference between padding and margin is that padding extends the boundingbox of the element, while a margin moves the element by adding a space outside the element. Also, the margin can take negative values to make the element take less space than the boundingbox of the element.
Syntax | Description | Example | Result |
---|---|---|---|
fontSize |
Change the fontSize of the text in the block modified. Icons tend to have a fixed size in different boxes and may not always be changed with this. |
|
|
color |
Changes the font color of the section, this will not impact icons. |
|
|
background |
Changes the background of the block. |
|
|
lineHeight |
Changes the space between lines to give either more space or make the text more compact. This is usful for adding icons into text where the lines would render different heights. |
|
|
wordSpacing |
Changes the space between words relative to the current spacing. |
|
Position
To change a blocks position or orientation or size use these:
Syntax | Description | Example | Result |
---|---|---|---|
position |
To change a blocks position this must be set to either 'relative' or 'absolute'. relative: will change the position of the element based on its relative position to other elements rendered. absolute: will change the position of the element based on the parent elements position. |
|
|
top |
Sets the value of its placement on the card either from its relative postion or from the top of the current action. |
|
|
left |
Sets the value of its placement on the card either from its relative postion or from the left side of the current action. |
|
|
transform |
This modifier is more complex and takes a string as input as shown here: documentation css transform |
|