Books Item Definition
Literature item system for the Lilia framework.
name
Purpose
Sets the display name of the book item
When Called
During item definition
Example Usage
desc
Purpose
Sets the description of the book item
When Called
During item definition
Example Usage
category
Purpose
Sets the category for the book item
When Called
During item definition
Example Usage
model
Purpose
Sets the 3D model for the book item
When Called
During item definition
Example Usage
contents
Purpose
Sets the HTML content to display when reading the book
When Called
During item definition (used in Read function)
Example Usage
Example Item:
Example Usage
-- Basic item identification
ITEM.name = "Medical Journal" -- Display name shown to players
ITEM.desc = "A medical journal containing important information" -- Description text
ITEM.category = "itemCatLiterature" -- Category for inventory sorting
ITEM.model = "models/props_lab/bindergraylabel01b.mdl" -- 3D model for the book
ITEM.contents = "<h1>Chapter 1: Basic Medicine</h1><p>This journal contains essential medical knowledge...</p>" -- HTML content displayed when reading