Hi everyone!
Just changed the characters' behaviours to support exclusive action execution (only one character executing certain behaviour at a time).
This definition is optional and activated by setting argument ARG_SIMULTANEOUS_STR = true in the behaviour creation.
Please see SayTo behaviour for an example of how to use the exclusive action execution.
Showing posts with label behaviour. Show all posts
Showing posts with label behaviour. Show all posts
Thursday, 9 October 2008
Saturday, 20 September 2008
Sit on chair / Get up Behaviours
Added new behaviors for sitting on chair /getting up. Character now has a property telling whether it is seated in some place.
Changed body actions to have an animation for the character to perform when it's standing and another one when it is sitting. Actions themselves where not changed.
Changed move actions so that when the character is seated, it first gets up and then moves.
The syntax for these new behaviors is:
behaviour: sit on a given chair type available in the scenario
name: "sit-on-chair"
parameters:
Changed body actions to have an animation for the character to perform when it's standing and another one when it is sitting. Actions themselves where not changed.
Changed move actions so that when the character is seated, it first gets up and then moves.
The syntax for these new behaviors is:
behaviour: sit on a given chair type available in the scenario
name: "sit-on-chair"
parameters:
- "target" - the tag representing the type of chair available in the set where to sit the character (e.g.: "arm-chair", "simple-chair")
action: get up from the chair where the character is seated
name: "get-up"
parameters: none
Tuesday, 2 September 2008
Pick / Drop Item Behaviours
Added new behaviours at Orient ION level that allow a character of picking and later droping items in certain locations of the set. Character animation is adjusted to item pick/drop site.
Added a list of picked items to the characters which can be displayed in the user interface so that the user can choose to perform a certain action over the picked items.
Some other behaviours like give-object or eat can later be changed to be used in conjunction with these new ones.
The syntax for these new character behaviors is:
bahaviour: pick an item from the current scenario
name: "pick-item"
parameters:
Added a list of picked items to the characters which can be displayed in the user interface so that the user can choose to perform a certain action over the picked items.
Some other behaviours like give-object or eat can later be changed to be used in conjunction with these new ones.
The syntax for these new character behaviors is:
bahaviour: pick an item from the current scenario
name: "pick-item"
parameters:
- "item" - the name of the item to be picked
behaviour: drop or discard an item in some location
name: "drop-item"
parameters:
- "item" - the name of the item to be droped
- "target" - optional, the name of a set, character or other item where to drop this item, otherwise the item is just discard in the floor (eg: "table") Note: must contain a waypoint tagged "drop-spot".
- "spot" - optional, the tag of the item-spot where to place the item (eg: "table-drop-spot"), otherwise in any item-spot.
Notes: you can check DemoFormApp to see an example of these behaviors.
Subscribe to:
Posts (Atom)