TTAB

From SimsWiki
Revision as of 12:46, 7 February 2010 by MogHughson (Talk | contribs)

Jump to: navigation, search
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.

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
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox