From e5848e540e63e2cc420b94e6bfda8a045f8831de Mon Sep 17 00:00:00 2001 From: kevlahnota Date: Sun, 17 Sep 2023 14:52:12 +0800 Subject: [PATCH] add ashiok scripts --- .../upcoming/ashiok_wicked_manipulator.txt | 14 ++++++++++++++ .../tokenscripts/b_1_1_nightmare_exile_counter.txt | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 forge-gui/res/cardsfolder/upcoming/ashiok_wicked_manipulator.txt create mode 100644 forge-gui/res/tokenscripts/b_1_1_nightmare_exile_counter.txt diff --git a/forge-gui/res/cardsfolder/upcoming/ashiok_wicked_manipulator.txt b/forge-gui/res/cardsfolder/upcoming/ashiok_wicked_manipulator.txt new file mode 100644 index 00000000000..b1c75d9f570 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/ashiok_wicked_manipulator.txt @@ -0,0 +1,14 @@ +Name:Ashiok, Wicked Manipulator +ManaCost:3 B B +Types:Legendary Planeswalker Ashiok +Loyalty:5 +R:Event$ PayLife | ActiveZones$ Battlefield | ValidPlayer$ You | ReplaceWith$ ExileTop | Amount$ GT0 | Description$ If you would pay life while your library has at least that many cards in it, exile that many cards from the top of your library instead. +SVar:ExileTop:DB$ Dig | DigNum$ X | ChangeNum$ All | DestinationZone$ Exile +SVar:X:ReplaceCount$Amount +SVar:Y:Count$ValidLibrary Card +A:AB$ Dig | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | DigNum$ 2 | ChangeNum$ 1 | DestinationZone2$ Exile | NoReveal$ True | SpellDescription$ Look at the top two cards of your library. Exile one of them and put the other into your hand. +A:AB$ Token | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | TokenAmount$ 2 | TokenScript$ b_1_1_nightmare_exile_counter | TokenOwner$ You | SpellDescription$ Create two 1/1 black Nightmare creature tokens with "At the beginning of combat on your turn, if a card was put into exile this turn, put a +1/+1 counter on this creature." +A:AB$ Discard | Cost$ SubCounter<7/LOYALTY> | Planeswalker$ True | Ultimate$ True | ValidTgts$ Player | NumCards$ Z | Mode$ TgtChoose | SpellDescription$ Target player exiles the top X cards of their library, where X is the total mana value of cards you own in exile. +SVar:Z:Count$ValidExile Card.YouOwn$SumCMC +AI:RemoveDeck:Random +Oracle:If you would pay life while your library has at least that many cards in it, exile that many cards from the top of your library instead.\n+1: Look at the top two cards of your library. Exile one of them and put the other into your hand.\n−2: Create two 1/1 black Nightmare creature tokens with "At the beginning of combat on your turn, if a card was put into exile this turn, put a +1/+1 counter on this creature."\n−7: Target player exiles the top X cards of their library, where X is the total mana value of cards you own in exile. diff --git a/forge-gui/res/tokenscripts/b_1_1_nightmare_exile_counter.txt b/forge-gui/res/tokenscripts/b_1_1_nightmare_exile_counter.txt new file mode 100644 index 00000000000..f81049d5b5f --- /dev/null +++ b/forge-gui/res/tokenscripts/b_1_1_nightmare_exile_counter.txt @@ -0,0 +1,9 @@ +Name:Nightmare Token +ManaCost:no cost +Types:Creature Nightmare +Colors:black +PT:1/1 +T:Mode$ Phase | Phase$ BeginCombat | ValidPlayer$ You | TriggerZones$ Battlefield | CheckSVar$ X | SVarCompare$ GE1 | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of combat on your turn, if a card was put into exile this turn, put a +1/+1 counter on this creature. +SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 +SVar:X:Count$ThisTurnEntered_Exile_Card +Oracle:At the beginning of combat on your turn, if a card was put into exile this turn, put a +1/+1 counter on this creature.