Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
abilities:start [2019/10/21 16:21]
indyuce created
abilities:start [2020/07/01 03:13] (current)
Line 1: Line 1:
 +======Abilities======
 Abilities are unique skills which can be bound onto items to make them feel more unique. Most of the abilities can be cast using right/left click (while sneaking?) and help the player by giving him an extra damage source or a buff. The action the player must perform in order to cast an ability depends on the ability **casting mode** which you specify when adding an ability to an item. There are six different casting modes: Abilities are unique skills which can be bound onto items to make them feel more unique. Most of the abilities can be cast using right/left click (while sneaking?) and help the player by giving him an extra damage source or a buff. The action the player must perform in order to cast an ability depends on the ability **casting mode** which you specify when adding an ability to an item. There are six different casting modes:
   - `left-click` & `shift-left-click`   - `left-click` & `shift-left-click`
Line 5: Line 6:
   - `when-hit` triggered when being hit by an enemy.   - `when-hit` triggered when being hit by an enemy.
  
-**Damaging** abilities can either deal **physical** or **magical** damage. Depending on their type, the ability damage can be increased by a specific item stat, either ​`Physical Damageor `Magical Damage`. Physical abilities correspond to abilities which utilize items or weapons, like _Circular Slash_ or _Item Throw_. Magical abilities correspond to elemental/​magical abilities like _Firebolt__Fire Comet_...+**Damaging** abilities can either deal **physical** or **magical** damage. Depending on their type, the ability damage can be increased by a specific item stat, either ​''​Physical Damage'' ​or ''​Magical Damage''​. Physical abilities correspond to abilities which utilize items or weapons, like _Circular Slash_ or _Item Throw_. Magical abilities correspond to elemental/​magical abilities like //FireboltFire Comet//...
  
 ===== Adding abilities to MMOItems using MythicMobs===== ===== Adding abilities to MMOItems using MythicMobs=====
-If you have MythicMobs installed on your server, you can utilize the _/​MMOItems/​dynamic/​mythic-mobs-abilities_ ​folder in order to add item abilities to MMOItems using the MythicMobs skill creation feature. Create a YAML configuration file in that folder and write the following:+If you have MythicMobs installed on your server, you can utilize the ''​/​MMOItems/​dynamic/​mythic-mobs-abilities'' ​folder in order to add item abilities to MMOItems using the MythicMobs skill creation feature. Create a YAML configuration file in that folder and write the following:
 <​code>​ <​code>​
 # The internal name of the MM skill. # The internal name of the MM skill.
Line 21: Line 22:
 </​code>​ </​code>​
 MMOItems requires premium MythicMobs (at least 4.7.0) in order to function. MMOItems requires premium MythicMobs (at least 4.7.0) in order to function.
-In order to setup a MM ability in MMOItems, you need to specify three different things: the **MM internal skill name** which will be used by MMOItems to detect and cast the corresponding MM skill, the **ability name** which is used by MMOItems to display the ability in the item lore, and the **modifiers** the ability has as well as the default modifier values.\ +In order to setup a MM ability in MMOItems, you need to specify three different things: the **MM internal skill name** which will be used by MMOItems to detect and cast the corresponding MM skill, the **ability name** which is used by MMOItems to display the ability in the item lore, and the **modifiers** the ability has as well as the default modifier values.
-For instance, if you want the ability to also have a `damage` modifier, for a damaging projectile for example, you only need to add to the config file: `damage: 6` if you want the default damage value to be 6.+
  
-## Retrieving ability modifier values in MythicMobs skills+For instance, if you want the ability to also have a ''​damage''​ modifier, for a damaging projectile for example, you only need to add to the config file: ''​damage:​ 6''​ if you want the default damage value to be 6. 
 + 
 +===== Retrieving ability modifier values in MythicMobs skills=====
 Let's say you have setup an `Ice Bolt` skill (skill example in the MM wiki) which casts a damaging ice projectile. Let's say you have setup an `Ice Bolt` skill (skill example in the MM wiki) which casts a damaging ice projectile.
-```+<​code>​
 IceBolt: IceBolt:
   Skills:   Skills:
Line 37: Line 39:
   - damage{a=10}   - damage{a=10}
   - potion{type=SLOW;​duration=100;​lvl=2}   - potion{type=SLOW;​duration=100;​lvl=2}
-``` +</​code>​ 
-As you can see, the skill currently deals 10 damage to whatever entity it hits. As of right now however, the skill will deal 10 damage no matter what modifier the ability has. We need some way to retrieve data from the ability when it is cast using an item from MMOitems, in order to deal the correct amount of damage using the MythicMobs damage skill mecanic.\ +As you can see, the skill currently deals 10 damage to whatever entity it hits. As of right now however, the skill will deal 10 damage no matter what modifier the ability has. We need some way to retrieve data from the ability when it is cast using an item from MMOitems, in order to deal the correct amount of damage using the MythicMobs damage skill mecanic. 
-This can be done using placeholders. Instead of writing ​`damage{a=10}`, use `damage{a="<​mmoitems.skill.IceBolt.damage>"​}`. Thanks to this placeholder you can retrieve modifier data, from the item itself.+This can be done using placeholders. Instead of writing ​''​damage{a=10}''​, use ''​damage{a="<​mmoitems.skill.IceBolt.damage>"​}''​. Thanks to this placeholder you can retrieve modifier data, from the item itself.
  
-Since MythicMobs (premium builds) also supports math formulas for these type of mecanics which support numeric values, you can also use for instance ​`a="<​mmoitems.skill.IceBolt.damage>​ * 10"which takes the ability modifier value from MMOItems and multiplies it by 10. Coupled with skill conditions you can have brand new amazing skills with really complex features and formulas.+Since MythicMobs (premium builds) also supports math formulas for these type of mecanics which support numeric values, you can also use for instance ​''​a="<​mmoitems.skill.IceBolt.damage>​ * 10"'' ​which takes the ability modifier value from MMOItems and multiplies it by 10. Coupled with skill conditions you can have brand new amazing skills with really complex features and formulas.

abilities/start.1571674904.txt.gz · Last modified: 2020/07/01 03:13 (external edit)