Paste #68773: Untitled Paste

Date: 2020/05/09 16:03:10 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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

tutorialinteract:
    type: interact
    steps:
        1:
            proximity trigger:
                1:
                    move:
                        script:
                        - ~walk <def[tutorialnpc].anchor[tut1].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut2].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut3].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut4].with_world<world>> auto_range
                2:
                    move:
                        script:
                        - wait 2
                        - ~walk <def[tutorialnpc].anchor[tut5].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut6].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut7].with_world<world>> auto_range
                        - ~walk <def[tutorialnpc].anchor[tut8].with_world<world>> auto_range
tutorial_npc_path:
    type: interact
    definitions: tutorialnpc

    script:
    - ^flag <npc> step:1
    - look <npc> <player.location>

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