Difference between revisions of "TTAB"

From SimsWiki
Jump to: navigation, search
Line 6: Line 6:
  
 
==Introduction==
 
==Introduction==
[[Image:Example Pie Menu.JPG|frame|An example Pie Menu]]This is the resource you use to build the Pie Menus that allow interactions to be chosen in the game.
+
[[Image:Example Pie Menu.JPG|frame|left|An example Pie Menu]]This is the resource you use to build the Pie Menus that allow interactions to be chosen in the game.
 
<br clear="all"/>
 
<br clear="all"/>
  
 
==Editing Pie-Menus==
 
==Editing Pie-Menus==
[[Image:TTABInSimPE.JPG|frame|Editting the TTAB resource in SimPE]]
+
[[Image:TTABInSimPE.JPG|frame|left|Editting the TTAB resource in SimPE]]
 
<br clear="all"/>
 
<br clear="all"/>
  
Line 25: Line 25:
 
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]].
 
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]].
  
[[Image:TTAB FlagsInSimPE.JPG|frame|Different flags dependant on TTAB Format value]]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 [[Base Game Compatible Checklist|incompatible with the Base Game]].
+
[[Image:TTAB FlagsInSimPE.JPG|frame|left|Different flags dependant on TTAB Format value]]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 [[Base Game Compatible Checklist|incompatible with the Base Game]].
 
<br clear="all"/>
 
<br clear="all"/>
  

Revision as of 18:38, 1 December 2010

54544142
Short name: TTAB
Long name: Pie Menu Functions

Contents

Introduction

An example Pie Menu
This is the resource you use to build the Pie Menus that allow interactions to be chosen in the game.


Editing Pie-Menus

Editting the TTAB resource in SimPE


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 (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 dependant on TTAB Format value
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
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
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
nest

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 Value
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
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".

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox