btech.xcode_value

Reads a script-visible native field from a live special object.

Function

Synopsis

btech.xcode_value( object, name )

Arguments

number object
The special-object dbref.
string name
The field name.

Returns

string result
The handler’s serialized text result.

Examples

local btech = require("btech")
local unit_id = btech.xcode_value(unit_dbref, "id")

Notes

This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.

See Also