Skip to content

rq.MapObject ​

An object on the current map, from rq.dungeon.objects().

Fields ​

NameTypeDescription
xintegerThe cell, east, as in rq.dungeon.grid.
zintegerThe cell, north.
kind"chest"|"red-chest"|"warp"|"achievement"|"trap"|"event"|"spring"|"escape"|"enemy"|"gold"|"exp"|"custom"|"other"What it is.
codeintegerThe game's object code (maptt).
numberintegerThe game's number on it (maptz): a chest's fixed item (with rq.loot.install in place, as Loot Preview puts it, 10000 + the item instance rolled for the chest when it was placed), a map event's number, a warp's direction.
rank (optional)integerThe game's third number (maptv): a chest's rank. nil on a custom object.
id (optional)stringA custom object's id; nil when no loaded mod placed it or registered its id.
look (optional)stringA custom object's look.
keep (optional)booleanA custom object comes back after each step.

Used by ​

rq.dungeon.objects