Changes
Page history
Create Skills/Targeters/PlayerByName
authored
Jul 10, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/Targeters/PlayerByName.md
0 → 100644
View page @
93842d1b
## Description
Targets a specific player by their name. Can be a placeholder.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| name | n | The name of the player | CarsonJF|
## Examples
The following mob will remeber the name of the player that first hit it after it spawned, and will continue to ignite them every 10 seconds after that
```
yaml
VengefulMob
:
Type
:
ZOMBIE
Skills
:
-
setvariable{var=caster.targetedplayer;type=STRING;val=<trigger.name>} @self ~onDamaged =100% ?~isPlayer
-
ignite @PlayerByName{name=<caster.var.targetedplayer>} ~onTimer:200 ?variableisset{var=caster.targetedplayer}
```
## Aliases
-
[x] specificplayer
\ No newline at end of file