Paste #29105: Script re-paste from http://hastebin.com/fanokejuja.xml

Date: 2016/01/25 14:53:51 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


test_engage:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:chat state:true
    interact scripts:
    - 10 test_engage_interact

wilderness_boat_fayhurst_interact:
    type: interact
    steps: 
        1:
            click trigger:
                script:
                - if <player.has_flag[npc_engaged]> queue clear
                - flag player npc_engaged
                - narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> Hello <player.name>!"
                - wait 0.5
                - narrate "[<&6>NPC<&r>] <&a><npc.name><&7>:<&r> I am in desperate need of your help. Can you assist me?"
                - wait 0.5
                - narrate "<&9>Say <&n>yes<&9> or <&n>no<&9>..."
                - flag player npc_engaged:!
                - queue clear