Paste #15407: on damage 2

Date: 2015/05/01 17:46:27 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


banditNectar:
    type: assignment

    interactScripts:
    - 10 azFight

    actions:
        on assignment:
        - trigger name:proximity toggle:true radius:4
        - trigger name:damage toggle:true
        - vulnerable:true

        on death by player:
        - if !<player.flag[azLooted]> {
            - drop item:cursedHeartNectar qty:1
            - drop XP qty:10 location:<npc.location>
            - flag player azLooted
            - chat "You... do not understand..."
            } else {
            - drop XP qty:10 location:<npc.location>
            - drop item:cursedHeartNectar qty:1
            - chat "When... will it end?"
            }

        on damage:
        - chat "Test"

        on enter proximity:
        - if !<player.flag[azTalked]> {
            - chat "Are you... the keybearer?"
            - flag player azTalked
            - run "azFight" }
        else {
        - if <player.flag[azLooted]> {
            - attack
            - chat "No! No! No!"
            }
        }