In a gate event, the user destroys cards that they own ("paying a toll").
By default, this is the only functionality of a gate.
By using "chain", rewards can be given for when a user destroys a specific card.
"gate": {
"sacrificeGoat": {
"tolls": [
{"cost": "Scapegoat", "copiesNeeded": 1, "chain": "pack:smallReward"},
{"cost": "Stray Lambs", "copiesNeeded": 1, "chain": "pack:smallReward"},
{"cost": "Tanngrisnir of the Nordic Beasts", "copiesNeeded": 1, "chain": "pack:smallReward"}
]
}
}
You can use extendWithSearch syntax to allow the user to sacrifice any card that matches the parameters.
"gate": {
"sacrifice5_NonHERO": {
"tolls": [
{
"cost": [{"!name_includes":"HERO"}], //user can sacrifice any 1 card, except those with "hero" in the name.
"image": "myImageFromGateFolder.webp" //You need to add an image in the /gate/ directory if you choose to do this.
"copiesNeeded": 1,
"chain": "pack:reward"
}
]
}
}