It is currently 23 May 2025, 18:01
   
Text Size

Card Development Questions

Post MTG Forge Related Programming Questions Here

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

Re: Card Development Questions

Postby friarsol » 17 Feb 2012, 19:11

Yep, using Hidden$ True is how you "convert" a Known Information Zone that would require targeting to use the Hidden Information logic with a ChangeType that happens on Resolution.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 18 Feb 2012, 00:34

Hehe. I have been pulling my hair out testing Gaze of the Gorgon, when it dawned on me that the Regeneration effect was probably why it wasn't icing the blockers, etc. So, the "takes it out of combat" is why the blocks now longer count? If so, Gaze of the Gorgon is more like Gaze of the UN.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby jeffwadsworth » 18 Feb 2012, 02:22

I take it that the following ETB script for the Epochrasite would not suffice? Just checking if not.

| Open
T:Mode$ ChangesZone | ValidCard$ Card.wasNotCastFromHand+Self | Destination$ Battlefield | Execute$ TrigPutCounters | Static$ True | TriggerDescription$ CARDNAME enters the battlefield with three +1/+1 counters on it if you didn't cast it from your hand.
SVar:TrigPutCounters:AB$ PutCounter | Cost$ 0 | CounterType$ P1P1 | CounterNum$ 3
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby Sloth » 18 Feb 2012, 07:47

jeffwadsworth wrote:Hehe. I have been pulling my hair out testing Gaze of the Gorgon, when it dawned on me that the Regeneration effect was probably why it wasn't icing the blockers, etc. So, the "takes it out of combat" is why the blocks now longer count? If so, Gaze of the Gorgon is more like Gaze of the UN.
Regeneration does not remove from combat. If you would post your script, i could guess what's wrong.

jeffwadsworth wrote:I take it that the following ETB script for the Epochrasite would not suffice? Just checking if not.

| Open
T:Mode$ ChangesZone | ValidCard$ Card.wasNotCastFromHand+Self | Destination$ Battlefield | Execute$ TrigPutCounters | Static$ True | TriggerDescription$ CARDNAME enters the battlefield with three +1/+1 counters on it if you didn't cast it from your hand.
SVar:TrigPutCounters:AB$ PutCounter | Cost$ 0 | CounterType$ P1P1 | CounterNum$ 3
It should suffice.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby friarsol » 18 Feb 2012, 13:08

Sloth wrote:
jeffwadsworth wrote:Hehe. I have been pulling my hair out testing Gaze of the Gorgon, when it dawned on me that the Regeneration effect was probably why it wasn't icing the blockers, etc. So, the "takes it out of combat" is why the blocks now longer count? If so, Gaze of the Gorgon is more like Gaze of the UN.
Regeneration does not remove from combat. If you would post your script, i could guess what's wrong.
Regenerating does remove combat (once you use up a regeneration shield).

http://wiki.mtgsalvation.com/article/Regeneration

“The next time [permanent] would be destroyed this turn, instead remove all damage marked on it and tap it. If it’s an attacking or blocking creature, remove it from combat.”
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 19 Feb 2012, 21:37

Does anyone see the issue with this card? The granted trigger does not fire when the card dies. Tried ValidCard$ Card.Self, Self, Defined$ Card.Self, Self, and just left it blank.

| Open
Name:Saffi Eriksdotter
ManaCost:G W
Types:Legendary Creature Human Scout
Text:no text
PT:2/2
A:AB$ Animate | Cost$ Sac<1/CARDNAME> | ValidTgts$ Creature | TgtPrompt$ Select target creature | Triggers$ TrigChangesZone | sVars$ TrigBounceMe | SpellDescription$ When target creature is put into your graveyard from the battlefield this turn, return that card to the battlefield.
SVar:TrigChangesZone:Mode$ ChangesZone | Defined$ Self | Origin$ Battlefield | Destination$ Graveyard | Execute$ TrigBounceMe | TriggerDescription$ When CARDNAME is put into your graveyard from the battlefield this turn, return it to the battlefield.
SVar:TrigBounceMe:AB$ ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Battlefield
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/saffi_eriksdotter.jpg
End
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby friarsol » 19 Feb 2012, 21:49

Capitalization looks wrong on SVars in the Animate?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 19 Feb 2012, 21:56

friarsol wrote:Capitalization looks wrong on SVars in the Animate?
That looks weird, but it is indeed "sVars" for AB Animate. Heck, the creature displays the trigger description, etc, but it refuses to trigger.

final ArrayList<String> sVars = new ArrayList<String>();
if (params.containsKey("sVars")) {
sVars.addAll(Arrays.asList(params.get("sVars").split(",")));
}
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby friarsol » 19 Feb 2012, 22:03

Oh I guess Adarkar Valkyrie uses an Effect. Did you try using an effect?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 19 Feb 2012, 22:12

friarsol wrote:Oh I guess Adarkar Valkyrie uses an Effect. Did you try using an effect?
I saw that, but the card should work as is. I will just Effect it and move on. Thanks.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby jeffwadsworth » 21 Feb 2012, 22:40

