tableImage

From RPTools Wiki
Revision as of 10:50, 14 December 2008 by Craig (talk | contribs) (New page: ==Function tableImage== Gets the image asset value from the specified Table. If the row is not specified then the default Macros:roll for the Table is used. The row can be ei...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function tableImage

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>