Page 37 of 141

Re: Card Development Questions

PostPosted: 19 May 2011, 17:26
by SoulStorm
Jeff, the exercise began as an attempt to add a card. Then it turned into, "let's see what happens if I do this.". :mrgreen:

Re: Card Development Questions

PostPosted: 20 May 2011, 16:08
by jeffwadsworth
CopyPermanent. Any plans to include an option to make multiple copies like tokenamount$?

Re: Card Development Questions

PostPosted: 20 May 2011, 19:56
by SoulStorm
Also regarding CopyPermanent, I'd like to see TokenOwner$ and whatever infrastructure is needed to add cards like Phyrexian Metamorph.

Re: Card Development Questions

PostPosted: 21 May 2011, 18:02
by jeffwadsworth
Here is a script for Telling Time.

Code: Select all
Name:Telling Time
ManaCost:1 U
Types:Instant
Text:no text
A:SP$ Dig | Cost$ 1 U | DigNum$ 3 | LibraryPosition2$ 0 | SubAbility$ SVar=DBDig | SpellDescription$ Look at the top three cards of your library. Put one of those cards into your hand, one on top of your library, and one on the bottom of your library.
SVar:DBDig:DB$Dig | DigNum$ 2 | DestinationZone$ Library | LibraryPosition$ 0 | LibraryPosition2$ -1
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/telling_time.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/69.jpg
SetInfo:10E|Uncommon|http://magiccards.info/scans/en/10e/114.jpg
End
Does anyone have any ideas to streamline this? The second dig may confuse people.

Re: Card Development Questions

PostPosted: 27 May 2011, 20:14
by jeffwadsworth
Would this simpler version of Undergrowth be incorrect?

Code: Select all
Name:Undergrowth
ManaCost:G
Types:Instant
Text:no text
A:SP$ Fog | Cost$ G | SpellDescription$ Prevent all combat damage that would be dealt this turn.
A:SP$ PumpAll | Cost$ G 2 R | ValidCards$ Creature.nonRed | KW$ HIDDEN Prevent all combat damage that would be dealt by CARDNAME. | SpellDescription$ Prevent all combat damage that would be dealt this turn by non-red creatures.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/undergrowth.jpg
End

Re: Card Development Questions

PostPosted: 27 May 2011, 20:25
by friarsol
PumpAll doesn't work in this situation because Undergrowth can affect cards after it is cast. You need to use the Effect AF. Check out Falter for a similar card.

Re: Card Development Questions

PostPosted: 27 May 2011, 21:29
by jeffwadsworth
Here is a script for Winter's Night

Code: Select all
Name:Winter's Night
ManaCost:R G W
Types:World Enchantment
Text:no text
T:Mode$ Taps | ValidCard$ Land.Snow | Execute$ TrigMana | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player taps a snow land for mana, that player adds one mana to his or her mana pool of any type that land produced. That land doesn't untap during its controller's next untap step.
SVar:TrigMana:AB$ManaReflected | Cost$ 0 | ColorOrType$ Type | Valid$ TriggeredCard | ReflectProperty$ Produce
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/winters_night.jpg
End
Anyone see the issue here? Perhaps TriggeredCard is not supported by Valid$

Re: Card Development Questions

PostPosted: 27 May 2011, 21:35
by Hellfish
Exactly right, Triggered-variables currently only work with Defined$ expressions. Perhaps I can make an addition to hasProperty that will let you use something like "Card.IsTriggered<Triggered-variable name>" that returns true if the card being evaluated is equal to what is in the Triggered-variable of the evaluating card. I think that could be useful elsewhere too.

EDIT:Oh yeah, and the tapped land should be Pumped with "This card doesn't untap during it's controllers next untap step." or whatever the proper keyword is.

Re: Card Development Questions

PostPosted: 27 May 2011, 21:49
by jeffwadsworth
Excellent. Yes, I didn't add the tapped land part yet.

Re: Card Development Questions

PostPosted: 27 May 2011, 22:16
by Hellfish
Alright, you can now use "Card.IsTriggeredCard" or "Card.IsTriggeredSource" or any other TriggeredVariable that returns a card.

The next problem is how AF_ReflectedMana takes being run by the AI. Looks like the human always gets to make the choice. (Makes sense since the aI can't make much of a decision with no mana pool.)

Re: Card Development Questions

PostPosted: 27 May 2011, 22:27
by jeffwadsworth
Works great. Thanks.

Re: Card Development Questions

PostPosted: 27 May 2011, 22:39
by friarsol
Hellfish wrote:Alright, you can now use "Card.IsTriggeredCard" or "Card.IsTriggeredSource" or any other TriggeredVariable that returns a card.

The next problem is how AF_ReflectedMana takes being run by the AI. Looks like the human always gets to make the choice. (Makes sense since the aI can't make much of a decision with no mana pool.)
Oh right. I forgot about that too. I'll try to not write up lists when I'm not thinking about AI functionality.

Re: Card Development Questions

PostPosted: 28 May 2011, 20:19
by jeffwadsworth
Berserk. I have tried effect based scripting, but neither "targeted" nor "remembered" are supported by stpump yet...to my knowledge.

Re: Card Development Questions

PostPosted: 28 May 2011, 20:57
by lazylockie
Is there a "Rest of the game" duration variable for AB$Effect? I'm trying to create emblems, but the API only states "End of turn".

Re: Card Development Questions

PostPosted: 28 May 2011, 21:13
by friarsol
lazylockie wrote:Is there a "Rest of the game" duration variable for AB$Effect? I'm trying to create emblems, but the API only states "End of turn".
Duration$ Permanent