Difference between revisions of "0x001C"
(→Overview: New info) |
m (Cleanup) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
Basically it runs trees by their name rather than their instance id. The range that it can call trees is in the stack object, global, and the semi-global(maybe the object itself, although that would seem pointless). This is a very interesting and useful function. It is the core of the phone plugin system, and is used to do alot of other things. | Basically it runs trees by their name rather than their instance id. The range that it can call trees is in the stack object, global, and the semi-global(maybe the object itself, although that would seem pointless). This is a very interesting and useful function. It is the core of the phone plugin system, and is used to do alot of other things. | ||
Line 51: | Line 49: | ||
push onto my stack treats it as if you are running that tree as a private function. This is generally used in the action tree of an interaction. | push onto my stack treats it as if you are running that tree as a private function. This is generally used in the action tree of an interaction. | ||
− | =See also= | + | ==See also== |
*[[Primitives]] | *[[Primitives]] | ||
*[[SimAntics]] | *[[SimAntics]] |
Revision as of 11:56, 14 August 2006
Basically it runs trees by their name rather than their instance id. The range that it can call trees is in the stack object, global, and the semi-global(maybe the object itself, although that would seem pointless). This is a very interesting and useful function. It is the core of the phone plugin system, and is used to do alot of other things.
Overview
dd dd qq uu nn xx AA aa aa BB bb bb CC cc cc uu
These are:
- d
- unused in the sims 2. In the sims 1, this would have been used to specify the string number(which was always strangely enough 303), however TS2 leaves them at 00 00
- q
- options (these describe what will happen when the bit is on (1))
- 1st and 2nd bits
- Appear to be unused
- 3rd bit
- Pass this bhav's parameters as options
- 4th bit
- Pass new data (see A, B and C below) as parameters
- 5th bit
- Do not check semiglobal trees
- 6th bit
- Do not check global trees
- 7th and 8th bits
- 00-private string
- 01-global string
- 10-semiglobal string
- 11-global string
- u
- appears to be completely unused
- n
- line id of string 12f(303) + 1
- x
- 0-run in my stack
- 1-run in stack object's stack
- 2-push onto my stack
- A (a)
- data owner for parameter 0 followed by 2 bytes for value
- B (b)
- data owner for parameter 1 followed by 2 bytes for value
- C (c)
- data owner for parameter 2 followed by 2 bytes for value
Use
run in my stack is generally used in check trees. It will return false if no such tree is within range, or if it runs the tree by name, and the tree itself returns false.
run in stack objects stack. This is used in object interactions when you want to run a tree in your stack object remotely.
push onto my stack treats it as if you are running that tree as a private function. This is generally used in the action tree of an interaction.
See also
This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/0x001C