Behaviors 5: Custom Creation!
Now that you know how to create behaviors and assign it to an individual creature, or to a group - how about creating your own group? In this task you'll have the chance to introduce a new creature to the game, or to create a group that behave according to your own rules. This group can be permanently added to the game later, so do your best!
Requirements
The student must fork the module BehaviorsBasic, clone the fork under Terasology/modules, and create a new group file. The group described in the file must use:
1- A behavior created by the student; 2 - Either an existing creature or one created by the student.
The group file should then assign the behavior (1) to all creatures of the same type (2). The student must also modify the existing InitialBehaviorSystem
so that when the player executes the command assignGroupBehavior
in the in-game console, the creatures belonging to the newly created group are assigned the appropriate behavior.
Acceptance Criteria
The student must submit a PR compliant to the task requirements. The submission will be verified according to the following script:
- Two creatures belonging to the same group will be spawned using the in-game console;
- The command
assignGroupBehavior
will be executed. - All creatures belonging to the newly created group must be assigned the behavior previously created by the student.