Execute_ApplyCareerVacation
Description
Applies a career vacation for the character. Decrements vacation days (PaidVacation only), sets the next workday as vacation, and updates the schedule accordingly. When the career type is Business, an Idol career is checked instead (idol trainees, idols and agency staff count as employed).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character requesting vacation. |
| S1 | EB1CareerType (e.g., Business, School); defaults to Business if omitted. |
| S2 | EB1CareerVacationType (PaidVacation, UnpaidVacation, SickLeave). |
| F1 | Vacation day count (0 = use 1 day). Only used when F2 is 0. |
| F2 | If > 0 and PaidVacation, sends VacationDayPopup to B1. Ignored for other types. |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 | F2 |
|---|---|---|---|---|---|---|
| Apply 1 day of sick leave | Self | ApplyCareerVacation | Business | SickLeave | ||
| Apply 3 days of paid vacation | Self | ApplyCareerVacation | Business | PaidVacation | 3 | |
| Open day-selection popup for paid vacation | Self | ApplyCareerVacation | Business | PaidVacation | 1 |
Back to Command FinderSearch and filter all 399 Script Execution documents