Paste #69959: Untitled Paste

Date: 2020/05/30 17:23:05 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


cchat:
    type: format
    format: "<&9><npc.name><&f><&co> <&e><text>"

Test:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true radius:5
    interact scripts:
    - tutorialinteract

tutorialinteract:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                        script:
                        - ~walk <npc> <npc.anchor[tut1].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut2].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut3].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut4].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut5].with_world[<npc.location.world>]> auto_range
                        - zap 2
        2:
            proximity trigger:
                entry:
                        script:
                        - wait 2
                        - ~walk <npc> <npc.anchor[tut6].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut7].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut8].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut9].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut10].with_world[<npc.location.world>]> auto_range
                        - zap 3
#player kills first mob HERE
        3:
            proximity trigger:
                entry:
                        script:
                        - wait 2
                        - ~walk <npc> <npc.anchor[tut11].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut12].with_world[<npc.location.world>]> auto_range
                        - zap 4
        4:
            proximity trigger:
                entry:
                        script:
                        - wait 2
                        - ~walk <npc> <npc.anchor[tut13].with_world[<npc.location.world>]> auto_range
                        - ~walk <npc> <npc.anchor[tut14].with_world[<npc.location.world>]> auto_range
                        - zap 5
        5:
            proximity trigger:
                entry:
                        script:
                        - wait 2
                        - ~walk <npc> <npc.anchor[tut15].with_world[<npc.location.world>]> auto_range

my_npc_trypause:
    type: task
    script:
    - while <npc.location.distance[<player.location>]> >= 5:
        - narrate format:cchat "Come on, follow me! We must hurry!"
        - wait 5