From RPTools Wiki
Jump to navigation Jump to search

addTableEntry() Function

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

Introduced in version
Adds a new row to the specified table. Note: adding a row to a table will not automatically change the table row value, so this should be updated to avoid possible errors (See setTableRoll() function).




  • tableName - A string containing the name of the Table.
  • rangeStart - An integer indicating the lowest value that will return this row.
  • rangeEnd - An integer indicating the highest value that will return this row.
  • 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.


[r:addTableEntry("test",5,5,"alf", getTokenImage())]

See Also