-
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-11T16:04:46.718Z 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:
-
Action Flow:
- 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
- Modify Variable (modify_variable): Modify a variable in a group by performing arithmetic operations with other variables or constants
- Multi Actions (multi_actions): Execute all child actions in sequence
- Null Action (null_action): Does nothing, useful in combination with random_select to create actions that are not always executed
- Behavioural Actions:
- General Purpose:
-
Ryzom Gameplay:
- Outpost Giver Ready (outpost_giver_ready): Inform the outpost that one of the outpost mission giver groups is ready to spawn
- 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-3 (set_timer_t0, set_timer_t1, set_timer_t2, set_timer_t3): Set timer T0-3
- 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-9 (trigger_event_0, trigger_event_1, trigger_event_2, trigger_event_3, trigger_event_4, trigger_event_5, trigger_event_6, trigger_event_7, trigger_event_8, trigger_event_9): Triggers a custom event.
-
Action Flow:
- parameters: Depends on the action. Click on "View" in the World Editor context menu to learn more.
- weight: Affects the order in which actions within the same event are executed. (Does not work for random_select.)