Skills.yml contains the “default” settings for skills. Classes and Races skill settings override these defaults.
Each skill config or permskill config consists of one ore more skill definitions like this..
permskills: fly: skillname: fly description: "Fly for 1 minute" type: ACTIVE level: 10 requires: SomeSkill requiresOne: - listOfSkills - oneOfWhich - mustBeOwned cost: 0 manaCost: 10 buildup: 1000 delay: 1000 cooldown: 60000 duration: 60000 pay: 1000 xp: 100 karmaCost: 0 karmaReward: 10 karmaRequired: 1000 needPerm: someperm.possibly.from.quest.reward consumes: FEATHER consumesqty: 2 perm: essentials.fly startcommand: "fly on" endcommand: "fly off"
The above uses all the possible setting to make a complete, if rather dubious in application, skill. And here’s a smaller example of config for a LegendQuest Skill.
skill: summonpiggy: skillname: summon level: 5 cost: 0 manaCost: 100 cooldown: 60000 vars: qty: 2 entity: pig hatching: skillname: summon level: 15 cost: 0 manaCost: 100 cooldown: 60000 vars: qty: 10 entity: chicken
Here’s what all the parts do.
The two sections
permskills: are for two different types of skill.
skill: is for LegendQuest skills consisting of custom .jar files in the
permskills: allows you to assign permissions and run regular plugin commands for a player to use them as skills.
Each skill has a name, for now these must be unique – but in future where the same name is re-used then the skill will be “upgraded” the the higher level/cost as you level up.
Inbuilt skills in the
skill: section have a
skillname value. This is the name of the skill file to use for this skill in the
/skills/ folder, allowing you to have several implementations for the same skill, like the above example with two instances of the summon skill.
skill: section also allows a
var: section to hand settings over to override the skills defaults. The values of these vary per skill and can be found in the skill defaults page.
/skillcommand. PermSkills require this, native skills only read this if they have dual type ability.
consumesare paid, and the
startcommandis executed. During the duration time period the
perm(if any) permission node is applied to the player.
permis removed and