[Resolved] MythicMobs - Freezing a mob with stun mechanic.

Discussion in 'Community Support' started by Joz, Feb 11, 2020.

  1. Joz

    Joz New Member

    Joined:
    Jan 25, 2020
    Messages:
    3
    Likes Received:
    0
    Hey all, I'm currently creating an axe swing ability for my new custom boss. The ability I'm referring to here is "HBAxeSwing"

    This is what I would like to occur.

    - The mob is "paused" or frozen, no movement except changing direction can occur.
    - 0.5-second delay
    - The cloud ring is formed as a warning.
    - 2.5-second delay
    - The red-dust is shown to confirm the attack has happened/happening
    - The mob deals 10 damage and pierces armour.

    The player must be within 8 blocks of the mob for this to happen.

    The issue I'm having is that the mob will not freeze itself. At the moment I'm trying to utilize the stun feature, but I'm not too sure if this is the way to go. I have attached all configuration below, I'd appreciate any help or suggestions. Thanks a lot :)


    Code:
    HBAxeSwing:
      Cooldown: 0
      Skills:
      - stun{d=70;f=true} @Self
      - delay 10
      - effect:particlering{p=cloud;a=20;r=3;y=0.5} @Self
      - delay 50
      - effect:particles{p=reddust;a=100;hs=1;y=0.5} @Self
      - damage{amount=10;ignoreArmor=true} @PIR{r=3}
      Conditions:
      - targetwithin{d=8} true

    Code:
    Skills:
      - skill{skill=Charge} @Self ~onTimer:20
      - skill{skill=HBDash} @Target ~onTimer:1000
      - skill{skill=HBAxeSwing} @Self ~onTimer:100
     
    #1
  2. Ldii

    Ldii Member

    Joined:
    Aug 14, 2018
    Messages:
    65
    Likes Received:
    6
    You should use targeter @PIR because your condition won't work if you will use targeter @self
     
    #2

Share This Page