OpCode

From SimsWiki
Revision as of 22:17, 27 February 2005 by Delphy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/OpCode
==OpCode==

Each instruction in a BHAV begins with a 2 byte Operation Code (OpCode, also known as a Function Call). These codes fall into one of four general categories, as follows:

""OpCode"" 0x0000 - 0x00FF are Primitives (also known as 'canned', 'inline', or 'built-in' functions) ""OpCode"" 0x0100 - 0x0FFF are Globals (Global functions can be used by any object in the game) ""OpCode"" 0x1000 - 0x1FFF are Locals (Locals are specific to this object) ""OpCode"" 0x2000 - 0x2FFF are SemiGlobals (Semi-Globals are used by a group of related objects)

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox