setTableVisible: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
Sets whether or not the specified table is visible to players. | Sets whether or not the specified table is visible to players. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setTableVisible(tableName, visible) | setTableVisible(tableName, visible) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|tableName|A string containing the name of the Table.}} | {{param|tableName|A string containing the name of the Table.}} | ||
{{param|visible|Whether or not the table can be seen by players in the Table Window, {{true}} or {{false}}.}} | {{param|visible|Whether or not the table can be seen by players in the Table Window, {{true}} or {{false}}.}} | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h:setTableVisible("randomMonsters", 0)] | [h:setTableVisible("randomMonsters", 0)] | ||
</ | </syntaxhighlight> | ||
|also= | |also= | ||
{{func|getTableVisible}} {{func|getTableAccess}} {{func|setTableAccess}} | {{func|getTableVisible}} {{func|getTableAccess}} {{func|setTableAccess}} | ||
}} | }} | ||
[[Category:Table Function]] | [[Category:Table Function]] |
Latest revision as of 23:59, 14 March 2023
setTableVisible() 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 visible to players.
Usage
setTableVisible(tableName, visible)
Parameters
tableName
- A string containing the name of the Table.visible
- Whether or not the table can be seen by players in the Table Window,true
(1
) orfalse
(0
).
Examples
[h:setTableVisible("randomMonsters", 0)]