Update Player Skills

Guillaume 2023-04-04 05:25:54 +00:00
parent db860b9ca5
commit 5bd01667dd

@ -5,7 +5,8 @@ Before casting skills, players must first bind them i.e choose a keybind that th
Skills are class-specific. When changing class, a player will lose their previous skills and gain new ones.
## Binding skills
You have 6 skill slots which you can use to bind **active** skills to certain keybinds, therefore you can't have more than 6 active skills bound at a time. The amount of slots to bind active skills can be modified in [Player Classes](Player Classes) config using the `max_bound-active-skill`. You may bind skills using the skill GUI, available using `/skills`. You can see your current bound active skills using the item at the right side of the GUI. You can then bind the selected skill to a specific slot by clicking the corresponding item. As soon as you click it, it will update and display the newest skill. If slot X is unused, skills bound onto other skill slots will automatically refill empty slots so **lower keybinds are always used**.
You have 6 skill slots which you can use to bind **active** skills to certain keybinds, therefore you can't have more than 6 active skills bound at a time. The amount of slots to bind active skills can be modified in [Player Classes](Player%20Classes) config using the `max_bound-active-skill`. You may bind skills using the skill GUI, available using `/skills`. You can see your current bound active skills using the item at the right side of the GUI. You can then bind the selected skill to a specific slot by clicking the corresponding item. As soon as you click it, it will update and display the newest skill. If slot X is unused, skills bound onto other skill slots will automatically refill empty slots so **lower keybinds are always used**.
Since MMOCore 1.11 you can choose to have your passive skills require binding or not. The amount of passive skill slots can then be modified in the class configuration using the `max-bound-passive-skill` option.
@ -14,22 +15,26 @@ Since MMOCore 1.11 you can choose to have your passive skills require binding or
**Once your skills are upgraded and bound, you may** [**cast**](Skill%20Casting) **them.**
## Upgrading a skill
Upgrading a skill **increases its power**. Players can choose the skill they would like to upgrade based on their play style and skill path they decided to follow. Upgrading a skill takes **one skill point** which are earned when leveling up. You can upgrade your skills in the skill GUI (`/skills`).
Select the skill you'd like to upgrade by clicking on it, once it's selected it will change the GUI name. You can then upgrade the selected skill by clicking on the corresponding item. On the upgrade item column, you can see how powerful the spell would be with a higher level.
![](https://i.imgur.com/MKbV0I0.gif)
![](https://i.imgur.com/MKbV0I0.gif)
![](https://i.imgur.com/mfLkMB9.gif)
## Skill Unlocking
Each skill can be locked, unlocked but not usable, or usable. Locking a skill means that it cannot be seen in the player's skills UI, and the player is unaware of its existence. When a skill is unlocked, it becomes visible in the player's UI but can only be bound if the player meets the level requirements associated with the skill. A skill can be unlocked or locked through triggers (recommended) or commands.
Each skill can be locked, unlocked but not usable, or usable. Locking a skill means that it cannot be seen in the player's skills UI, and the player is unaware of its existence. When a skill is unlocked, it becomes visible to the player UI but can only be bound to a slot if the player meets the level requirements associated with the skill. A skill can be unlocked or locked through [triggers](https://gitlab.com/phoenix-dvpmt/mmocore/-/wikis/Triggers)(recommended) or [commands](https://gitlab.com/phoenix-dvpmt/mmocore/-/wikis/Commands).
If you unlock a skill for which information is not filled in the class folder, it will be considered directly usable (at level 1) and won't be upgradable.
If you unlock a skill for which information is not filled in the class folder, it will be considered directly usable(at level 1) and won't be upgradable.
## Skill categories & formula
Each skill can be assigned to a list of categories through the field `categories`. By default each skill is associated to its own category represented by its skill ID and to the categorie PASSIVE/ACTIVE depending on if it is an passive/active skill. These categories can be used to parse formulas and target a specific subset of skills. It can be used to filter which skills can be bound to a specific [skill slot](20Classes#skill-slots-since-1120) or to apply skill buffs to a subset of skills.
## Skill categories & formula
Each skill can be assigned to a list of categories through the field `categories`. By default each skill is associated to its own category represented by its skill ID and to the categorie PASSIVE/ACTIVE depending on if it is an passive/active skill. These categories can be used to parse formulas and target a specific subset of skills.\
\
Formulas enable to check if a condition on the skill categories is met. You can use all the classic operators for the such as !(negation), ||(or) and &&(and). They can be used to filter which skills can be bound to a specific [skill slot](/phoenix-dvpmt/mmocore/-/wikis/20Classes#skill-slots-since-1120) or to apply [skill buffs ](https://gitlab.com/phoenix-dvpmt/mmocore/-/wikis/Player%20Skills#skill-buffs)to a subset of skills.
```
#Examples
@ -41,14 +46,17 @@ formula: "!<PASSIVE>&&<FIRE>" #Will target active skills with the fire category
```
## Skill Buffs
A skill buff modifies the value of a certain skill modifier. It can target one or multiple skills using [category formulas]() and can only target 1 modifier. Skill Buffs can only be created through [Skill slots](20Classes#skill-slots-since-1120) and [triggers](Triggers).
A skill buff modifies the value of a certain skill modifier. It can target one or multiple skills using [category formulas]() and can only target 1 modifier. Skill Buffs can only be created through [skill slots](https://gitlab.com/phoenix-dvpmt/mmocore/-/wikis/Player%20Classes#skill-slots-since-1120) and [triggers](https://gitlab.com/phoenix-dvpmt/mmocore/-/wikis/Triggers#available-trigger-types).
```
#Example
triggers:
- 'skill_buff{formula="true";modifier="cooldown";amount=-10;type="RELATIVE"}' #-10% cooldown to all skills.
- 'skill_buff{formula="<FIRE_STORM>";modifier="damage";amount=20;type="FLAT"}'#+20 dmg to fire storm.
- 'skill_buff{formula="<MY_OWN_CATEGORY>";modifier="damage";amount=20;type="FLAT"}'#Will target all the skills who have `MY_OWN_CATEGORY` in their categories list.
- 'skill_buff{formula="<MY_OWN_CATEGORY>";modifier="damage";amount=20;type="FLAT"}'
#Will target all the skills who have MY_OWN_CATEGORY in their categories list.
```
## Skill Folder
@ -220,7 +228,6 @@ items:
- '&7Costs 1 skill point.'
- ''
- '&eCurrent Skill Points: {skill_points}'
```
First of all you can edit the general GUI settings like its name and slots.