Paste #102561: path loop

Date: 2022/10/23 11:57:20 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


anchor1:
    type: assignment
    debug: true
    actions:
        on assignment:
        - trigger name:proximity state:true radius:10
    interact scripts:
    - garret

garret:
    type: interact
    steps:
        1:
             proximity trigger:
                entry:
                    script:
                    - ~walk <npc> <npc.anchor[garretpathpoint1]>
                    - zap 2

    steps:
        2:
             proximity trigger:
                entry:
                    script:
                    - ~walk <npc> <npc.anchor[garretpathpoint2]>
                    - zap 3

    steps:
        3:
             proximity trigger:
                entry:
                    script:
                    - ~walk <npc> <npc.anchor[garretpathpoint3]>
                    - zap 4
    steps:
        4:
             proximity trigger:
                entry:
                    script:
                    - ~walk <npc> <npc.anchor[garretpathpoint4]>
                    - zap *