ID:158472
 
This is my cards so far. (CAUTION MAY BE LONG)
obj
Cards
All_stars
Alexei
Power = 2
Damage = 2
Allision
Power = 4
Damage = 1
Amelia
Power = 3
Damage = 1
Ashley
Power = 3
Damage = 1
Asporov
Power = 2
Damage = 1
Bhudd
Power = 3
Damage = 1
Dan
Power = 2
Damage = 2
El_Gringo
Power = 4
Damage = 1
Eyrton
Power = 4
Damage = 2
Flo
Power = 2
Damage = 1
Frank
Power = 2
Damage = 1

... Well you get the point.
How could i make a Card drawing system with these kind of cards?
http://www.byond.com/members/ GhostAnime?command=view_post&post=55338

In my pokemon card system, I did not have any instance of cards saved with the /mob, just the card series, the name of the card and the # of cards. The only card instances that would appear is when battling, where it is created when needed.

In my Battle datum, this is how the skeleton worked:
Battle
New(mob/m1, mob/m2) // Called when you do new/Battle(M1, M2) where M = mob ref

Check & Set all battle attributes (ex: the opponent, creating cards, etc)
Assign who is player "1" and "2" (for alternating turns)
Infinite loop here (as long as GameOver is false)
Draw card
Do other stuff
End turn
player_turn = (player_turn%2)+1 (switches players turn)
Award stuff



Edit:

Specifically relating to drawing cards, this is what happened in my system (of course it can differ in yours):
In the Check/Set section, a /list of cards was created:
var/deck = list(list(Cards of player 0), list(Cards of player 1))

Deck reference -> deck[player_turn+1]


Then in the Draw card stage:
var
list/D = Deck reference of player
charge of the turn
if(D.len == 0)
GameOver(loser = player_turn)

var/Card/C = D[1] // Picks the first card...
D -= C
hand[player_turn+1] += C //Adds the card

switch(D.len)
if(0)
/Deck[player ref].icon_state = "empty"
if(1 to 10)
IS = 1/6 empty
...etc...



Point of the above: to make a drawing system, first you should make your card system. Your drawing system will fall in place when making one.
In response to GhostAnime
I'm doing all the basics stuff before the card system like shops, the cards and etc.