API:LuaFunc GetCardMaxCount

The MAXIMUM number of cards available has in the specific compendium list.
Input
 LuaFunc_GetCardMaxCount(number)
number
 0-15 While 16 numbers are valid it appears to correspond with 
 the 10 categories in the compendium drop down list.
 0 = ?
 1 = ?
 2 = ?
 3 = ?
 4 = Beasts (264)
 5 = Undead ( 62)
 6 = Humanoid (317)
 7 = Magical Creatures ( 46)
 8 = Elemental ( 22)
 9 = Golems ( 30)
 10= Fiends ( 20)
 11= Dragon ( 2)
 12= Demon ( 5)
 13= god ( 1)
 14= ?
 15= ?
 16= nil ...
Example
 /script u=0
 /script CARD =LuaFunc_GetCardMaxCount(u);if (CARD == nil) then CARD = "NIL";end ;SendChatMessage(CARD.." "..u,"SAY" ); u=u+1;
Category:API Lua Function