1. Choose the best Old Gods themed skin at the Texturing Contest #29 - Poll!
    Dismiss Notice
  2. Melee Mapping Contest #2 - Poll is up! Vote for the best competitive 1v1 map!
    Dismiss Notice
  3. Please help test custom maps and more on the latest PTR!
    Dismiss Notice
  4. Evolution complete! Make Darwin proud and go vote in the Techtree Contest #12 - Poll.
    Dismiss Notice
  5. Icon Contest #17 - Results are out! Step by to congratulate our winners!
    Dismiss Notice
  6. 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

Metamorphosis

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

  1. Mechcash

    Mechcash

    Joined:
    May 30, 2018
    Messages:
    43
    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:
    120
    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. HelloFlighty

    HelloFlighty

    Joined:
    Jul 29, 2010
    Messages:
    319
    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:
    12
    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:
    43
    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. HelloFlighty

    HelloFlighty

    Joined:
    Jul 29, 2010
    Messages:
    319
    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:
    43
    Resources:
    0
    Resources:
    0
    It works great, but could you just help me to add an cooldown to the ability :)?
     
  8. HelloFlighty

    HelloFlighty

    Joined:
    Jul 29, 2010
    Messages:
    319
    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:
    727
    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:
    43
    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:
    727
    Resources:
    1
    Maps:
    1
    Resources:
    1
     

    Attached Files:

  12. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    597
    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

    Map Reviewer

    Joined:
    Jan 30, 2013
    Messages:
    6,989
    Resources:
    21
    Packs:
    1
    Maps:
    7
    Spells:
    12
    Tutorials:
    1
    Resources:
    21
    Metamorphosis is somewhat buggy from what I remember, though it should do the job nicely.