setTableAccess: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setTableAccess |version=1.4.0.1 |description= Sets whether or not the specified table is accessible to players. May only be used by GM or a trusted macro...") |
No edit summary |
||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
setTableAccess(tableName, | setTableAccess(tableName, accessible) | ||
</source> | </source> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|tableName|A string containing the name of the Table.}} | {{param|tableName|A string containing the name of the Table.}} | ||
{{param| | {{param|accessible|Whether or not the table can be accessed by players in the Table Window, {{true}} or {{false}}.}} | ||
|examples= | |examples= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 10:40, 3 May 2016
setTableAccess() Function
• Introduced in version 1.4.0.1
Sets whether or not the specified table is accessible to players. May only be used by GM or a trusted macro.
Usage
setTableAccess(tableName, accessible)
Parameters
tableName
- A string containing the name of the Table.accessible
- Whether or not the table can be accessed by players in the Table Window,true
(1
) orfalse
(0
).
Examples
[h:setTableAccess("randomMonsters", 0)]