Paste #614: Untitled Paste

Date: 2013/12/19 16:31:58 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"skelliton_follower":
  type: assignment
  debug: false
  interact scripts:
  - 1 skelliton_follower1
  actions:
    on assignment:
    - flag npc rider:->:<player>
    - flag npc mobprox_range:20
    - flag npc mobprox_timer:1
    - trait mobprox
    - flag player skelliton_follower:<npc>
    - trigger name:proximity state:true radius:20
    on mob move proximity:
    - define location <npc.location.find.living_entities.within[20].exclude[<player>].get[1]> 
    - shoot arrow origin:<npc.location> destination:%location% speed:20

"skelliton_follower1":
  type: interact
  debug: true
  steps:
    "1":
      proximity trigger:
        move:
          script:
          - if <player.flag[skelliton_follower]> == <npc> {
            - walk <npc> <l@0,0,0,0,<player.location.yaw.add[120].asint>,<player.location.world.name>.direction.vector.mul[3].add[<player.location>]> speed:1
            }