Difference between revisions of "TTAB"
(→Settings - Choosing the correct flags) |
(→Settings - Miscellaneous) |
||
Line 57: | Line 57: | ||
!Name!!Description | !Name!!Description | ||
|- | |- | ||
− | |Attenuation Code|| | + | |Attenuation Code||Attenuation reduces the attractiveness of an interaction over a distance. The higher the attenuation the closer the Sim will have to be before he feels like using the object. |
|- | |- | ||
− | |Attenuation Value|| | + | |Attenuation Value||This value in this field is taken into account when you have selected "Custom" for the Attenuation code |
|- | |- | ||
|Autonomy||This controls whether the currently selected interaction is autonomous or not. If this field is set to 0x00000064, it will not be autonomous. Worth noting here that [[Sims 2 Param|Param]] 0 into a [[Guardian BHAV]] indicates whether the iteraction is being selected autonomously or not. Set to value of 1 if it is autonomous. | |Autonomy||This controls whether the currently selected interaction is autonomous or not. If this field is set to 0x00000064, it will not be autonomous. Worth noting here that [[Sims 2 Param|Param]] 0 into a [[Guardian BHAV]] indicates whether the iteraction is being selected autonomously or not. Set to value of 1 if it is autonomous. | ||
|- | |- | ||
− | |Join Index|| | + | |Join Index||The number of the pie menu line that will run if another Sim tries to join the Sim running current interaction. "Joinable" needs to be ticked in Flags for this value to be used. |
|- | |- | ||
|UI Display Type|| | |UI Display Type|| |
Revision as of 02:37, 28 August 2012
54544142 | |
---|---|
Short name: | TTAB |
Long name: | Pie Menu Functions |
Contents |
Introduction
This is the resource you use to build the Pie Menus that allow interactions to be chosen in the game. These interactions can either be chosen by users clicking on the Pie Menu, or from other BHAVs using the Push Interaction (0x000D) OpCode.
Editing Pie-Menus
Settings - Choosing a Pie Menu String and BHAV
The top right portion of the Settings tab allows you to choose the string to be displayed on the Pie Menu from the Pie Menu Strings (TTAs) resource by clicking on the down arrow on the combo-box.
It also allows you to choose the behaviour (Action BHAV) to run when the Pie Menu function is chosen, and to provide a Guardian BHAV which determines if the Pie Menu is displayed or not - usually this is quite a simple BHAV that just does a few tests and returns True or False. If you already have both the strings and BHAVs done, then choosing them in here is nice and simple. There is a standard naming convention that these BHAVs are named "Interaction - <verb>" and "Interaction - <verb> - TEST" for the Action and Guardian respectively.
The number of the pie-menu shown in the dialog is used by the Push Interaction which allows these interactions to be run from BHAV code as well as being user selectable.
There is a Tutorial: Making Your First Custom BHAV that takes the reader through adding a new pie-menu.
Settings - Choosing the correct flags
The two sets of flags are, for the most part, obvious in use. You select the age group of Sim, or type of Pet allowed to run the BHAV. This acts rather like a first-stage Guardian BHAV. You can also choose 'debug menu' which indicates that this interaction is only available from the Debug Menu.
Different flags are shown for you to pick from dependant on the Format value. The screenshot on the left of the picture shows the flags when Format is < 0x00000054, with those that differ highlighted. The only available flag in Flags2 is "babies". When Format is > 0x00000054, the screenshot on the right shows that various new pet-related flags become available, and some of the original flags change meaning. Using higher values in the Format will make your pie menu incompatible with the Base Game.
The less obvious flags are shown in the table below.
Flag name | Description |
---|---|
joinable | This means while one Sim is doing this interaction, another Sim can join them. |
immediately | Use this if you want the action associated with the menu item to be run immediately rather than put in your Sim's queue.
Make sure this is not checked if your BHAV displays a Dialog. Otherwise you will get the "Check tree primitive blocked completion" error. |
consecutive | The Sim can choose to do this several times in a row. |
demo child | |
Debug Menu | Items can be marked as being on the debug menu. This means they only show up if two other things are done. Firstly in the cheats window use "boolProp testingCheatsEnabled true" and then press <Shift> when clicking on an object to bring up its Pie Menu. Then you will see the debug items instead of the normal items. |
auto first | |
allow nested | Either another interaction can be nested within this, or it can be nested |
nest | Either this interaction should be nested, or it can be nested |
Settings - Miscellaneous
The rest of the Settings tab contains a mixture of other fields that we will cover in this section.
Name | Description |
---|---|
Attenuation Code | Attenuation reduces the attractiveness of an interaction over a distance. The higher the attenuation the closer the Sim will have to be before he feels like using the object. |
Attenuation Value | This value in this field is taken into account when you have selected "Custom" for the Attenuation code |
Autonomy | This controls whether the currently selected interaction is autonomous or not. If this field is set to 0x00000064, it will not be autonomous. Worth noting here that Param 0 into a Guardian BHAV indicates whether the iteraction is being selected autonomously or not. Set to value of 1 if it is autonomous. |
Join Index | The number of the pie menu line that will run if another Sim tries to join the Sim running current interaction. "Joinable" needs to be ticked in Flags for this value to be used. |
UI Display Type | |
Facial Animation ID | |
Object Type | |
Model Table ID | |
Memory Iterative Multiplier |
Motives
The motive tab(s) allows the tuning of which motives being low will cause a Sim to autonomously select an interaction (if Autonomy is configured - see above). Depending on the value of Format, there may be one tab named "Motives" (Format < 0x00000054) or two tabs named "Human Motives" and "Animal Motives".