Modding Union

[en] - Modding Corner => General Modding Questions => Thema gestartet von: DropItLikeItsDogg am 15. Mär 2023, 18:28

Titel: Adding an attack effect to a hero?
Beitrag von: DropItLikeItsDogg am 15. Mär 2023, 18:28
Hello everyone. I have a question. How can I add Witch King's melee attack range, shockwave and knock down to an another hero, for example Saruman or Gandalf? Thanks.  :)
Titel: Re: Adding an attack effect to a hero?
Beitrag von: Elendils Cousin 3. Grades am 15. Mär 2023, 20:33
1. Go to the Witch-King and find his weaponset.
2. Take a look at his melee weapon and copy what you want to copy: Attack range is pretty self explanatory, knockdown effects are called MetaImpactNugget in the code.
3. Find the melee weapon of the hero that you want to change and paste your desired changes there.
Titel: Re: Adding an attack effect to a hero?
Beitrag von: DropItLikeItsDogg am 16. Mär 2023, 01:15
Sorry, if you don't mind can you explain it in a little detailed way? I tried some but I couldn't.
Titel: Re: Adding an attack effect to a hero?
Beitrag von: Elendils Cousin 3. Grades am 16. Mär 2023, 12:28
Find the Witch-King's weapon.

    WeaponSet
        Weapon               = PRIMARY    AngmarWitchkingStartWeapon
        AutoChooseSources    = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    End
Find the melee weapon's properties.



Paste the properties into your target weapon.

Now we repeat the process of steps 1 and 2, except instead of copying something we will be pasting something: Find Gandalf or Saruman, find Gandalf's or Saruman's weapon and then add the MetaImpactNugget to it. I will put this entire step into a spoiler - I recommend you try doing it by yourself before looking into the spoiler. It's not very difficult, I'm sure you can do it. :)

Titel: Re: Adding an attack effect to a hero?
Beitrag von: DropItLikeItsDogg am 18. Mär 2023, 12:04
Thanks for reply.   :)