Execute_AddTimeAlert
Description
Adds a time alert entry to the TimeAlertUIHandler for the Self entity. The alert triggers when the remaining time reaches the specified alert threshold.
Note
BaseObject is not used. This action is always applied to the Self entity.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Not used. Fixed to Self entity. |
| S1 | TimeAlertDataId that identifies the alert configuration |
| F1 | Total duration in minutes for the alert timer |
| F2 | Remaining minutes at which the alert notification triggers |
Examples
| Description | BaseObject | Command | S1 | F1 | F2 |
|---|---|---|---|---|---|
| Add a 60-minute alert that triggers at 10 minutes remaining | AddTimeAlert | Alert_QuestDeadline | 60 | 10 | |
| Add a 30-minute alert that triggers at 5 minutes remaining | AddTimeAlert | Alert_EventCountdown | 30 | 5 | |
| Add a 120-minute alert that triggers at 15 minutes remaining | AddTimeAlert | Alert_ShopTimer | 120 | 15 |