Re: Card Development Questions
I'd rather just add a newcost than have incorrect functionality. It ismuch easier to create new costs than it used to be, but I can handle adding this cost soon if noone else is up for it
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3760
Ideally, AF_Mana should support Produced$ Any. It would work best for this situation and also clean up ability text for Black Lotus, Birds of Paradise, etc.ArsenalNut wrote:You have to setup it up as five different choices, look at Black Lotus for an example of five choices. Copper-Leaf Angel is another card that uses the sacrifice x cost mechanic.Iran wrote:Is possible to script Springjack Pasture? Anyone has some ideia how to script the last mana ability of it.
" Tap, Sacrifice X Goats: Add X mana of any one color to your mana pool. You gain X life. "
Thanks
I'll have this up sometime tonight hopefully. Maybe tomorrow at the latest.friarsol wrote:I'd rather just add a newcost than have incorrect functionality. It ismuch easier to create new costs than it used to be, but I can handle adding this cost soon if noone else is up for it
I was thinking about this same thing when I tried to script Fertile Ground.slapshot5 wrote:Ideally, AF_Mana should support Produced$ Any. It would work best for this situation and also clean up ability text for Black Lotus, Birds of Paradise, etc.ArsenalNut wrote:You have to setup it up as five different choices, look at Black Lotus for an example of five choices. Copper-Leaf Angel is another card that uses the sacrifice x cost mechanic.Iran wrote:Is possible to script Springjack Pasture? Anyone has some ideia how to script the last mana ability of it.
" Tap, Sacrifice X Goats: Add X mana of any one color to your mana pool. You gain X life. "
Thanks
I don't think there's a feature request Mantis issue out there for that. Perhaps I shall add one.
-slapshot5
Edit: Submitted as: http://cardforge.org/bugz/view.php?id=266
A:AB$ ChooseColor | Cost$ T Sac<1/CARDNAME> | Defined$ You | SubAbility$ DBMana | SpellDescription$ Add three mana of any one color to your mana pool.
SVar:DBMana:DB$ Mana | Cost$ 0 | Produced$ ChosenColor | Amount$ 3
ArsenalNut wrote:I've got it working in terms adding the right color mana to the mana pool, but I need to work on the stack description.
The only question I have is it correct that the color choice occurs after resolution now? If not then this method won't work.
Never mind, it's a mana ability so it shouldn't have gone on the stack in the first place. The choose color ability line needs "Static$ True".But if you want to fix up AF_Mana to support ChosenColor too, you could add things like Sol Grail and Quirion Elves... Just throwing it out there.friarsol wrote:Why not the way Slapshot was suggesting? The AI needs some more information no matter where you add the code, might as well have it be in AF_Mana.
That's true. Chosen Color more fits the Sol Grail form (where the ChosenColor is saved) than the Birds of Paradise form.slapshot5 wrote:But if you want to fix up AF_Mana to support ChosenColor too, you could add things like Sol Grail and Quirion Elves... Just throwing it out there.friarsol wrote:Why not the way Slapshot was suggesting? The AI needs some more information no matter where you add the code, might as well have it be in AF_Mana.
-slapshot5
Initially, I thought we could take advantage of an existing AF but it won't work right for mana abilitites without more changes outside the AF's. It's cleaner to add it directly to AF_Mana. I've already got a basic version working by re-using most of the color choice code from AF_Choose.friarsol wrote:That's true. Chosen Color more fits the Sol Grail form (where the ChosenColor is saved) than the Birds of Paradise form.slapshot5 wrote:But if you want to fix up AF_Mana to support ChosenColor too, you could add things like Sol Grail and Quirion Elves... Just throwing it out there.friarsol wrote:Why not the way Slapshot was suggesting? The AI needs some more information no matter where you add the code, might as well have it be in AF_Mana.
-slapshot5
Would you be able to give me an example when this is done? It'd be greatly appreciated.friarsol wrote:I'll have this up sometime tonight hopefully. Maybe tomorrow at the latest.friarsol wrote:I'd rather just add a newcost than have incorrect functionality. It ismuch easier to create new costs than it used to be, but I can handle adding this cost soon if noone else is up for it
Look at Millikin. FriarSol checked in an updated version that uses the new mill cost. If you can't get the latest version, the mill cost syntax is "Mill<amount>".ZzzzSleep wrote:Would you be able to give me an example when this is done? It'd be greatly appreciated.friarsol wrote:I'll have this up sometime tonight hopefully. Maybe tomorrow at the latest.friarsol wrote:I'd rather just add a newcost than have incorrect functionality. It ismuch easier to create new costs than it used to be, but I can handle adding this cost soon if noone else is up for it
Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 3 U | Origin$ Library | Destination$ Exile | ChangeType$ Creature,Artifact,Enchantment,Sorcery,Instant | ChangeNum$ XFetch | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$TypeInYourLibrary.nonLand
End
First: ChangeType$ has to be "Card.nonLand" (your version forgets Planeswalkers, but allows Artifact Lands and Dryad Arbor).Iran wrote:I'm trying to script Selective Memory.
Looking in the script of the card Mana Severance I made this script.But I think the SVar Count$TypeInYourLibrary don´t work, because the value of it is Zero.
- Code: Select all
Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 1 U | Origin$ Library | Destination$ Exile | ChangeType$ Creature,Artifact,Enchantment,Sorcery,Instant | ChangeNum$ XFetch | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$TypeInYourLibrary.nonLand
End
Any suggestion to script correct this card?
I Test with "Card.nonLand" in ChangeType$ but it don't work, X is zero.Sloth wrote:First: ChangeType$ has to be "Card.nonLand" (your version forgets Planeswalkers, but allows Artifact Lands and Dryad Arbor).
Second: use "SVar:XFetch:Count$InYourLibrary". The number will be too high, but I'm pretty sure it won't matter since searching the library for specific (not any) cards is never mandatory.