It is currently 09 Sep 2025, 17:53
   
Text Size

Spoiler Season for M14

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Spoiler Season for M14

Postby Sloth » 09 Jul 2013, 18:00

Max mtg wrote:Do you need any assistance producing the "Magic 2014.txt" set description file?
Yes. Please help me with that.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Spoiler Season for M14

Postby Max mtg » 09 Jul 2013, 18:43

Sure, the file has been commited as r22528.

I've parsed the printable spoiler at mtg-s to get the card list
The header has been simply copied from M13 with updated release date, set codes and name.

New cards still missing their Oracle texts


The current progress:
Magic 2014 (249 cards) ... 98,39% (4 cards missing: Banisher Priest | Charging Griffin | Colossal Whale | Strionic Resonator )
Last edited by Max mtg on 09 Jul 2013, 19:02, edited 1 time in total.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Spoiler Season for M14

Postby Sloth » 10 Jul 2013, 12:25

swordshine wrote:
Sloth wrote:EDIT: What if Humility hits play? The card wouldn't be returned.
OK, it seems a LeavesPlayCommand is needed.
Unless you already started with this, we can try a different (easy) approach:
We can add a parameter to the triggers (like "Unremovable$ True") and make triggers with this parameter unremovable.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Spoiler Season for M14

Postby Max mtg » 10 Jul 2013, 12:32

Sloth, that will make the code even more complicated.

What about creating an effect with trigger waiting for LTB event of specified card (by uid)? That trigger is to make the desired action and remove the effect. You may use the OneOff$ parameter for trigger - the same as used on NPH Chancellors
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Spoiler Season for M14

Postby swordshine » 10 Jul 2013, 14:24

Just a little improvement to create an effect.
Colossal Whale | Open
Code: Select all
Name:Colossal Whale
ManaCost:5 U U
Types:Creature Whale
PT:5/5
K:Islandwalk
T:Mode$ Attacks | ValidCard$ Card.Self | OptionalDecider$ You | Execute$ TrigExile | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME attacks, you may exile target creature defending player controls until CARDNAME leaves the battlefield.
SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | ValidTgts$ Creature.DefenderCtrl | TgtPrompt$ Select target creature defending player control | ConditionPresent$ Card.Self | SubAbility$ DBEffect
SVar:DBEffect:DB$ Effect | Triggers$ ComeBack | RememberObjects$ Targeted | ImprintCards$ Self | SVars$ TrigReturn,ExileSelf | ConditionPresent$ Card.Self | Duration$ Permanent
SVar:ComeBack:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsImprinted | Execute$ TrigReturn | TriggerZones$ Command | TriggerController$ TriggeredCardController | Static$ True | TriggerDescription$ That creature is exiled until Colossal Whale leaves the battlefield
SVar:TrigReturn:AB$ ChangeZoneAll | Cost$ 0 | Origin$ Exile | Destination$ Battlefield | ChangeType$ Card.IsRemembered | SubAbility$ ExileSelf
SVar:ExileSelf:DB$ ChangeZone | Origin$ Command | Destination$ Exile | Defined$ Self
SVar:PlayMain1:TRUE
SVar:Picture:http://www.wizards.com/global/images/magic/general/colossal_whale.jpg
Banisher Priest | Open
Code: Select all
Name:Banisher Priest
ManaCost:1 W W
Types:Creature Human Cleric
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExile | TriggerDescription$ When CARDNAME enters the battlefield, exile target creature an opponent controls until CARDNAME leaves the battlefield.
SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | ValidTgts$ Creature.OppCtrl | TgtPrompt$ Select target creature an opponent controls | ConditionPresent$ Card.Self | SubAbility$ DBEffect
SVar:DBEffect:DB$ Effect | Triggers$ ComeBack | RememberObjects$ Targeted | ImprintCards$ Self | SVars$ TrigReturn,ExileSelf | ConditionPresent$ Card.Self | Duration$ Permanent
SVar:ComeBack:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsImprinted | Execute$ TrigReturn | TriggerZones$ Command | TriggerController$ TriggeredCardController | Static$ True | TriggerDescription$ That creature is exiled until Banisher Priest leaves the battlefield
SVar:TrigReturn:AB$ ChangeZoneAll | Cost$ 0 | Origin$ Exile | Destination$ Battlefield | ChangeType$ Card.IsRemembered | SubAbility$ ExileSelf
SVar:ExileSelf:DB$ ChangeZone | Origin$ Command | Destination$ Exile | Defined$ Self
SVar:PlayMain1:TRUE
SVar:Picture:http://www.wizards.com/global/images/magic/general/banisher_priest.jpg
Last edited by swordshine on 10 Jul 2013, 15:32, edited 1 time in total.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Spoiler Season for M14

Postby Max mtg » 10 Jul 2013, 14:59

If you need pictures for M14 - I've resized the ones from visual spoiler
viewtopic.php?f=15&t=9271&p=124867#p124867


Thank you, swordshine, for scripts!
What still remains to clarify - if the return from exile action should use stack. If it does not, some kind of flag might be added to triggers to have the game execute ability script without stack.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Spoiler Season for M14

Postby swordshine » 10 Jul 2013, 15:31

Max mtg wrote:What still remains to clarify - if the return from exile action should use stack. If it does not, some kind of flag might be added to triggers to have the game execute ability script without stack.
I don't think they would use stack, so the scripts are marked as static triggers.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Spoiler Season for M14

Postby friarsol » 10 Jul 2013, 15:41

swordshine wrote:
Max mtg wrote:What still remains to clarify - if the return from exile action should use stack. If it does not, some kind of flag might be added to triggers to have the game execute ability script without stack.
I don't think they would use stack, so the scripts are marked as static triggers.
It definitely doesn't use the stack. It's a duration, not a delayed trigger. Scripted with "static" triggers should be fine.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Spoiler Season for M14

Postby friarsol » 10 Jul 2013, 19:38

http://www.wizards.com/Magic/Magazine/A ... tg/faq/m14

I know we don't have the Strionic Resonator yet, but wow.. I wonder if Forge works like this right now.

"In some cases involving linked abilities, an ability requires information about "the exiled card." When this happens, the ability gets multiple answers. If these answers are being used to determine the value of a variable, the sum is used. For example, if Elite Arcanist's enters-the-battlefield ability is copied, two cards are exiled. The value of X in the activation cost of Elite Arcanist's other ability is the sum of the two cards' converted mana costs. As the ability resolves, you create copies of both cards and can cast none, one, or both of the copies in any order."
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Spoiler Season for M14

Postby moomarc » 16 Jul 2013, 16:29

Unstickied topic now that everything's merged and released.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 55 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 55 users online :: 0 registered, 0 hidden and 55 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 55 guests

Login Form