improved cardscripts

This commit is contained in:
Northmoc
2021-09-27 13:05:49 -04:00
parent 40e9f13806
commit 93ca04b2aa
3 changed files with 4 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ K:Reach
T:Mode$ Attacks | ValidCard$ Creature.Self | Execute$ TrigPutCounter | TriggerDescription$ Whenever CARDNAME attacks, put a +1/+1 counter on it for each Equipment attached to it.
SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ Y
SVar:Y:Count$Valid Equipment.Attached
A:AB$ DealDamage | Cost$ 1 SubCounter<All/P1P1> | NumDmg$ X | ValidTgts$ Creature.attacking+OppCtrl,Creature.blocking+OppCtrl | TgtPrompt$ Select target attacking or blocking creature an opponent controls | SpellDescription$ It deals X damage to target attacking or blocking creature an opponent controls, where X is the number of counters removed this way.
A:AB$ DealDamage | Cost$ 1 SubCounter<All/P1P1//NICKNAME> | NumDmg$ X | ValidTgts$ Creature.attacking+OppCtrl,Creature.blocking+OppCtrl | TgtPrompt$ Select target attacking or blocking creature an opponent controls | SpellDescription$ It deals X damage to target attacking or blocking creature an opponent controls, where X is the number of counters removed this way.
SVar:X:SVar$CostCountersRemoved
SVar:HasAttackEffect:TRUE
SVar:EquipMe:Multiple

View File

@@ -3,8 +3,8 @@ ManaCost:2 B B
Types:Legendary Creature Vampire Noble
PT:0/0
K:etbCounter:P1P1:4
A:AB$ Pump | Cost$ B | Defined$ Self | KW$ Flying | SpellDescription$ Crovax gains flying until end of turn.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, you may sacrifice a creature. If you do, put a +1/+1 counter on Crovax. If you don't, remove a +1/+1 counter from Crovax.
A:AB$ Pump | Cost$ B | Defined$ Self | KW$ Flying | StackDescription$ SpellDescription | SpellDescription$ NICKNAME gains flying until end of turn.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, you may sacrifice a creature. If you do, put a +1/+1 counter on NICKNAME. If you don't, remove a +1/+1 counter from NICKNAME.
SVar:TrigSacrifice:DB$ Sacrifice | Optional$ True | SacValid$ Creature | Amount$ 1 | RememberSacrificed$ True | SubAbility$ DBPutCounter
SVar:DBPutCounter:DB$ PutCounter | CounterType$ P1P1 | CounterNum$ 1 | ConditionDefined$ Remembered | ConditionPresent$ Creature | ConditionCompare$ EQ1 | SubAbility$ DBSubCounter
SVar:DBSubCounter:DB$ RemoveCounter | CounterType$ P1P1 | CounterNum$ 1 | ConditionDefined$ Remembered | ConditionPresent$ Creature | ConditionCompare$ EQ0 | SubAbility$ DBCleanup

View File

@@ -5,8 +5,7 @@ PT:2/4
T:Mode$ ChangesZone | ValidCard$ Creature.Self | Origin$ Any | Destination$ Battlefield | Execute$ DelTrig | TriggerDescription$ When CARDNAME enters the battlefield, create X 1/1 Sand Warrior creature tokens that are red, green, and white at the beginning of your next upkeep, where X is the number of lands you control at that time.
SVar:DelTrig:DB$ DelayedTrigger | Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigTokens | TriggerDescription$ Create X 1/1 Sand Warrior creature tokens that are red, green, and white, where X is the number of lands you control.
SVar:TrigTokens:DB$ Token | TokenAmount$ X | TokenScript$ rgw_1_1_sand_warrior | TokenOwner$ You
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Any | Execute$ TrigExile | TriggerDescription$ When CARDNAME leaves the battlefield, exile all Sand Warriors.
#NICKNAME upgrade
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Any | Execute$ TrigExile | TriggerDescription$ When NICKNAME leaves the battlefield, exile all Sand Warriors.
SVar:TrigExile:DB$ ChangeZoneAll | Origin$ Battlefield | Destination$ Exile | ChangeType$ Sand.Warrior
SVar:X:Count$Valid Land.YouCtrl
DeckHas:Ability$Token