On the subject of regeneration, I was testing The Wretched and came across this in the rulings:

Any blocking creatures that regenerated during combat will have been removed from combat. Since such creatures are no longer in combat, they cannot be blocking The Wretched, which means you won't be able to gain control of them.

This is what I had seen long ago but couldn't find it until now. This explains the Gaze of the Gorgon deal.

http://gatherer.wizards.com/Pages/Card/ ... eid=201168

It appears that regeneration being activated is not clearing out the "attackedThisTurn" property...unless I am interpeting the following incorrectly.

| Open
306.2. A creature is removed from combat if it stops being a creature (as a result of leaving play by any means, such as by being destroyed or removed from the game), if it regenerates (see rule 419.6b), or if its controller changes. "Removed from combat" means the creature stops being an attacking, blocking, blocked, and/or unblocked creature. Once a creature has been declared as an attacking or blocking creature, spells or abilities that would have kept that creature from attacking or blocking don’t remove the creature from combat. Tapping or untapping a creature that’s already been declared as an attacker or blocker doesn’t remove it from combat and doesn’t prevent its combat damage.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby friarsol » 22 Feb 2012, 01:32

The verbs of the combat is what you are missing here.

The Wretched states "blocking" as is still currently blocking, survived combat and all that. Gaze of the Gorgon says "blocked" or "were blocked by" which just means at some point during this turn if I blocked you. Once it regenerates you would stop actively blocking, but you still blocked at some point.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 22 Feb 2012, 03:53

friarsol wrote:The verbs of the combat is what you are missing here.

The Wretched states "blocking" as is still currently blocking, survived combat and all that. Gaze of the Gorgon says "blocked" or "were blocked by" which just means at some point during this turn if I blocked you. Once it regenerates you would stop actively blocking, but you still blocked at some point.
I gotcha. Thanks.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby jeffwadsworth » 22 Feb 2012, 05:25

Perhaps someone knows the way to fix the "spelldescription" of this script for Orim's Chant. It works fine, but a 3rd "Kicker W W" shows up on the choice screen. If I leave the spelldescription off, the kicker enabled effect refuses to target a player. Weird.

| Open
Name:Orim's Chant
ManaCost:W
Types:Instant
Text:no text
K:Kicker:W
A:SP$ Effect | Cost$ W | Name$ Orim's Chant Effect | IsCurse$ True | StaticAbilities$ CantBeCast | ValidTgts$ Player | RememberObjects$ Targeted | AILogic$ BeginningOfOppTurn | SpellDescription$ Target player can't cast spells this turn. If CARDNAME was kicked, creatures can't attack this turn.
SVar:CantBeCast:Mode$ CantBeCast | ValidCard$ Card | Caster$ Player.IsRemembered | Description$ Target player can't cast spells this turn.
A:SP$ Effect | Cost$ W W | Name$ Orim's Chant Effect | IsCurse$ True | StaticAbilities$ CantBeCast,CantAttack | ValidTgts$ Player | RememberObjects$ Targeted | AILogic$ BeginningOfOppTurn | SpellDescription$ Kicker W W (You may pay an additional W W as you cast this spell.)
SVar:CantAttack:Mode$ Continuous | Affected$ Creature | AddHiddenKeyword$ HIDDEN CARDNAME can't attack. | Description$ Creatures can't attack this turn.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/orims_chant.jpg
End
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Development Questions

Postby Sloth » 22 Feb 2012, 08:15

jeffwadsworth wrote:Perhaps someone knows the way to fix the "spelldescription" of this script for Orim's Chant. It works fine, but a 3rd "Kicker W W" shows up on the choice screen. If I leave the spelldescription off, the kicker enabled effect refuses to target a player. Weird.

| Open
Name:Orim's Chant
ManaCost:W
Types:Instant
Text:no text
K:Kicker:W
A:SP$ Effect | Cost$ W | Name$ Orim's Chant Effect | IsCurse$ True | StaticAbilities$ CantBeCast | ValidTgts$ Player | RememberObjects$ Targeted | AILogic$ BeginningOfOppTurn | SpellDescription$ Target player can't cast spells this turn. If CARDNAME was kicked, creatures can't attack this turn.
SVar:CantBeCast:Mode$ CantBeCast | ValidCard$ Card | Caster$ Player.IsRemembered | Description$ Target player can't cast spells this turn.
A:SP$ Effect | Cost$ W W | Name$ Orim's Chant Effect | IsCurse$ True | StaticAbilities$ CantBeCast,CantAttack | ValidTgts$ Player | RememberObjects$ Targeted | AILogic$ BeginningOfOppTurn | SpellDescription$ Kicker W W (You may pay an additional W W as you cast this spell.)
SVar:CantAttack:Mode$ Continuous | Affected$ Creature | AddHiddenKeyword$ HIDDEN CARDNAME can't attack. | Description$ Creatures can't attack this turn.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/orims_chant.jpg
End
You can delete "K:Kicker:W". This reminds me that we should add a Kicker flag to these spells (or really implement additional costs one day).
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 16 guests


Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 16 guests

Login Form