Hasquota()

From TinyMUX
Revision as of 02:12, 29 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions FUNCTION: {{Function|hasquota(<object>, <quota>[, <type>])}} Returns true if object <object> has enough quota to build anything requiring <quota> quota...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


FUNCTION: hasquota(<object>, <quota>[, <type>])

Returns true if object <object> has enough quota to build anything requiring <quota> quota. If <type> is given, the function returns true if there is enough quota to build a <type> object requiring <quota> quota.

Currently, MUX doesn't support typed quotas, but if it did, a type-specific query may return true while a generic query would return false.

Example

> say hasquota(me, 100)

You say, "0"


> say hasquota(me, 1)

You say, "1"

Related Topics

@quota