UseReference

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Note: The article name was chosen, because the real name of this command - ".", a single dot - is not useable in Mediawiki.

Syntax:

ObjectID.ObjectFunction [Arguments ...]

The "." command sets the preceding ObjectID as the current reference for the next function only. ObjectID can be both a reference and a reference variable.

Notes[edit | edit source]

As strange as it may seem in comparison to other commands: In the compiled script this is a real command, using the opcode 0x001C.
Expressions (for example, QuestID.QuestVariable) don't use this command. Internally, such an expression is just a compound of (ObjectID)(Variablenumber). For example, the line "MageConvSystem.lecturevar" from the ArcaneUScholarScript script translates to the hexcode "72 04 00 73 0F 00" ("MageConvSystem" being the fourth reference used in the script, and "lecturevar" being declared as the 15th variable of its script).