8
1058 Chapter 14: Character Studio
of behaviors used in the cognitive controller, but
you can work around that by using transitions.
Note: Crowd doesn’t let you use multiple cognitive
controllers with a delegate. You can assign them,
but when you solve, the software notifies you that it
will use only the first assigned cognitive controller.
You can find a tutorial on using the cognitive
controller in the
character studio Tutorials
,inthe
tutorial lesson Working with Crowd Animation >
Applying Logic to Crowd Behavior.
See also
State Dialog (page 2–1059)
State Transition Dialog (page 2–1060)
Inter face
Cr e at e S tat e —Lets you create new states in the
diagram. Click this button, and then click in the
state diagram area to add states. A state appears as
a rectangular box containing the name of the state.
The first state you add is, by default, the first state
in the controller that executes when the simulation
is run. This is indicated by its red color; states
you add subsequently are colored blue. To set a
different state to execute first, use the Set Start
State function.
You specify a state’s name and behaviors by editing
the state. To edit a state, right-click it. This opens
the
State dialog (page 2–1059)
.
Cr e at e Tr an s iti o n—Lets you link states with
transitions. Click this button, and then drag
between two states to create the t r ansition, star t ing
w ith the earlier state. The tr ansition appears as
a black arrow pointing from the first state to the
second. Alternatively, if you click a state with
the Create Transition tool active, you create a
transition that loops back to the state itself.
Right-click a transition to specify its characteristics
and conditions by editing the transition. This
opens the
State Tr ansition dialog (page 2–1060)
.
Set Start State—Normally the state that
executes first in a cognitive con troller is the one
that was added first. Use this tool to choose a
different state to execute first. The start state is red;
the rest are blue.
Typically you would use this w hen you have a
circular sequence of states, and you want to change
which state executes initially.
Move State—Lets you move states around in
the window by dragging them.
Select State/Tr ansition—Lets you select states
and transitions for subsequent deletion. Selected
states have w h ite outlines, and selec ted transition
lines are white.
You can select multiple states by dragging a box
around them. You can select multiple states and
transitions by holding the CTRL key as you click.
Delete State/Transition—Lets you delete one
or more states or transitions. First select any
combination of states and transitions to delete,
and then click this button.
(Nam e)—Shows the name of the current state
diagram. To display and/or edit another, choose
it from the list.