1. Join in on Icon Contest #17 and show your interpretation of a legendary equipment set!
    Dismiss Notice
  2. Join us in our custom games night on Saturday, June 30. We'll see you on Battle.net and Discord!
    Dismiss Notice
  3. Texturing Contest #28 has come to an end; vote for your favorite swamp dweller here! You can vote up to 3 entries.
    Dismiss Notice
  4. The Maxwell vs PrinceYaser Icon Challenge has come to a finish. See the results here!
    Dismiss Notice
  5. We've created the Staff Job Openings thread. We're currently in need of icon, video production, and social/multimedia positions to be filled. Thank you!
    Dismiss Notice
  6. Music Contest #10 Retro is out! Join us for some retro/vintage fun!
    Dismiss Notice
  7. Don't be stagnant - embrace change! The time has come to evolve and join the Techtree Contest #12 - Evolution.
    Dismiss Notice
  8. On May 20th a new law about privacy and data processing comes into work in the EU. I am no lawyer and I need help figuring out if we comply and if not, what we must do about it. Please message me if you can provide any assistance. Read more. Ralle
    Dismiss Notice

Metamorphosis

Discussion in 'World Editor Help Zone' started by Mechcash, Jun 12, 2018.

  1. Mechcash

    Mechcash

    Joined:
    May 30, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    Heya,

    I wanted to give an unit the ability to temporarily transform. I decided to use the metamorphosis ability. I edited it and gave it to the said unit, but when I activate it, the only thing that happens is, that the unit doesn't transform and is freezed in it's place :confused: what to do now?

    Hope somebody can help me with this.
     
  2. Abishkar

    Abishkar

    Joined:
    Dec 17, 2017
    Messages:
    49
    Resources:
    0
    Resources:
    0
    That is because the "Metamorphosis" power is only for Illidan. If you give the spell to another unit, it will not work because the unit is not given the animation to transform. Instead, You can try "Avatar". It makes the unit bigger in size when used andaalso works properly. But if you want to transform them fully, you have to make a custom spell.
     
  3. orcling3

    orcling3

    Joined:
    Jul 29, 2010
    Messages:
    302
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Try using the "Bear Form" or "Crow Form" ability, most of these issues come from when you're trying custom transformation abilities on hero's, however, it can be done with some relatively easy triggers, if you can give me a detailed description of exactly what kind of spell you want I'll see if i can come up with something for you :D
     
  4. SharSash

    SharSash

    Joined:
    Feb 17, 2018
    Messages:
    8
    Resources:
    0
    Resources:
    0
    Make sure you use Metamorphosis from night elf section of abilities, not Illidans special one that turns him forever. Check in the object editor in abilities section that you selected both normal and metamorphosis unit correctly. Check if you have any triggers connected to this ablility that might effect it.
     
  5. Mechcash

    Mechcash

    Joined:
    May 30, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    So I want a Water-Elemental to be able to turn into an Reef-Elemental (the neutral creep one) for a specific period of time.
    If you need more information just tell me.

    Thanks for your help in advance :)


    Edit: when I use Bear Form the unit just dies, which is kinda funny:xxd:
     
  6. orcling3

    orcling3

    Joined:
    Jul 29, 2010
    Messages:
    302
    Resources:
    2
    Maps:
    2
    Resources:
    2
    I came up with this for you, this trigger is not the best but it works and i think it's easy to understand
    • Stage 1
      • Events
        • Unit - A unit Begins casting an ability
      • Conditions
      • Actions
        • -------- Change "My Custom Ability" to your spell --------
        • Set CustomSpell = My Custom Ability
        • -------- ----------------------------------------------------------------------------- --------
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Ability being cast) Equal to CustomSpell
          • Then - Actions
            • Set CastingUnitType = (Unit-type of (Triggering unit))
            • Set CastingUnit = (Triggering unit)
            • -------- Change This Variable to what ever unit you want the ability to transform the unit into, it can be anything. --------
            • Set TransformedUnitType = Reef Elemental
            • -------- ----------------------------------------------------------------------------- --------
            • -------- The number 30 can be changed to how ever long you want the metamorphosis to last --------
            • Set Length_Of_Abiltiy = 30.00
            • -------- ----------------------------------------------------------------------------- --------
            • -------- DO NOT CHANGE --------
            • Unit - Replace CastingUnit with a TransformedUnitType using The old unit's relative life and mana
            • Set MetamorhpedUnit = (Last replaced unit)
            • -------- DO NOT CHANGE --------
            • -------- ----------------------------------------------------------------------------- --------
            • -------- Set your custom effect for your spell here --------
            • Special Effect - Create a special effect attached to the origin of MetamorhpedUnit using Abilities\Spells\Other\Charm\CharmTarget.mdl
            • -------- -------------------------------------------------------- --------
            • -------- DO NOT CHANGE --------
            • Unit - Add a Length_Of_Abiltiy second Water Elemental expiration timer to MetamorhpedUnit
            • -------- DO NOT CHANGE --------
          • Else - Actions

    I've included the trigger in the map that I've attached, so that you can just copy the trigger over to your map, just make sure that before you copy it over, go into your editor and to go to the top left and click
    Files > Preferences > And make sure "Automatically create unknown variables while pasting trigger data" is ticked.
    However there is an issue with my trigger, it will sort of stop working once multiple units start using it, due to the second stage of my trigger. However I am sure that anyone of our lovely hive members will have the knowledge that I don't and will give you the information required to fix this, in the mean time i will continue to try and figure out how to make the second part of the trigger work the way we want :D
    • Stage2
      • Events
        • Unit - A unit Dies
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Unit-type of (Triggering unit)) Equal to TransformedUnitType
          • Then - Actions
            • Unit - Create 1 CastingUnitType for (Triggering player) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
          • Else - Actions
     

    Attached Files:

  7. Mechcash

    Mechcash

    Joined:
    May 30, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    It works great, but could you just help me to add an cooldown to the ability :)?
     
  8. orcling3

    orcling3

    Joined:
    Jul 29, 2010
    Messages:
    302
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Hmm, I've tried to change the trigger to force a cooldown but for some reason, it won't work :/ Perhaps some of our other more experienced members such as @Fruit Forest May be able to help you better than i can, i wish there was more that i could do.
     
  9. Fruit Forest

    Fruit Forest

    Joined:
    May 16, 2016
    Messages:
    708
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Kinda not understand. Do you need the demon hunter-like metamorph but remove the problem with death animation?
     
  10. Mechcash

    Mechcash

    Joined:
    May 30, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    So @orcling3 already wrote a trigger for the ability to work. My water elemental now transforms accordingly. But after the transformation ends, the spell has no cooldown. That's the issue.
     
  11. Fruit Forest

    Fruit Forest

    Joined:
    May 16, 2016
    Messages:
    708
    Resources:
    1
    Maps:
    1
    Resources:
    1
     

    Attached Files:

  12. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    529
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    No it isn't a "Illidan's only ability". It can work on any unit, you just have to check the right unit types and the dependencies on the units between metamorphosis.
    I don't get why no one talked about this, but it's much more simple on object editor than creating this through triggers that won't even have the same exact effect. "Data - Normal Form Unit" field must be changed to the normal unit which is the normal state. "Data - Alternate Form Unit" field is the transformed unit type. Now the "Techtree - Dependency Equivalents" of the normal unit MUST be set to the transformed unit. No need unnecessary triggers for this
     
  13. Daffa the Mage

    Daffa the Mage

    Joined:
    Jan 30, 2013
    Messages:
    6,530
    Resources:
    16
    Maps:
    5
    Spells:
    10
    Tutorials:
    1
    Resources:
    16
    Metamorphosis is somewhat buggy from what I remember, though it should do the job nicely.