wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > General Development
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-17-2014, 12:30 PM   #1
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default how can i transform 1 hero into another hero

what i mean is transform one hero with weak stats into another with strong stats. how can i do that?
andreasaspenberg is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-17-2014, 04:13 PM   #2
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,269

Submissions (17)

moyack is a splendid one to behold (661)moyack is a splendid one to behold (661)moyack is a splendid one to behold (661)moyack is a splendid one to behold (661)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

you can play with abilities based on Belt of Giant Strength +6 (strength), Boots of Quel'Thalas +6 (agility) and Mantle of Intelligence +3 (intelligence). You can set the new abilities with multiple levels and trigger the ability level according to your needs.

http://classic.battle.net/war3/basic...ermanent.shtml
moyack is offline   Reply With Quote
Old 09-19-2014, 11:25 AM   #3
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default

that isnt what i am after. those just add a static change. what i want is for the hero to gain increased stats on level up after being transformed. i already know that that requires 2 units and that i already have but the transformation is what i have trouble with. please help me out.
andreasaspenberg is offline   Reply With Quote
Old 09-19-2014, 04:19 PM   #4
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Sounds like what you need is the Chaos transform ability. Simply add it to the Hero with a trigger when you want to morph him. Check out the campaign unit Grom to see how the ability is set up.
__________________
Anitarf is offline   Reply With Quote
Old 09-20-2014, 12:15 PM   #5
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default

chaos was the first thing i tried but the hero keeps its original hero stats when transformed that way. that is the problem. adding it with a trigger isnt as requirement though as the unit can just have it and then it activates when the correct requirement is present. i also tried the grom ability but as his hero stats doesnt change between forms i guess that blizzard just didnt add that possibility to the ability. i am willing to try other ideas if you have any however.
andreasaspenberg is offline   Reply With Quote
Old 09-20-2014, 02:02 PM   #6
deolrin
Tas'dingo!
 
deolrin's Avatar
 
Join Date: May 2008
Posts: 860

Submissions (13)

deolrin is a jewel in the rough (166)deolrin is a jewel in the rough (166)

Send a message via MSN to deolrin
Default

Would it be feasible to have a dummy hero and level him up in tandem with the original hero, and then replace the original hero with the dummy hero when required?
__________________
Resources: "I'm going to cut you into strips, dry you, and smoke you in my pipe!"
"Don't wait for the Grim Reaper - I'm going to mow you down!"
"Hasta la vista, baby!"

~Gladiator, Sacred
deolrin is offline   Reply With Quote
Old 09-20-2014, 04:42 PM   #7
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

If the stats are the only problem of the chaos morph, you can just increase them separately with the "Hero - Modify Hero Attribute" action.
__________________
Anitarf is offline   Reply With Quote
Old 09-20-2014, 08:10 PM   #8
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default

i suppose it possible to use triggers to change stats so lets have that as a last resort. i still want a better solution that doesnt require triggering.
andreasaspenberg is offline   Reply With Quote
Old 09-20-2014, 10:45 PM   #9
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Okay, under what conditions do you want the hero to transform in the first place? If it's a spell, you could just use Metamorphosis or Chemical Rage.
__________________
Anitarf is offline   Reply With Quote
Old 09-21-2014, 03:36 AM   #10
Fledermaus
default string
 
Fledermaus's Avatar
 
Join Date: May 2006
Posts: 640

Submissions (1)

Fledermaus has a spectacular aura about (148)

Send a message via MSN to Fledermaus
Default

His problem seems to be that when you do morph a hero to another hero, it keeps the first heroes base stat and stats per level values. As far as I know, you can't change those values so as Ani said, use "Hero - Modify Hero Attribute".

Last edited by Fledermaus : 09-21-2014 at 03:37 AM.
Fledermaus is offline   Reply With Quote
Old 09-21-2014, 08:29 AM   #11
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Ah, I see, the "stats per level" are also copied over, not just the current stats of the hero.

You could try replacing the hero instead of morphing it, the "replace unit" action carries over all items and experience, but not the skills so depending on your setup that might be more work than just updating the stats with triggers whenever the hero levels up.
__________________
Anitarf is offline   Reply With Quote
Old 09-21-2014, 11:14 AM   #12
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default

replace unit removes the items so then i would need to drop them first.
andreasaspenberg is offline   Reply With Quote
Old 09-21-2014, 01:40 PM   #13
deolrin
Tas'dingo!
 
deolrin's Avatar
 
Join Date: May 2008
Posts: 860

Submissions (13)

deolrin is a jewel in the rough (166)deolrin is a jewel in the rough (166)

Send a message via MSN to deolrin
Default

You could probably add the items to the dummy hero as your 'real' hero gains them. Or is that impossible to do in Warcraft III? Essentially switching positions with a disabled\hidden unit.
__________________
Resources: "I'm going to cut you into strips, dry you, and smoke you in my pipe!"
"Don't wait for the Grim Reaper - I'm going to mow you down!"
"Hasta la vista, baby!"

~Gladiator, Sacred

Last edited by deolrin : 09-21-2014 at 01:41 PM.
deolrin is offline   Reply With Quote
Old 09-21-2014, 03:06 PM   #14
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Replace unit does not remove items.

Expand JASS:
__________________
Anitarf is offline   Reply With Quote
Old 09-21-2014, 08:12 PM   #15
andreasaspenberg
User
 
Join Date: Jul 2007
Posts: 80

andreasaspenberg has little to show at this moment (4)

Default

it certainly do remove the items as the items dont transfer but, you should have remembered this as you helped me on another project where i had that issue.
andreasaspenberg is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:06 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services