These are all of the placeholders and special characters you can use in
skills and mechanics that use strings.
skills and mechanics that use strings. There are some examples of usage at the bottom to get you started.
##### Examples
__**Note:** Usage of many variables in skills are locked to the premium versions, excluding MMOCore, special characters, color codes, and `setvariable`__.
This will make a mob (name in teal (&b)) send a message to all players
in a radius of 20 blocks around in itself, stating that it was slain by
player x (<trigger.name> in green (&a))
Special Characters
------------------
Skills:
- message{m="&b<mob.name>&r was slain by the warrior skills of &a<trigger.name>&r"} @PIR{r=20} ~onDeath
|<caster.php>|Returns the percent hp of the caster|
|<caster.thp>|Returns the full number hp of the caster|
|<caster.tt.top>|Returns the name of the top threat holder of the caster|
|<caster.l.w>|Returns the world name the caster is in|
|<caster.l.x>|Returns the X coordinate of the caster|
|<caster.l.x.#>|Returns the X coordinate of the caster +- random number between #|
|<caster.l.x.double>|Returns the precise X coordinate of the caster|
|<caster.l.y>|Returns the Y coordinate of the caster|
|<caster.l.y.#>|Returns the Y coordinate of the caster +- random number between #|
|<caster.l.y.double>|Returns the precise Y coordinate of the caster|
|<caster.l.z>|Returns the Z coordinate of the caster|
|<caster.l.z.#>|Returns the Z coordinate of the caster +- random number between #|
|<caster.l.z.double>|Returns the precise Z coordinate of the caster|
|<caster.l.yaw>|Returns the yaw of the caster|
|<caster.l.pitch>|Returns the pitch of the caster|
|<caster.stance>|Returns the current stance of the caster|
|<caster.owner.name>|Returns the name of the wolf's owner|
|<caster.owner.uuid>|Returns the uuid of the wolf's owner|
**Variable Placeholders**
-----------------
These placeholders will return whatever variable has been called. For instance <caster.var.\[name\]> will return the value of the caster's \[name\] variable.
| <caster.var.\[name\]> | Returns the value of the variable \[name\] on the caster. |
| <skill.var.\[name\]> | Returns the value of the variable \[name\] on the current skill tree.|
| <skill.var.damage-amount> | Returns the amount of damage taken in the onDamaged trigger |
| <skill.var.damage-type> | Returns the type of damage taken as specified in a mechanic, aura, etc.|
| <caster.var.\[name\]> | Returns the value of the variable \[name\] on the caster. |
| <skill.var.\[name\]> | Returns the value of the variable \[name\] on the current skill tree.|
| <skill.var.damage-amount> | Returns the amount of damage taken in the onDamaged trigger |
| <skill.var.damage-type> | Returns the type of damage taken as specified in a mechanic, aura, etc.|
<table>
<thead>
<trclass="header">
<th><strong>Target Placeholders</strong></th>
<th><strong>Function</strong></th>
</tr>
</thead>
<tbody>
<trclass="odd">
<td><em>These placeholders will return whatever targetselector has been used. For instance <target.name> + @NearestPlayer will return the name of the player closest to the casting mob.</em></td>
<td></td>
</tr>
<trclass="even">
<td><target.uuid></td>
<td>Returns the UUID of the target</td>
</tr>
<trclass="odd">
<td><target.name></td>
<td>Returns the name of the target</td>
</tr>
<trclass="even">
<td><target.hp></td>
<td>Returns the current hp of the target</td>
</tr>
<trclass="odd">
<td><target.threat></td>
<td>Returns the threat level of the target</td>
</tr>
<trclass="even">
<td><target.l.w></td>
<td>Returns the world name the target is in</td>
</tr>
<trclass="odd">
<td><target.l.x></td>
<td>Returns the X coordinate of the target</td>
</tr>
<trclass="even">
<td><target.l.x.#></td>
<td>Returns the X coordinate of the target<br/>
+- random number between #</td>
</tr>
<trclass="odd">
<td><target.l.y></td>
<td>Returns the Y coordinate of the target</td>
</tr>
<trclass="even">
<td><target.l.y.#></td>
<td>Returns the Y coordinate of the target<br/>
+- random number between #</td>
</tr>
<trclass="odd">
<td><target.l.z></td>
<td>Returns the Z coordinate of the target</td>
</tr>
<trclass="even">
<td><target.l.z.#></td>
<td>Returns the Z coordinate of the target<br/>
+- random number between #</td>
</tr>
</tbody>
</table>
**Target Placeholders**
-----------------
These placeholders will return whatever target selector has been used. For instance <target.name> + @NearestPlayer will return the name of the player closest to the casting mob.
<table>
<thead>
<trclass="header">
<th><strong>Trigger Placeholders</strong></th>
<th><strong>Function</strong></th>
</tr>
</thead>
<tbody>
<trclass="odd">
<td><trigger.uuid></td>
<td>Returns the UUID of the person triggering the skill</td>
</tr>
<trclass="even">
<td><trigger.name></td>
<td>Returns the name of the person triggering the skill</td>
</tr>
<trclass="odd">
<td><trigger.hp></td>
<td>Returns the current hp of the person triggering the skill</td>
</tr>
<trclass="even">
<td><trigger.threat></td>
<td>Returns the threat level of the person triggering the skill</td>
</tr>
<trclass="odd">
<td><trigger.l.w></td>
<td>Returns the world name of the person triggering the skill</td>
</tr>
<trclass="even">
<td><trigger.l.x></td>
<td>Returns the X coordinate of the person triggering the skill</td>
</tr>
<trclass="odd">
<td><trigger.l.x.#></td>
<td>Returns the X coordinate of the person triggering the skill<br/>
+- random number between #</td>
</tr>
<trclass="even">
<td><trigger.l.y></td>
<td>Returns the Y coordinate of the person triggering the skill</td>
</tr>
<trclass="odd">
<td><trigger.l.y.#></td>
<td>Returns the Y coordinate of the person triggering the skill<br/>
+- random number between #</td>
</tr>
<trclass="even">
<td><trigger.l.z></td>
<td>Returns the Z coordinate of the person triggering the skill</td>
</tr>
<trclass="odd">
<td><trigger.l.z.#></td>
<td>Returns the Z coordinate of the person triggering the skill<br/>
|<target.hp>|Returns the current hp of the target|
|<target.threat>|Returns the threat level of the target|
|<target.l.w>|Returns the world name the target is in|
|<target.l.x>|Returns the X coordinate of the target|
|<target.l.x.#>|Returns the X coordinate of the target +- random number between #|
|<target.l.y>|Returns the Y coordinate of the target|
|<target.l.y.#>|Returns the Y coordinate of the target +- random number between #|
|<target.l.z>|Returns the Z coordinate of the target|
|<target.l.z.#>|Returns the Z coordinate of the target +- random number between #|
**Trigger Placeholders**
These placeholders will return whatever attribute of the entity that caused the skill to happen. For instance `<trigger.name>` combined with an `~onDeath` trigger will return the name of the entity that killed the mob.
Skills:
- message{m="<&b><caster.name><&r> was slain by <&a><trigger.name><&r>."} @PIR{r=20} ~onDeath
| <&rc> | Returns a right curly bracket (}) |
| <&lc> | Returns a left curly bracket ({) |
| <&nl> | Forces a new line |
| <&heart> | Returns a heart **(2.1.7)** |
| <&skull> | Returns a skull and bones **(2.1.7)** |
##### Examples
Color Codes
-----------
This will make a mob send a teal (<&b>) message to all players in a radius of 20 blocks around in itself, stating that it was slain by player (<trigger.name>) in green (<&a>)
These color codes work anywhere in mob- and skill-files. They will even
properly format tellraw-commands used in command skills!
Skills:
- message{m="<&b><caster.name><&r> was slain by <&a><trigger.name><&r>."} @PIR{r=20} ~onDeath