It is currently 18 Aug 2025, 15:57
   
Text Size

Why does copyCard copy the UniqueNumber?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Why does copyCard copy the UniqueNumber?

Postby 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?

Postby Braids » 09 Aug 2011, 20:06

friarsol wrote:Can we use UniqueNumber and Timestamp to determine Uniqueness of a card?
in what context? for Momentary Blink?
"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. ;)
User avatar
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?

Postby friarsol » 09 Aug 2011, 20:25

Braids wrote:
friarsol wrote:Can we use UniqueNumber and Timestamp to determine Uniqueness of a card?
in what context? for Momentary Blink?
If the worry is Unique Number growing too large during the game, accessing the Timestamp at the time of Targeting might resolve the issue.
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?

Postby 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

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 13 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 13 guests

Login Form