It is currently 06 Jun 2025, 14:56
   
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 Sloth » 12 Sep 2011, 20:13

Iran wrote:
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.
I Test with "Card.nonLand" in ChangeType$ but it don't work, X is zero.
I meant this:
| 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?
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 Iran » 12 Sep 2011, 20:21

Sloth wrote:I meant this:

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
Did you try it?

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)

Thanks
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby friarsol » 12 Sep 2011, 20:35

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)
The card shouldn't be revealing how many nonLand cards you have while it's on the Stack.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby 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
Edit: Someone, please add this card to SVN.
Last edited by Iran on 16 Sep 2011, 23:43, edited 2 times in total.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby 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.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby slapshot5 » 13 Sep 2011, 05:14

Iran wrote:Exists in forge one Trigger that triggers when a player search in your library?
Not specifically. Unless ChangesZone works with Origin$ Library | Destination$ Any | ChangeValid$ Card.YouCtrl (or whatever variation of this it wants...).

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

Postby 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
User avatar
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

Postby 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
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby 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
User avatar
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

Postby Iran » 14 Sep 2011, 12:53

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)
Archive Trap,
(Maybe) Veteran Explorer, Boldwyr Heavyweights, Panglacial Wurm.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby Sloth » 14 Sep 2011, 12:59

Iran wrote:
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)
Archive Trap,
(Maybe) Veteran Explorer, Boldwyr Heavyweights, Panglacial Wurm.
None of these are triggered abilities triggering on searching a library.
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 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
Last edited by Iran on 16 Sep 2011, 00:31, edited 3 times in total.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby 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)
Sloth wrote:None of these are triggered abilities triggering on searching a library.
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.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby friarsol » 16 Sep 2011, 01:56

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.
Knowing if a search happened is different than a trigger when a search happened.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby 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
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 18 guests


Who is online

In total there are 18 users online :: 0 registered, 0 hidden and 18 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 18 guests

Login Form