Difference between revisions of "BHAV"
From SimsWiki
m (Added categories) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Resource tgi |
+ | |hex code = [[42484156]] | ||
+ | |short = BHAV | ||
+ | |long = Behaviour Function | ||
+ | }} | ||
− | + | ==Introduction== | |
− | + | This resource is the one where the programming of an object takes place. The BHAV is the code that runs to control an object. The programming language of a BHAV is known as [[SimAntics]]. Each node in a BHAV has an [[OpCode]] and a number of operands. These nodes can be [[Node linkages|linked together]] so that depending on the outcome of an OpCode, a certain path can be taken through the BHAV. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ... | + | |
− | + | ==Declaring your stack variables== | |
− | 2 | + | [[Image:StackVariableDeclaration.jpg|frame|Fields for declaring stack variables]]If you use any [[Sims 2 Param|parameters]] into your BHAV, you must declare how many of them in the "Arg Count" field. If you want to make these arguments more useful, you can give them labels ([[TPRP]]). If you use any [[Sims 2 Local|local]] variables you must declare how many of them in the "Local Var Count". |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | <br clear="all"/> | ||
− | + | [[Category:Sims 2 Modding]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [[Category:Modding]] | + | |
[[Category:InternalFormats]] | [[Category:InternalFormats]] | ||
[[Category:FormatsByName]] | [[Category:FormatsByName]] |
Latest revision as of 18:09, 17 September 2012
42484156 | |
---|---|
Short name: | BHAV |
Long name: | Behaviour Function |
[edit] Introduction
This resource is the one where the programming of an object takes place. The BHAV is the code that runs to control an object. The programming language of a BHAV is known as SimAntics. Each node in a BHAV has an OpCode and a number of operands. These nodes can be linked together so that depending on the outcome of an OpCode, a certain path can be taken through the BHAV.
[edit] Declaring your stack variables
If you use any parameters into your BHAV, you must declare how many of them in the "Arg Count" field. If you want to make these arguments more useful, you can give them labels (TPRP). If you use any local variables you must declare how many of them in the "Local Var Count".