HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with unit morphing problems please...

05-26-2003, 06:42 AM#1
DigiMajik
I'm having one heck of a time getting units to morph. i can get custom spells down without a problem, but i cant get a unit to morph into another unit correctly at all. can u look at my stuff and tell me what i'm doing wrong possibly?

now the spell shows in the editor and in game. in game tho, i get the guys faces instead of the pics. as you can see below that i included them, so they should work. in game i can research and use the ability, only if its based off the dh's meta and not bearform can i even pull off a morph. then evertime they morph back, they're all screwed up. they'll either be left with a pic of what they had morphed into previously in their box, or their stats will be destroyed. one time after morphing back from being a chim, i had -15 dmg, -5 armor, a total of 100hp and permanent zero mana.

i have no idea whats causing this. now im pretty familiar with pulling and putting the files i need for custom stuff. i can and have made skins and custom spells that have been implimented with no problems, but for some reason, i cant get this to work, or it's completely broken when i do. any help will be greatly appreciated thx.

A003 AEme A003 flip 1 1 0 hero 1 1 1 _ 0 1.5 60 180 150 - - Edem 0 0 500 efon

[A003]
Name=flip
Tip=flip (|cffffcc00T|r)
Ubertip=flip
Hotkey=T
Researchtip="Learn flip (|cffffcc00T|r) - [|cffffcc00Level %d|r]"
Researchubertip="flip"
Researchhotkey=T
Globalmessage=
Globalsound=

[A003]
Art=ReplaceableTextures\CommandButtons\BTNInvisibility.blp
Researchart=ReplaceableTextures\CommandButtons\BTNInvisibility.blp
Buttonpos=0,2
Order=metamorphosis
Unbuttonpos=0,2
Researchbuttonpos=0,0
05-26-2003, 07:34 AM#2
Earth-Fury
spells thta morph units are bad news to modyfy. they never work right.
05-26-2003, 11:50 AM#3
Dead-Inside
EF, if you have nothing better to say, then don't say it.
However, you can make a trigger-based morph-spell. If you would like to I'll just tell you the details on how to do this.
05-26-2003, 03:48 PM#4
DigiMajik
that would be great. i need it to where, when a certain hero clicks that ability, then they transform into that.

think of eul's wolf or troll-beserker rage spells.

i just need to know what items i need to change and where. thx.
05-26-2003, 05:11 PM#5
Earth-Fury
trrigger based morph is best. make a dumi spell based of a spell with no target, and:

Code:
Events:
A unit owned by player [#] is isued an order without a target.
Conditions:
isued order = order(dumi spell)
Actions:
item: give item carried by [orderd unit] in slot [#] to [a hero, contoled by neutral player]
unit: switch [orderd unit] with [morped form]
item: give item carried by [neutral hero] in slot [#] to [orderd unit]


now, if u have more than one unit thta casts this spell, make a hero in regon for every type of the morphing unit created, and use a unit variable array.
05-26-2003, 06:58 PM#6
DigiMajik
i got that to work just fine, thx for the help....

i just have one problem, i cant figure out how to get the unit to morph back.

i want it to be a temporary thing, not a permanent change. i need for the player to be able to hit the button, morph, than after about 30 seconds turn back to the original unit. kind of like avatar.

thats why i was trying to get it done through custom spells, cuase i cant find a way to buffer the unit's stats so they can change back. if you have any more ideas, please let me know, thx.
05-27-2003, 02:08 PM#7
DigiMajik
*Bump*

I'm actually quite suprised that i have to bump this. I asked this here becuase this is supposed to be the best of the best community for wc3 modding and i've only gotten one answer. i know this is kinda complicated, but i figured that there would be at least one person who would know what i'm talking about.

Thanks again Earth-Fury for the help. Unfortunately, i need for the unit to be able to switch back to the original hero with the original hero's stat's, and i cant find a way for this to work. Granted your's is the best way i've found for doing a permanent change, but i need a temporary one

Where i'm at so far:

I've gotten the change to work just fine, if i base the spell or meta. Anthing based off bearform or crowform dosent work for me, and it should.

Major problems:

The units change as normal but the original unit's portrait gets stuck as the portrait. When they switch back to the original hero, the 2nd hero's portrait is showing. All changes afterwards have the same switch. Always the opposite portrait for whichever hero.

The pic will never show for the button. I have no problems with other custom spell's buttons showing, just anything having to do with a morph. My normal custom spells also show up in the correct slot I tell them to, but the my morph spells force themselves into the middleslots even though i tell them to go on the bottom.

What i'm doing to make this all work. is copying the dh's meta spell, changeing the unitid(for the meta model) to another hero.
i'm making sure to use exising heros, as that was recommended to me to do this with. i'm using the blademaster and he's transforming into the farseer that has been altered to be another(skinned) blademaster. the transformation works great in game, i just have the problems listed before.

As i said before, i have no problems at all with normal custom spells, but morph custom spells have these problems. I know this can be done, becuase it's how Eul does it in DOTA. If anyone is familiar with what i'm talking about please help.
05-27-2003, 03:22 PM#8
Panto
Quote:
I'm actually quite suprised that i have to bump this. I asked this here becuase this is supposed to be the best of the best community for wc3 modding and i've only gotten one answer.
Maybe you should wait for more than a day, man. It's a forum, not IRC. People don't necessarily hang out here. They just check it now and then.

Regarding your morphing problem, I'm afraid I can't personally help, but I do remember that there was another thread on here a little while ago with the same problem. Try going a few pages back or using the search feature.
05-31-2003, 05:33 AM#9
ChrydGod
Guess what, i made exactly what you need.

I was making a morph replacement for Eul (remember the dragon knight flying form doesn't fly)

All trigger based, i made it retain spells learn & experience and selections & items.

A pity Eul didn't contact me back as it is working like a charm.

If you want this method (unless you already sorted the problem) i will post ax example map you could copy& paste the triggers from . Let me know.

Regards
06-03-2003, 04:26 PM#10
DigiMajik
yea that would help thx. i found a way to do it with spells, but the portrait still messes up. plus i would like to have a trigger based one. thanks.
06-03-2003, 05:17 PM#11
Guest
the only thing i can help with is telling you that that portrait thing is just a weird bug. after you have morphed back try selecting another unit and then selecting the hero again, the portrait is back to normal.

so, to fix it you might try to include in your trigger something

action:
select every unit owned by player (someone else)

action:
select triggering unit


i've never played with select actions, but i'm pretty sure that would work-- of course the above isn't the proper wording...
06-08-2003, 03:00 AM#12
Guest
i HATE to read long posts so i decid to help you ( maybe posytes here i dunno )
But u can give a unit ( normal ) [ get special editor with able ot put HERO ABILITTIES into NORMAL units( it in first section like around 4th thread ) ]
just add metamorphesis and change the demons model
NOTE: you can use thise TWO TIMES with illidan's spell wich is PERMANENTLY and normal meta wich is TEMPOARY and they may only be one unit at a time
ANOTHER WAY: make triggers: that u type sumthing and it turns to a unit u made EXAMPLE: Player X types: Turn to Spider
Action: Create ( UNit like example the Spider ) with triggering unit
sumthing like htat i think its like evolving or sumthing