Cant create Hallucinations (Still Unsolved as of 4/24/18)

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

  1. AlexanderSPN

    AlexanderSPN New Member

    Joined:
    Aug 26, 2017
    Messages:
    8
    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
    Supporter Premium Supporter

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

    AlexanderSPN New Member

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

    AlexanderSPN New Member

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

    qwerty5 Member
    Supporter Premium Supporter

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

    RinaDeithe New Member
    Supporter Premium Supporter

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

    AlexanderSPN New Member

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

    Buguser Active Member

    Joined:
    Oct 11, 2016
    Messages:
    104
    Likes Received:
    44
    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
  9. AlexanderSPN

    AlexanderSPN New Member

    Joined:
    Aug 26, 2017
    Messages:
    8
    Likes Received:
    0
    Yeah that didnt work, I added @self to a skill in the mobfile from one of the examples above, It looks like this
    Code:
      - skill{s=DjinnHalluciogenicTouch} @self ~onDamaged
    It still does not work, I have also looked at some examples from the resource section, NONE of them have a target on the mobfile for a skill as the target for skills is listed in the skill file. Furthermore as documented on http://www.mythicmobs.net/manual/doku.php/skills/mechanics/skill
    As you can see from my first example there is a target specified in the skill file so it wouldn't need to inherit it in the first place.
     
    #9
    Last edited: Apr 24, 2018
  10. Roger M

    Roger M Member
    Supporter

    Joined:
    May 13, 2016
    Messages:
    72
    Likes Received:
    8
    Hi @AlexanderSPN , you just borked the config a bit.
    Code:
    HallucinationGiver:
      Type: HUSK
    #  Equipment:  #Commented out due to not in use currently
    #  - ###
    #  - ###
    #  - ###
    #  - ###
    #  - ###
      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
    Code:
    Hallucination:
      Type: HUSK
    #  Equipment:  #Commented out due to not being used right now
    #  - ###
    #  - ###
    #  - ###
    #  - ###
    #  - ###
      Disguise:
        #The next 4 lines were not properly indented, causing the mob to throw an error in the console
        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}#>  This is formatted all wrong, should be {d=<2}, and to use it you must declare your target when the skill is cast.  Instead use the condition I added next
    #  This is likely what was preventing the spawning (combined with the mob error previously discussed)
      - targetwithin 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
    I tested it and it works, but you need some serious work on the AI. The added spawns were attacking the summoner.

    @RinaDeithe @Buguser While using targeters when the skill is cast is absolutely best practice when applicable, it is not a requirement. The above code works as intended with the tweeks I made.

    Don't be afraid drop a "like" if this helped you out!
     
    #10
    AlexanderSPN likes this.

Share This Page