setTableAccess: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page SetTableAccess to setTableAccess: Converting page titles to lowercase) |
No edit summary |
||
Line 6: | Line 6: | ||
Sets whether or not the specified table is accessible to players. | Sets whether or not the specified table is accessible to players. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setTableAccess(tableName, accessible) | setTableAccess(tableName, accessible) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|tableName|A string containing the name of the Table.}} | {{param|tableName|A string containing the name of the Table.}} | ||
{{param|accessible|Whether or not the table can be accessed by players in the Table Window, {{true}} or {{false}}.}} | {{param|accessible|Whether or not the table can be accessed by players in the Table Window, {{true}} or {{false}}.}} | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h:setTableAccess("randomMonsters", 0)] | [h:setTableAccess("randomMonsters", 0)] | ||
</ | </syntaxhighlight> | ||
|also= | |also= | ||
{{func|getTableAccess}} {{func|getTableVisible}} {{func|setTableVisible}} | {{func|getTableAccess}} {{func|getTableVisible}} {{func|setTableVisible}} | ||
}} | }} | ||
[[Category:Table Function]] | [[Category:Table Function]] |
Latest revision as of 20:33, 14 March 2023
setTableAccess() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.4.0.1
Sets whether or not the specified table is accessible to players.
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)]