Need help with configuring Tag Skills

Discussion in 'Support' started by Zomblad, Jun 9, 2018.

  1. Zomblad

    Zomblad Member
    Supporter

    Joined:
    Mar 2, 2017
    Messages:
    71
    Likes Received:
    2
    Hello. I was trying to create a skill that sends an announcement message about player entering a fight with a boss. I guess I have made a mistake somewhere, because this skill not works. Please, help needed.

    Code:
    VanillaMobs:
    
    ELDER_GUARDIAN:
      Skills:
      - skill{s=ELDER_GUARDIAN_BATTLE_TAGGING} ~onDamaged =100%-1% 1.00
      - skill{s=ELDER_GUARDIAN_BATTLE_ANNOUNCEMENT} ~onDamaged =100%-1% 1.00
    Code:
    ExampleSkills:
    
    ELDER_GUARDIAN_BATTLE_TAGGING:
      TargetConditions:
      - hastag{t=ELDER_GUARDIAN_BATTLE_TAG_1} false
      - entitytype{types=PLAYER} true
      Skills:
      - addtag{t=ELDER_GUARDIAN_BATTLE_TAG_1} @Target 1.00
      - delay 100
      - removetag{t=ELDER_GUARDIAN_BATTLE_TAG_1} @Target 1.00
    ELDER_GUARDIAN_BATTLE_ANNOUNCEMENT:
      TargetConditions:
      - hastag{t=ELDER_GUARDIAN_BATTLE_TAG_1} true
      - entitytype{types=PLAYER} true
      Skills:
      - message{msg="&cPlayer <trigger.name> have challenged an Elder Guardian!"} @PlayersOnServer 1.00
     
    #1
  2. Zomblad

    Zomblad Member
    Supporter

    Joined:
    Mar 2, 2017
    Messages:
    71
    Likes Received:
    2
    Seriously, what am I doing wrong here? It should work.
     
    #2

Share This Page