-
Notifications
You must be signed in to change notification settings - Fork 94
set_state_timeout
Ryzom Core Wiki edited this page Jul 8, 2024
·
6 revisions
title: Set State Timeout description: published: true date: 2023-03-16T23:14:25.972Z tags: editor: markdown dateCreated: 2023-03-16T22:33:06.157Z
The set_state_timeout action sets up a timer for the current state that will trigger the state_timeout event when the elapsed time exceeds the specified range.
This timer is canceled (disabled) when the state is changed, making it useful for limiting the duration of a state or other timed behavior that should be canceled once the state is done. When changing to a punctual state, this timer is paused instead, and resumed once the punctual state ends and if the suspended state is re-entered.
<min time>
[<max time>]
- <min time>: The minimum duration of the timer in game cycles.
- [<max time>]: (Optional) The maximum duration of the timer in game cycles. If specified, the actual duration of the timer will be randomly selected between min_time and max_time. Otherwise, the timer will only last for the minimum time.
-
Set Punctual State Timeout: Sets a timer that triggers the
punctual_state_timeout
event unless the punctual state is ended or changed before the timer elapses. -
Set Timer T0-3: Set a timer for a game cycle duration or at a specific Ryzom time that triggers a
timer_t0_triggered
totimer_t3_triggered
event. -
Trigger Event 0-9: Triggers a
user_event_0
touser_event_9
event handler for one or more specified other NPC groups. - Begin State: Switch to another state.
- Random Select State: Changes the state of the NPC group to one of the listed states at random based on their assigned weights.