Skip to content

count_magic

Prototypeint count_magic(string script[9])

count_magic() counts the number of items with the script script in the magic inventory. Interestingly, the specified script need not actually exist: it only has to be the same as the corresponding add_magic() command's script-name argument.

For more information, see Items