Difference between revisions of "UseReference"
Jump to navigation
Jump to search
imported>Khadir |
imported>Khadir (Trying to clear up the variable issue) |
||
Line 8: | Line 8: | ||
==Notes== | ==Notes== | ||
:As strange as it may seem in comparison to other commands: In the compiled script this is a real command, using the opcode <tt>0x001C</tt>. | :As strange as it may seem in comparison to other commands: In the compiled script this is a real command, using the opcode <tt>0x001C</tt>. | ||
: 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 <tt>ArcaneUScholarScript</tt> 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). | |||
[[Category:Commands|.]] | [[Category:Commands|.]] |
Revision as of 13:53, 29 June 2006
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
- 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).