Class CompositeSkillRequirement
java.lang.Object
net.storm.api.movement.pathfinder.model.requirement.CompositeSkillRequirement
- All Implemented Interfaces:
Supplier<Boolean>,Requirement
Requirement that checks if the total level across multiple skills meets a threshold.
CompositeSkillRequirement sums the levels of specified skills and compares the total against a required threshold. This is useful for content that requires a combined skill total rather than individual skill levels.
Common Uses
- Total level requirements for certain areas or content
- Combined skill checks (e.g., combat stats)
- Aggregate skill requirements for shortcuts
Usage Example
// Require total of 300 across combat skills
CompositeSkillRequirement combatReq = new CompositeSkillRequirement(
300,
Skill.ATTACK, Skill.STRENGTH, Skill.DEFENCE, Skill.HITPOINTS
);
// Require total of 200 across all gathering skills
CompositeSkillRequirement gatherReq = new CompositeSkillRequirement(
200,
Skill.MINING, Skill.WOODCUTTING, Skill.FISHING
);
if (combatReq.get()) {
// Player meets the combined combat level requirement
}
- See Also:
-
Field Summary
Fields inherited from interface net.storm.api.movement.pathfinder.model.requirement.Requirement
ARCEUUS_FAIRY_RING, CABIN_FEVER_QUEST, DESERT_DIARY_ELITE, GRAND_TREE_QUEST, ICTHLARINS_LITTLE_HELPER, KARAMJA_DIARY_HARD, KHAREDST_PAGE_1, KHAREDST_PAGE_2, KHAREDST_PAGE_3, KHAREDST_PAGE_4, KHAREDST_PAGE_5, KUDOS_153, MONKEY_MADNESS_I, MONKEY_MADNESS_I_FINISHED, MONKEY_MADNESS_II, ONE_SMALL_FAVOUR, PANDEMONIUM_COMPLETED, PRIEST_IN_PERIL_QUEST, REGICIDE_QUEST, SONG_OF_THE_ELVES_QUEST, SUMMER_SHORE_COMPLETED, THE_GOLEM, VISITED_DEEPFIN_POINT, VISITED_KOUREND, VISITED_MORYTANIA, VISITED_PORT_ROBERTS, VISITED_VARLAMORE -
Constructor Summary
ConstructorsConstructorDescriptionCompositeSkillRequirement(int totalRequired, net.runelite.api.Skill... skills) Creates a new composite skill requirement. -
Method Summary
-
Constructor Details
-
CompositeSkillRequirement
public CompositeSkillRequirement(int totalRequired, net.runelite.api.Skill... skills) Creates a new composite skill requirement.- Parameters:
totalRequired- the minimum total level required across all skillsskills- the skills to sum levels from
-
-
Method Details
-
get
Evaluates whether the total level across specified skills meets the threshold.Sums the current level in each specified skill and compares against the required total.
-