Cant create Hallucinations (Unsolved)

Discussion in 'Support' started by AlexanderSPN, Apr 14, 2018.

  1. AlexanderSPN

    AlexanderSPN New Member
    Supporter

    Joined:
    Aug 26, 2017
    Messages:
    7
    Likes Received:
    0
    So I've been using mythic mobs for about maybe a year now. The last concept I don't get about this whole plugin is why even the simplest skills don't work some times. There is no errors in console I even looked at examples and stuff to make sure what I was doing was correct.
    I'm trying to achieve it spawning a Hallucination when it attacks or gets attacked

    Code:
    HallucinationGiver:
      Type: HUSK
      Equipment:
      - ###
      - ###
      - ###
      - ###
      - ###
      Display: ‘&1HallucinationGiver’
      Options:
      FollowRange: 150
      Despawn: false
      Silent: true
      PreventMobKillDrops: true
      PreventRandomEquipment: true
      MovementSpeed: 0.5
      AttackSpeed: 0.35
      KnockbackResistance: 0.1
      PreventOtherDrops: true
      Health: 35
      Damage: 5
      Modules:
      ThreatTable: true
      AIGoalSelectors:
      - 0 clear
      - 1 meleeattack
      - 2 movetowardstarget
      - 3 breakdoors
      - 5 randomstroll
      AITargetSelectors:
      - 0 clear
      - 1 attacker
      - 2 monsters
      - 3 players
      - 4 villagers
      Skills:
      - skill{s=HalluciogenicTouch} ~onAttack 0.5
      - skill{s=HalluciogenicTouch} ~onDamaged 0.3
      - skill{s=SuperSpeed} ~onTimer:1200
      - skill{s=SuperSpeed} ~onEnterCombat
    
    Hallucination:
      Type: HUSK
      Equipment:
      - ###
      - ###
      - ###
      - ###
      - ###
      Disguise:
      Type: player
      Player: Hallucination
      Skin: 'RIFTIIIIIII'
      Disguise.ShowName: false
      Display: ‘&1HallucinationGiver’
      Options:
      FollowRange: 150
      Despawn: false
      Silent: true
      PreventMobKillDrops: true
      PreventRandomEquipment: true
      MovementSpeed: 0.5
      AttackSpeed: 0.35
      KnockbackResistance: 0.1
      PreventOtherDrops: true
      Health: 1
      Damage: 0
      Modules:
      ThreatTable: true
      AIGoalSelectors:
      - 0 clear
      - 1 meleeattack
      - 2 movetowardstarget
      - 3 breakdoors
      - 5 randomstroll
      AITargetSelectors:
      - 0 clear
      - 1 attacker
      - 2 monsters
      - 3 players
      - 4 villagers
      Skills:
      - suicide ~onTimer:300
    Code:
    HalluciogenicTouch:
      Cooldown: 30
      Conditions:
      - Distance{d=<2}#>
      Skills:
      - summon{type=Hallucination;amount=4;radius=4} @self
      - teleport{spreadh=5;spreadv=0} @target
    
    SuperSpeed:
      Cooldown: 120
      Skills:
      - potion{type=speed;duration=10;level=10} @self
     
    #1
    Last edited: Apr 14, 2018
  2. qwerty5

    qwerty5 Member

    Joined:
    Jul 23, 2015
    Messages:
    60
    Likes Received:
    12
    What doesnt work with it?
    and what are you trying to achieve?
     
    #2
  3. AlexanderSPN

    AlexanderSPN New Member
    Supporter

    Joined:
    Aug 26, 2017
    Messages:
    7
    Likes Received:
    0
    I'm trying to achieve it spawning a Hallucination when it attacks or gets attacked
     
    #3
  4. AlexanderSPN

    AlexanderSPN New Member
    Supporter

    Joined:
    Aug 26, 2017
    Messages:
    7
    Likes Received:
    0
  5. qwerty5

    qwerty5 Member

    Joined:
    Jul 23, 2015
    Messages:
    60
    Likes Received:
    12
    maybe add a targeter for the skill in the mob file? ill have a test with this later
     
    #5
  6. RinaDeithe

    RinaDeithe New Member

    Joined:
    Mar 29, 2018
    Messages:
    24
    Likes Received:
    0
    All skills need a target to work.
     
    #6
  7. AlexanderSPN

    AlexanderSPN New Member
    Supporter

    Joined:
    Aug 26, 2017
    Messages:
    7
    Likes Received:
    0
    The targets are in the skill file.
     
    #7
  8. Buguser

    Buguser Member

    Joined:
    Oct 11, 2016
    Messages:
    94
    Likes Received:
    36
    The skill (in the mobfile) also needs a target, else it wont work. Currently the condition has no target to which it is applied.

    Just add to all the skills in the mobfile @Self
     
    #8

Share This Page