Artifact ID: | 41d74d5cccd83f8db920eb3080ac5a973e187825 |
---|---|
Page Name: | SQL tables |
Date: | 2018-06-02 05:22:16 |
Original User: | zzo38 |
Parent: | b8a28adc16f5bfd45991525254193f08cf18c48d (diff) |
Next | ea5b402f839fed18850b266952d05c4603deadb7 |
This document is a list of the available SQL tables and views that you can use in the customization of Free Hero Mesh. See also: SQL functions.
(Note: This is only a draft and is likely to change in future.)
An asterisk in the heading indicates a virtual table; you cannot define triggers on a virtual table.
CLASSES *
This table is read-only.
INVENTORY *
This table is read-only.
LEVELS *
MOVES *
OBJECTS *
This table is read-only in game mode; it can be written in edit mode.
PICTURES
CREATE TEMPORARY TABLE "PICTURES"("ID" INTEGER PRIMARY KEY, "NAME" TEXT, "OFFSET" INT);
A list of all of the pictures that are available; loaded from the .xclass file. Probably only the NAME column is useful to the user; it is the lump name without the .IMG suffix.
While it is possible to write to this table, there is probably no use to do so.
USERCACHEDATA
USERCACHEINDEX
VARIABLES
CREATE TEMPORARY TABLE "VARIABLES"("ID" INTEGER PRIMARY KEY, "NAME" TEXT);
List of all global and local variables. The ID is the class number left shifted by sixteen bits (the class number is zero for global variables), and then the low sixteen bits have the variable number. The name omits the @ or % prefix.