Date: 2013/12/30 17:52:11 UTC-08:00
Type: Denizen Script
"ReallyAngrySkeleton":
type: task
script:
attack:
- ^narrate <context.damager.custom_name>
# - ^define roll <util.random.int[1].to[100].asint>
# - ^if %roll% >= 1 {
# - ^define critdamage <util.random.int[5].to[10].asint>
# - ^narrate "<&5>* <context.damager.custom_name> <&5> critically hits <&2><player.name> <&5>for <&c>%critdamage%<&5>!" targets:<player.location.find.players.within[25].as_list>
# - ^determine %critdamage% }
defend:
- ^define roll <util.random.int[1].to[100].asint>
- narrate "<context.entity.strip_color.custom_name> <&8>| <&2> I'm defending against you!"