From RPTools Wiki
Jump to navigation Jump to search

setTableEntry() Function

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

Introduced in version
Sets the result for a specified roll value. Returns true(1) if update successful and false(0) if not.


setTableEntry(tableName, roll, result)
setTableEntry(tableName, roll, result, imageId)


  • tableName - A string containing the name of the Table.
  • roll - A value to select the desired table entry.
  • result - A string containing the result returned by the table() function.
  • imageId - Optional and is the asset id of an image that will be returned by the tableImage() function.

See Also