-
Notifications
You must be signed in to change notification settings - Fork 94
npc_event_handler_action
Jan Boon edited this page Mar 11, 2023
·
27 revisions
title: NPC Event Handler Action description: published: true date: 2023-03-11T14:18:23.584Z tags: editor: markdown dateCreated: 2023-03-11T13:59:37.577Z
- name: Name of the action. By default, the same name as the action is used.
-
action: One of the following actions:
- Begin State (begin_state): Switch to another state
- Code (code): Execute a block of AI script code
- Condition If (condition_if): Performs a conditional test on group variables and executes a sub-action if the condition is met
- Condition If Else (condition_if_else): Performs a conditional test on a group variable and executes one of two sub-actions
- Despawn (despawn): Despawn the NPC
- Emot (emot): Play an emot to the NPC
- Modify Variable (modify_variable): Modify a variable value
- Multi Actions (multi_actions): Execute multiple actions in sequence
- Null Action (null_action): Do nothing
- Outpost Giver Ready (outpost_giver_ready): Set the NPC as ready to give an outpost
- Punctual State (punctual_state): Execute a punctual state action
- Punctual State End (punctual_state_end): End a punctual state
- Random Select (random_select): Execute one of several actions at random
- Random Select State (random_select_state): Switch to a random state
- Say (say): Make the NPC say something
- Send Message (send_message): Send a message to the AI
- Set Fauna Activity (set_fauna_activity): Set the NPC's fauna activity
- Set Flags on Dyn Zones (set_flags_on_dyn_zones): Set flags on dynamic zones
- Set State Timeout (set_state_timeout): Set a timeout for the current state
- Set Timer T0 (set_timer_t0): Set timer T0
- Set Timer T1 (set_timer_t1): Set timer T1
- Set Timer T2 (set_timer_t2): Set timer T2
- Set Timer T3 (set_timer_t3): Set timer T3
- Sit Down (sit_down): Make the NPC sit down
- Spawn (spawn): Spawns a new NPC.
- Stand Up (stand_up): Makes the NPC stand up.
- Trigger Event 0 (trigger_event_0): Triggers a custom event.
- Trigger Event 1 (trigger_event_1): Triggers a custom event.
- Trigger Event 2 (trigger_event_2): Triggers a custom event.
- Trigger Event 3 (trigger_event_3): Triggers a custom event.
- Trigger Event 4 (trigger_event_4): Triggers a custom event.
- Trigger Event 5 (trigger_event_5): Triggers a custom event.
- Trigger Event 6 (trigger_event_6): Triggers a custom event.
- Trigger Event 7 (trigger_event_7): Triggers a custom event.
- Trigger Event 8 (trigger_event_8): Triggers a custom event.
- Trigger Event 9 (trigger_event_9): Triggers a custom event.
- parameters: Depends on the action. Click on "View" in the World Editor context menu to learn more.
- weight: Does not work for random_select. (FIXME: But what is it???)