Paste #8122: Edit of P#8120 - Edit of P#8118 - is this possible

Date: 2014/08/08 22:00:24 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


# To assign to an NPC, literally type:
# /npc assign --set "profession_choice_assign"
profession_choice_assign:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true
        - trigger name:click state:true
        - lookclose
        on enter proximity:
        - if !<player.has_flag[prof]> || <player.flag[prof]> == null {
          - narrate format:cchat "You need a profession you bumb!"
          }
          else {
          - wait 2
          - narrate format:cchat "<&6>Click <&f>on me and I will show you all of the <&2>Professions <&f>you can choose from"
          }
    interact scripts:
    - 10 profession_choice_interact

profession_choice_interact:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - narrate format:cchat "Choose a <&c>Profession, <&b><player.name>!"
                - wait 3
                - execute as_server "chc open professions.yml <player.name>"