Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by Sloth » 12 Sep 2011, 20:13
I meant this:Iran wrote: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.
- | Open
- Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 1 U | Origin$ Library | Destination$ Exile | ChangeType$ Card.nonLand | ChangeNum$ XFetch | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$InYourLibrary
End
Did you try it?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by Iran » 12 Sep 2011, 20:21
It work, the only problem is X shows the total number of cards in my library, not the number of nonLand cards. (when the spell is in stack)Sloth wrote:I meant this:Did you try it?
- Code: Select all
Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 3 U | Origin$ Library | Destination$ Exile | ChangeType$ Card.nonLand | ChangeNum$ XFetch | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$InYourLibrary
End
Thanks
Re: Card Development Questions
by friarsol » 12 Sep 2011, 20:35
The card shouldn't be revealing how many nonLand cards you have while it's on the Stack.Iran wrote:It work, the only problem is X shows the total number of cards in my library, not the number of nonLand cards. (when the spell is in stack)
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by Iran » 13 Sep 2011, 03:37
I think this card script is correct then.
- Code: Select all
Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 3 U | Origin$ Library | Destination$ Exile | ChangeType$ Card.nonLand | ChangeNum$ XFetch | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$InYourLibrary
SVar:Picture:http://www.wizards.com/global/images/magic/general/selective_memory.jpg
SetInfo:WWK|Rare|http://magiccards.info/scans/en/wwk/37.jpg
End
Last edited by Iran on 16 Sep 2011, 23:43, edited 2 times in total.
Re: Card Development Questions
by Iran » 13 Sep 2011, 05:03
Exists in forge one Trigger that triggers when a player search in your library?
Last edited by Iran on 13 Sep 2011, 18:11, edited 2 times in total.
Re: Card Development Questions
by slapshot5 » 13 Sep 2011, 05:14
Not specifically. Unless ChangesZone works with Origin$ Library | Destination$ Any | ChangeValid$ Card.YouCtrl (or whatever variation of this it wants...).Iran wrote:Exists in forge one Trigger that triggers when a player search in your library?
I'm not sure all the assumptions that would need to be made are valid.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Development Questions
by Hellfish » 13 Sep 2011, 12:41
No, there is currently no such trigger.The suggested ChangesZone trigger would trigger on drawing a card or cascading as well.I can look into creating a new trigger though. 

So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Development Questions
by Iran » 13 Sep 2011, 18:18
I see several keywords that cover several aspects with: You can't lose the game, Oponent can't win the game, CARDNAME can't attack, etc...
I suggest to include more 3 keywords : Players can't search libraries, Players can't draw, Players can't gain life.
Is possible to be done?
Thanks
I suggest to include more 3 keywords : Players can't search libraries, Players can't draw, Players can't gain life.
Is possible to be done?
Thanks
Re: Card Development Questions
by Hellfish » 14 Sep 2011, 08:59
Actually, regarding triggers for searching libraries... What cards would use this? I can't seem to find any on gatherer. (Granted, I have missed obvious cards before)
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Development Questions
by Iran » 14 Sep 2011, 12:53
Archive Trap,Hellfish wrote:Actually, regarding triggers for searching libraries... What cards would use this? I can't seem to find any on gatherer. (Granted, I have missed obvious cards before)
(Maybe) Veteran Explorer, Boldwyr Heavyweights, Panglacial Wurm.
Re: Card Development Questions
by Sloth » 14 Sep 2011, 12:59
None of these are triggered abilities triggering on searching a library.Iran wrote:Archive Trap,Hellfish wrote:Actually, regarding triggers for searching libraries... What cards would use this? I can't seem to find any on gatherer. (Granted, I have missed obvious cards before)
(Maybe) Veteran Explorer, Boldwyr Heavyweights, Panglacial Wurm.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by Iran » 14 Sep 2011, 18:15
Is possible in forge to me know if i will lose the game, for any reason (Lich's Mirror)?
Is possible in forge make my opponent copy a spell that i cast (Hive Mind)?
Thanks
Is possible in forge make my opponent copy a spell that i cast (Hive Mind)?
Thanks
Last edited by Iran on 16 Sep 2011, 00:31, edited 3 times in total.
Re: Card Development Questions
by Iran » 15 Sep 2011, 23:24
Hellfish wrote:Actually, regarding triggers for searching libraries... What cards would use this? I can't seem to find any on gatherer. (Granted, I have missed obvious cards before)
But you need to know if the player search in na librarie, to can script these cards.Sloth wrote:None of these are triggered abilities triggering on searching a library.
i think it's true for the Archive Trap, the others I am no sure.
Re: Card Development Questions
by friarsol » 16 Sep 2011, 01:56
Knowing if a search happened is different than a trigger when a search happened.Iran wrote:But you need to know if the player search in na librarie, to can script these cards.
i think it's true for the Archive Trap, the others I am no sure.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by Iran » 16 Sep 2011, 19:58
Is possible with the AF_CopySpell make the opponent copy a spell that I Cast? (Trying to script Hive Mind)
Exists any parameter to do this?
Exists one Trigger that triggers when a I would lose the game? (Trying to script Lich's Mirror)
Thanks
Exists any parameter to do this?
Exists one Trigger that triggers when a I would lose the game? (Trying to script Lich's Mirror)
Thanks
Who is online
Users browsing this forum: No registered users and 18 guests