MagicDuel

New mdscript function mds_is_ctc();

Announcement 1157 · · Alpha 9
New mdscript function mds_is_ctc();
This function allows you to check for creature transfer code (CTC) validity and also read more details about that creature. Available informations are age, date it was recruited, transfer count and value, tokens, custom name, vitaltiy, level, creature id, creature type (number), owner id, experience, battles won. To avoid CTC stealing, this function accepts only first 16 to 23 characters of an actual CTC. Any larger or smaller value than that (like for example the entire CTC) will return false as if its invalid. Do not enter full CTC codes in item scripts that require such a thing. Script editors should make clear that only these characters should be entered when requesting a CTC check from script. For a detailed list of variable names returned by this function you can use the debug() function. [Feel free to write documentation and sample usage in the MDScript section on the forum]