... | @@ -153,30 +153,38 @@ Special Placeholders |
... | @@ -153,30 +153,38 @@ Special Placeholders |
|
| <score.objective.dummyname> | Returns the score of "dummyname" (fake player) from "objective" **(2.3)** |
|
|
| <score.objective.dummyname> | Returns the score of "dummyname" (fake player) from "objective" **(2.3)** |
|
|
| <random.\#-\#> | Returns a random number in the specified range |
|
|
| <random.\#-\#> | Returns a random number in the specified range |
|
|
|
|
|
|
##### Examples
|
|
Examples
|
|
|
|
--------------------
|
|
|
|
|
|
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>)
|
|
**This will make a mob send a teal message to all players in a radius of 20 blocks around in itself, stating what entity killed it in green.**
|
|
|
|
|
|
|
|
```
|
|
Skills:
|
|
Skills:
|
|
- message{m="<&b><caster.name><&r> was slain by <&a><trigger.name><&r>."} @PIR{r=20} ~onDeath
|
|
- message{m="<&b><caster.name><&r> was slain by <&a><trigger.name><&r>."} @PIR{r=20} ~onDeath
|
|
|
|
```
|
|
|
|
|
|
|
|
**This skill will make an announcement when the mob spawns that looks like this:**
|
|
|
|
|
|
This skill will make an announcement like this:
|
|
|
|
![image](uploads/91ed6d8aaa669e8ae21f8745e8ff4643/image.png)
|
|
![image](uploads/91ed6d8aaa669e8ae21f8745e8ff4643/image.png)
|
|
when the mob spawns
|
|
|
|
```
|
|
```
|
|
Skills:
|
|
Skills:
|
|
- Skill{s=SaveBossLocation} @self ~onSpawn
|
|
- Skill{s=SaveBossLocation} @self ~onSpawn
|
|
- message{m="&eA &BGiant Zombie&e (Level &4<caster.level>&e) &ehas spawned at <caster.var.SpawnLoc>"} ~onSpawn @PlayersInWorld
|
|
- message{m="&eA &BGiant Zombie&e (Level &4<caster.level>&e) &ehas spawned at <caster.var.SpawnLoc>"} ~onSpawn @PlayersInWorld
|
|
- message{m="&eThe &BGiant Zombie&e (Level &4<caster.level>&e) &espawned at <caster.var.SpawnLoc>&e has been slain."} ~onDeath @PlayersInWorld
|
|
- message{m="&eThe &BGiant Zombie&e (Level &4<caster.level>&e) &espawned at <caster.var.SpawnLoc>&e has been slain."} ~onDeath @PlayersInWorld
|
|
```
|
|
```
|
|
|
|
|
|
Be sure to place this skill somewhere in the skills file
|
|
Be sure to place this skill somewhere in the skills file
|
|
|
|
|
|
```
|
|
```
|
|
SaveBossLocation:
|
|
SaveBossLocation:
|
|
Skills:
|
|
Skills:
|
|
- setvariable{var=SpawnLoc;type=STRING;value="&b<caster.l.x>&e, &b<caster.l.y>&e, &b<caster.l.z>";scope=CASTER} @self
|
|
- setvariable{var=SpawnLoc;type=STRING;value="&b<caster.l.x>&e, &b<caster.l.y>&e, &b<caster.l.z>";scope=CASTER} @self
|
|
```
|
|
```
|
|
You can also use color tags and formatting tags to make the mobs have pretty names:
|
|
**You can also use color tags and formatting tags to make the mobs have pretty names:**
|
|
|
|
|
|
![image](uploads/9ad97422803c3f35fbeac2e4df7f7d52/image.png)
|
|
![image](uploads/9ad97422803c3f35fbeac2e4df7f7d52/image.png)
|
|
|
|
|
|
```
|
|
```
|
|
ZOMBIE:
|
|
ZOMBIE:
|
|
Display: 'ZOMBIE &F- &A<caster.hp>/<caster.mhp>HP &F- &ELv.<caster.level>'
|
|
Display: 'ZOMBIE &F- &A<caster.hp>/<caster.mhp>HP &F- &ELv.<caster.level>'
|
... | | ... | |