Changes
Page history
updated layout and informations
authored
Sep 02, 2024
by
Lxlp
Show whitespace changes
Inline
Side-by-side
skills/mechanics/onshoot.md
View page @
5d5790e8
Mechanic: onShoot
=================
## Description
Applies an aura to the target that triggers a skill when they shoot with a bow. Can use any [aura] attribute
Applies an aura to the target that triggers a skill when they shoot with a bow. Can use any
[
aura
](
/skills/mechanics/aura
)
attribute
| [Implemented Placeholders] |
|--------------------------------|
|
`<skill.var.bow-tension>`
|
Attributes
----------
| Attribute | Aliases | Description | Default Value |
|------------------|---------------|------------------------------------------------------------|---------------|
| onShoot | osh | Skill to execute when the entity shoots | |
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| onShootSkill | onshoot, osh, onbowshoot, onbowshootskill | Skill to execute when the entity shoots | |
| cancelEvent | cE | Whether or not to cancel the event that triggered the aura | false |
| forceaspower | fap | Whether to pass the force of the bow as the skill's power | true |
> This mechanic inherits every attribute of the [aura] mechanic
Examples
--------
## Examples
```
yaml
Skills
:
-
onShoot{auraName=fireball_bow;onShoot=[ shootfireball ];duration=200;charges=5} @self
-
...
```
In this example, the caster's next 5 bow shots will shoot fireballs
instead of arrows.
## Aliases
-
[x] onbowshoot
<!-- LINKS -->
[
aura
]:
/skills/mechanics/aura
[
Implemented Placeholders
]:
/Skills/Placeholders#variable-placeholders
\ No newline at end of file