tableImage

From RPTools Wiki
Jump to navigation Jump to search

tableImage() Function

Gets the image asset value from the specified Table. If the row is not specified then the default roll for the Table is used. The row can be either a constant or a roll.

Usage

    [h: tableImage(tableName)]
    [h: tableImage(tableName, row)]
    [h: tableImage(tableName, row, size)]

Examples

Display a random image from table "tbl1" using default roll.
    <image src='[r: tableImage("tbl1")]'></image>

Display the first image from table "tbl1".

    <image src='[r: tableImage("tbl1", 1)]'></image>

Display one of the first 4 images resized to 40 pixels high from "tbl1" chosed randomly. >

    <image src='[r: tableImage("tbl1", "1d4", 40)]'></image>