HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

replace a unit and keep the ability lvl

10-30-2003, 03:07 AM#1
flybong
Hi
I want to replace a unit by another units and keep the ability and the ability lvl from the first unit. Im pretty sure its simple but didnt figured that out yet

Thank you
10-30-2003, 03:09 AM#2
Eriond
Whenever the hero learns a skill, use the event

Yourskill is an intedger Variable

Hero - Hero Learns a Skill

Learned Skill is equal to YOUR SKILL

Set Yourskill = Yourskill + 1



Replace Unit

For each intedger 1 to Yourskill
Learn YOUR SKILL

That should do it.
10-30-2003, 03:35 AM#3
flybong
I dont know if I did it well but it dont seems to work
10-30-2003, 03:38 AM#4
flybong
Can I just change the model used?
10-30-2003, 03:52 AM#5
Ligature
Is it a hero you're trying to replace or a normal unit?
10-30-2003, 03:54 AM#6
flybong
hero
I want to make a morph spell like my hero become a wolf for exemple
I tried to change the model with the avatar spells but didnt found it out:bgrun:
10-30-2003, 04:23 AM#7
Biflspud
Just give the morphed forms the same exact skills as the premorphed form. Order them to morph (either bearform or nightelfform; check the command phrase) and then remove the morph ability off of the new form.
10-30-2003, 04:34 AM#8
Grater
Use the chaos ability.
10-30-2003, 04:40 AM#9
Dragon
Use bear form as your base then check "Hero Ability". Then click a different spell and click back to your custom spell. Then fill in the info as needed.

Chaos is a 1-way transform as far as I know... so thats bad...
10-30-2003, 05:32 AM#10
Grater
Not exactly, you just use a different chaos ability to turn them back. The chaos ability is "consumed" when it's added to a unit (assuming tech pre-req are achieved), thus you can cycle unit type endlessly with chaos. It's pratically the magic transformation ability.
10-30-2003, 12:14 PM#11
IDISacredIDI
Ok i know im a n00b and everything but why not just you the hero skill metamorph? Change the Demon Hunter skin to what ever you need and then edit the .slk file (if your using RoC) so that the spell has 3 lvls and is active from lvl 1 (if you want it to be)

IDISacredIDI
10-30-2003, 04:06 PM#12
Silver_Lynx
IDISacredIDI is absolutely right, i've done it before. Use metamorphasis and just take off the 500 hitpoint bonus and change the model used. If you want to change him into a wolf, then you'll have to create a wolf for him to change into, but other than that, no problems.
01-24-2004, 04:27 PM#13
Dharko
I did that and have had big problems, if the hero is in alternate form and levels up and puts a level into the morph spell , he will not turn back to what he was. Then you have to use triggers to replace, which i am finding impossible.

EDIT: Not impossible, just very difficult. I have managed to do it now however. What I would like to know is how to make a player select a unit, so that when the unit is replaced the player does not have to select it again. If nothing about this is already in this forum ill make a new thread.