... | ... | @@ -43,7 +43,16 @@ IceBolt-Hit: |
|
|
- damage{a=10}
|
|
|
- potion{type=SLOW;duration=100;lvl=2}
|
|
|
```
|
|
|
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.
|
|
|
|
|
|
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. |
|
|
\ No newline at end of file |
|
|
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 mechanic.\
|
|
|
This can be done using placeholders. Instead of writing `damage{a=10}`, use `damage{a="<modifier.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 mechanics which support numeric values, you can also use for instance `a="<modifier.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.
|
|
|
|
|
|
## MythicMobs skill placeholders
|
|
|
Here is the full list of placeholders implemented by MMOItems. Some of them are actually implemented by MythicLib which means you can also use them in MMOCore custom skills.
|
|
|
| Placeholder | Description |
|
|
|
| -----------------------------------|-----------------------------------------|
|
|
|
| `<modifier.(mod_name)>` | Skill modifier, as decimal number |
|
|
|
| `<modifier.int.(mod_name)>` | Skill modifier, as integer |
|
|
|
| `<cooldown.mmoitems_skill_(name)>` | Remaining cooldown for a MMOItems skill |
|
|
|
| `<stat.(stat_name)>` | Player stat value, as decimal number | |
|
|
\ No newline at end of file |