======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.\\ {{ :developer_center:20230709_082435.jpg?600 |}} =====Three Major Modules Of The Trigger===== **Overview:**\\ - A trigger has three core modules: event, condition, and action .\\ - Events, conditions, and actions are all set by the players themselves.\\ - 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 {{ :developer_center:20230708_225833.jpg?600 |}} -**New Trigger:** Creates a new trigger -**Check the current trigger:** After checking, the current trigger will be executed.\\ -**Trigger menu.**\\ -**New trigger group:** Create a new trigger group, the trigger is included under the trigger group.\\ -**Add event:** add the corresponding event.\\ -**Add condition:** Add the corresponding condition.\\ -**Add action:** add the corresponding action.\\ -**Open the debug information panel:** to open the debug information panel.\\ -**Debug switch:** If it is off, the debug panel cannot be opened.\\ -**Trigger switch:** all triggers will not be executed after it is turned off.\\ -**Instruction:** you can enter by yourself, describe the trigger and other text.\\ -**Trigger variable library:** Create variables used in triggers.\\ -**Map to play mode:** switch to play mode, and the trigger will run at the same time.\\ -**Trigger Group Menu:** Same as Trigger Menu.\\ -**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. {{:developer_center:20230708_221432.jpg?200|}} {{:developer_center:20230708_221515.jpg?200|}}\\ -**Rename:** To rename the trigger name and trigger group name. -**Rearrange:** To change the order of positions triggers and trigger groups. -**Copy:** To duplicate triggers and trigger groups. -**Move:** To move a trigger to another set of triggers. -**Delete:** To remove triggers and trigger groups. ===== Cases and Examples ===== [[developer_center:developer_editor:example_of_using_trigger:random_parkour|Example of using trigger:Random Parkour]] ===== Course ===== ===== Tips =====