Why does copyCard copy the UniqueNumber?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
19 posts
• Page 2 of 2 • 1, 2
Re: Why does copyCard copy the UniqueNumber?
by friarsol » 09 Aug 2011, 18:58
Can we use UniqueNumber and Timestamp to determine Uniqueness of a card?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Why does copyCard copy the UniqueNumber?
by Braids » 09 Aug 2011, 20:06
in what context? for Momentary Blink?friarsol wrote:Can we use UniqueNumber and Timestamp to determine Uniqueness of a card?
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Why does copyCard copy the UniqueNumber?
by friarsol » 09 Aug 2011, 20:25
If the worry is Unique Number growing too large during the game, accessing the Timestamp at the time of Targeting might resolve the issue.Braids wrote:in what context? for Momentary Blink?friarsol wrote:Can we use UniqueNumber and Timestamp to determine Uniqueness of a card?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Why does copyCard copy the UniqueNumber?
by mtgrares » 12 Aug 2011, 15:57
Below is a private message from ubeefx, creator of Magarena which separates a card from its ID.
In Magarena a card has a simple id, like card number in library.
A permanent has a generated unique id and a reference to the card it represents.
So card and permanent id are two separate things.
To check if a permanent is still valid, like for targeting, the controller's permanent set is checked if it stills contains that permanent, using instance or id.
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
19 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 19 guests