|
## Description
|
|
================
|
|
|
|
|
|
|
|
## Description:
|
|
Sets the display name of the caster. This will not work with players.
|
|
Sets the display name of the caster. This will not work with players.
|
|
|
|
|
|
## Attributes
|
|
## Attributes:
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| name | n | The name to set | |
|
|
| name | n | The name to set | |
|
|
|
|
|
|
## Examples
|
|
## Examples:
|
|
|
|
Sets the name of the mob to "newmobname" when the mob is damaged.
|
|
```yaml
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- setname{name=newmobname} @self ~onDamaged 1
|
|
- setname{name=newmobname} @self ~onDamaged 1
|
|
```
|
|
```
|
|
Sets the name of the mob to "newmobname" when the mob is damaged.
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
This will set the name of the mob to the name it has in its Display: option when it is damaged and every 10 ticks when it is in combat. This is an example of how to make your mob update any placeholders in its name. In this example we are doing it to update the <caster.hp> placeholder.
|
|
```yaml
|
|
```yaml
|
|
MySkeleton:
|
|
MySkeleton:
|
|
Type: Skeleton
|
|
Type: Skeleton
|
... | @@ -23,4 +24,3 @@ MySkeleton: |
... | @@ -23,4 +24,3 @@ MySkeleton: |
|
- setname{name=<caster.name>;delay=2} @self ~onDamaged
|
|
- setname{name=<caster.name>;delay=2} @self ~onDamaged
|
|
- setname{name=<caster.name>;delay=2} @self ~onTimer:10 ?incombat{}
|
|
- setname{name=<caster.name>;delay=2} @self ~onTimer:10 ?incombat{}
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |
|
This will set the name of the mob to the name it has in its Display: option when it is damaged and every 10 ticks when it is in combat. This is an example of how to make your mob update any placeholders in its name. In this example we are doing it to update the <caster.hp> placeholder. |
|
|
|
\ No newline at end of file |
|
|