Condition_FreelanceLicenseGrade
Description
Checks the grade level of a specific freelance license for the BaseObject character. Compares the current grade of the license (identified by S1) against the grade value specified in F1. Grade values: None=0, Beginner=1, Intermediate=2, Advanced=3, Expert=4.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character entity to check the license grade for. |
| CompareType | Supported compare types: Equal, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual. |
| S1 | LicenseId (refers to License.Id in the data table). |
| F1 | Grade level to compare against (0=None, 1=Beginner, 2=Intermediate, 3=Advanced, 4=Expert). |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 |
|---|---|---|---|---|---|
| Check if Self's Plumbing license is Advanced or higher | Self | FreelanceLicenseGrade | GreaterOrEqual | Plumbing | 3 |
| Check if Self's Repair license is exactly Intermediate | Self | FreelanceLicenseGrade | Equal | Repair | 2 |
| Check if Target's Cleaning license is below Expert | Target | FreelanceLicenseGrade | Less | Cleaning | 4 |
Back to Command FinderSearch and filter all 491 Script Condition documents