User Tools

Site Tools


developer_center:trigger

Trigger

In order for you to understand the mechanism of operation of the trigger I will give an example of a story, In the process of reading the story, pay attention to the relationship between “events”, “conditions” and “actions”.

Story: Misra went to Bunny's house wanting to play together but Bunny wasn't at her house so Misra came home feeling disappointed.

Events: Misra went to Bunny's house wanting to play together.
Conditions: Bunny wasn't at home.
Actions: Misra comes home feeling disappointed.

If the conditions are not suitable then the Action will not occur, but if the conditions are suitable then the Action will occur according to the story.

The location of the trigger settings see the image below.

Three Major Modules Of The Trigger

Overview:

  1. A trigger has three core modules: event, condition, and action .
  2. Events, conditions, and actions are all set by the players themselves.
  3. The triggers are executed in order from left to right and top to bottom, just like the above-mentioned short story, so the sequence of each trigger is very important.

Trigger Event+
Simply put, an event is an event, an instant, that happens in the game. Using this event, you can make conditional judgments and actions, so it is also called event monitoring.

Trigger Conditions+
When an event is triggered, the “condition” will be executed immediately. The condition is the precursor of the action. Only when the condition is correct, the action will be executed.

Trigger Actions+
When the event is triggered, the set conditions are correct and the action will be executed.

Trigger Interface Explanation

Main Interface Function

The following lists the names of the main interface

  1. New Trigger: Creates a new trigger
  2. Check the current trigger: After checking, the current trigger will be executed.
  3. Trigger menu.
  4. New trigger group: Create a new trigger group, the trigger is included under the trigger group.
  5. Add event: add the corresponding event.
  6. Add condition: Add the corresponding condition.
  7. Add action: add the corresponding action.
  8. Open the debug information panel: to open the debug information panel.
  9. Debug switch: If it is off, the debug panel cannot be opened.
  10. Trigger switch: all triggers will not be executed after it is turned off.
  11. Instruction: you can enter by yourself, describe the trigger and other text.
  12. Trigger variable library: Create variables used in triggers.
  13. Map to play mode: switch to play mode, and the trigger will run at the same time.
  14. Trigger Group Menu: Same as Trigger Menu.
  15. Close trigger interface.

Trigger Menu and Trigger Group Menu

The Trigger Menu and Trigger Group Menu have almost the same function, in the trigger menu there is a move function which the trigger group menu doesn't have.


  1. Rename: To rename the trigger name and trigger group name.
  2. Rearrange: To change the order of positions triggers and trigger groups.
  3. Copy: To duplicate triggers and trigger groups.
  4. Move: To move a trigger to another set of triggers.
  5. Delete: To remove triggers and trigger groups.

Cases and Examples

Course

Tips

developer_center/trigger.txt · Last modified: 2023/08/03 06:46 by hyue