From RPTools Wiki
Jump to navigation Jump to search

createTable() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version
Creates an empty table, specifying its access levels and optional image.


createTable(tableName, visible, accessible)
createTable(tableName, visible, accessible, imageId)


  • tableName - A string containing the name of the Table. Warning: if a table with that name already exists it will be cleared.
  • visible - Whether or not the table can be seen by players in the Table Window, true(1) or false(0).
  • accessible - Whether or not the table can be used by players to lookup values, true(1) or false(0).
  • imageId - Optional and is the asset id of an image that will be used for the table in the Table Window. If an invalid or missing asset id is used, the table will display a red "X".



See Also