help with metamorphosis-type skill please

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

darkxion
Member
Posts: 57
Joined: April 26th, 2007, 7:53 pm

help with metamorphosis-type skill please

Post by darkxion »

Does anyone know how to set it so, after using a metamorphosis-type skill, during the transformation, you can have certain skills the unit knows removed, and re-added when the skill is over? For example, say a unit normally has a "sword slash" ability, but when transformed doesn't have a sword, and thusly you want the ability removed during that transformation. sorry if it's a little confusing ^_^;
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: help with metamorphosis-type skill please

Post by Julian5 »

Well, when using skills like that, you get a completely different hero. So...just don't give the ability to the other hero. =P
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: help with metamorphosis-type skill please

Post by tru_power22 »

Metamorphosis doesn't give you another hero :P
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: help with metamorphosis-type skill please

Post by Arabidnun »

well, you could do a trigger Just replace the hero you had with another hero wait x amount of time and change back...

Here is the triggers:

Event:
-Unit - A Unit Starts the Effect of an ability

Condition:
-Ability being cast equal to (Custom Ability name)

Action:
-Set MorphHero[1] = (casting Unit)
-Set HeroItem[1] = (item Carried by (casting unit) in slot 1)
-Set HeroItem[2] = (item Carried by (casting unit) in slot 2)
-Set HeroItem[3] = (item Carried by (casting unit) in slot 3)
-Set HeroItem[4] = (item Carried by (casting unit) in slot 4)
-Set HeroItem[5] = (item Carried by (casting unit) in slot 5)
-Set HeroItem[6] = (item Carried by (casting unit) in slot 6)
-Unit - Replace (Casting Unit) with a (Metomorphasis Unit) using the old unit's relative life and mana
-Set MorphHero[2] = (Last Created Unit)
-Hero - Give HeroItem[1] to MorphHero[2]
-Hero - Give HeroItem[2] to MorphHero[2]
-Hero - Give HeroItem[3] to MorphHero[2]
-Hero - Give HeroItem[4] to MorphHero[2]
-Hero - Give HeroItem[5] to MorphHero[2]
-Hero - Give HeroItem[6] to MorphHero[2]
-wait (duration of meto ability)
-Unit - Replace (MorphHero[2]) with a (MorphHero[1]) using the old unit's relative life and mana
-Hero - Give HeroItem[1] to MorphHero[1]
-Hero - Give HeroItem[2] to MorphHero[1]
-Hero - Give HeroItem[3] to MorphHero[1]
-Hero - Give HeroItem[4] to MorphHero[1]
-Hero - Give HeroItem[5] to MorphHero[1]
-Hero - Give HeroItem[6] to MorphHero[1]

Its Temperary i just thought of it, somone can just base a better version off mine if they want..
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: help with metamorphosis-type skill please

Post by Julian5 »

tru_power22 wrote:Metamorphosis doesn't give you another hero :P
Really? Mine does. O-o It's not triggered either...
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: help with metamorphosis-type skill please

Post by tru_power22 »

I may be thinking of avatar....
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: help with metamorphosis-type skill please

Post by Bartimaeus »

tru_power22 wrote:I may be thinking of avatar....
You are. Metamorphosis transforms you into a different unit of your choosing in the ability editor in the object editor.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: help with metamorphosis-type skill please

Post by Aero »

Just use the...
Player - Disable <Your ability> for (Owner of (Triggering Unit))
Wait X.XX seconds
Player - Enable <Your ability> for (Owner of (Triggering Unit))
darkxion
Member
Posts: 57
Joined: April 26th, 2007, 7:53 pm

Re: help with metamorphosis-type skill please

Post by darkxion »

Right, should've known that, thanks a bunch Aero