

This mod contains special abilities that allow you to create a new type of card called a 'spell.' Spells are cards that
a) Do not need a space on board to resolve b) Die immediately when played.
In other words, these are cards you play entirely because they have an immediate effect.
There are also some additional sigils in this pack that might be useful for you when creating spells.
It can, but it doesn't by default. If you want my example cards added to the card pool, go to the config file 'zorro.inscryption.infiniscryption.spells.cfg' and set 'AddCards' to true.
This will add the following cards:
As with most mods, you need BepInEx installed.
You will also need the API installed.
To add a spell using the API, you need to add both a 'special ability' and a 'stat icon'. Also, make sure you add a sigil that triggers either when played from hand or when the card dies. Otherwise nothing will happen when the card is played.
The plugin will take care of adding all of the necessary card appearance behaviors for you.
using APIPlugin;
using Infiniscryption.Spells.Sigils;
NewCard.Add(
"Kettle_of_Avarice",
"Kettle of Avarice",
0, 0,
new List<CardMetaCategory>() { CardMetaCategory.ChoiceNode, CardMetaCategory.TraderOffer },
CardComplexity.Advanced,
CardTemple.Nature,
"It allows you to draw two more cards",
bloodCost: 1,
hideAttackAndHealth: true,
defaultTex: AssetHelper.LoadTexture("kettle_of_avarice"),
specialStatIcon: GlobalSpellAbility.Instance.statIconInfo.iconType,
specialAbilitiesIdsParam: new List<SpecialAbilityIdentifier>() { GlobalSpellAbility.Instance.id },
abilityIdsParam: new List<AbilityIdentifier>() { DrawTwoCards.Identifier }
);
To add a spell using JSON loader, you need to know the GUID and name of the special ability. See below for an example:
{
"name": "Kettle_of_Avarice",
"displayedName": "Kettle of Avarice",
"description": "It allows you to draw two more cards",
"metaCategories": [
"ChoiceNode",
"TraderOffer"
],
"cardComplexity": "Advanced",
"temple": "Nature",
"baseAttack": 0,
"baseHealth": 0,
"bloodCost": 1,
"customAbilities": [
{
"name": "Draw Twice",
"GUID": "zorro.infiniscryption.sigils.drawtwocards"
}
],
"texture": "kettle_of_avarice.png",
"customSpecialAbilities": [
{
"name": "Spell (Global)",
"GUID": "zorro.infiniscryption.sigils.globalspell"
}
]
}
There are a lot of ways to accomplish the same thing. This method is modular, easy to use, gives spells a custom card frame, and most importantly it doesn't waste a sigil slot on the card.
So far there are two, with some more to come: