Condition_IsFamilyAgeRank
Description
Checks the BaseObject's age rank within the family. Rank 1 is the oldest member. Returns false if the character does not belong to any family (rank == -1).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Character whose age rank within the family will be evaluated |
| CompareType | Supported compare types: Equal, NotEqual, Less, LessEqual, Greater, GreaterEqual, Range |
| F1 | Age rank value to compare against (or minimum value for Range) |
| F2 | Maximum age rank for Range comparison |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| If Self is the oldest member in the family | Self | IsFamilyAgeRank | Equal |
| If Target is 2nd oldest or higher in the family | Target | IsFamilyAgeRank | GreaterEqual |
| If Self is 3rd oldest or lower in the family | Self | IsFamilyAgeRank | LessEqual |
| If Target's rank is between 2nd and 4th | Target | IsFamilyAgeRank | Range |
Back to Command FinderSearch and filter all 491 Script Condition documents