%globalDebug()

Aliases%globalDebug( )
Parameters[ integer @debugLevel ]

    Immortals can set a debug level via the debug command to monitor various
things about the game. By default (no parameter given) this function will
return the currently set debug level. If the @debugLevel parameter is set
then this function will return 1 if the parameter matches the current
debug level; otherwise 0 will be returned.

Example:

if( %globalDebug( 11 ) ) // player dreams
{
%serverLog( @dreamer->realName " has had a very bad dream >:)" )
}
endif

Example (alternative):

if( %globalDebug() == 11 ) // player dreams
{
%serverLog( @dreamer->realName " has had a very bad dream >:)" )
}
endif