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 04-01-2013, 02:01 PM   #1
CharZard
User
 
CharZard's Avatar
 
Join Date: Feb 2013
Posts: 6

CharZard has little to show at this moment (0)

Default Help with Hero/morph trigger

I am trying to create a morph spell similar to the one that a unit spell changing the druid of the talon into it's bear form. I wanted to have a very similar spell but instead have it be a hero ability, and would change a hero version of the druid of the talon into a hero version of his bear form. In addition to this I wanted him to have different spells in each hero form. The problem is that when my hero changes from hero form to bear form he doesn't have the ability to get his new spells and he simply changes his visual form. I have realized now that this probably requires triggers to accomplish it, but I have no idea where to even start.
thanks for anyone who can toss me some help on this :)
__________________
Yes, I know CharZard is spelled wrong
rawr
CharZard is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-01-2013, 02:25 PM   #2
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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

Default

Unfortunately, there is no way to change hero skills once they are learned (unless they are the same base spells with just upgraded stats, in which case you could use Engineering Upgrade).
__________________
Anitarf is offline   Reply With Quote
Old 04-01-2013, 07:09 PM   #3
CharZard
User
 
CharZard's Avatar
 
Join Date: Feb 2013
Posts: 6

CharZard has little to show at this moment (0)

Default

Does that mean the spells cant be dropped as well? like if he changed forms he gains some unit abilities and cant use his normal form spells?
__________________
Yes, I know CharZard is spelled wrong
rawr
CharZard is offline   Reply With Quote
Old 04-01-2013, 07:58 PM   #4
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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

Default

You could disable/hide the skills the hero has by using engineering upgrade to morph them into alternate passive/disabled versions. The only thing that can't be done is change them into abilities that do something else (like, from an aura to a targeted spell).

If the effects of the spells are triggered, then as long as the spells are targeted the same it should be possible to morph a hero skill of the regular hero into a different skill on the morphed hero. This doesn't really make much sense, though, if the spells are completely different then why would learning one of them mean the hero has also learned the other in his alternate form? It'd probably make more sense to just disable his spells and give him additional unit abilities in his alternate form, like you suggested.
__________________

Last edited by Anitarf : 04-01-2013 at 07:59 PM.
Anitarf is offline   Reply With Quote
Old 04-02-2013, 05:24 AM   #5
CharZard
User
 
CharZard's Avatar
 
Join Date: Feb 2013
Posts: 6

CharZard has little to show at this moment (0)

Default

so if I was going to do something like that, how would I trigger it to drop the hero spells and pick up unit spells?
__________________
Yes, I know CharZard is spelled wrong
rawr
CharZard is offline   Reply With Quote
Old 04-02-2013, 09:18 AM   #6
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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

Default

Well, if it's a morph spell like Demon Form, you might not even need any triggers. Simply add the bonus unit abilities and the engineering upgrade ability to the alternate form in the object editor. The engineering upgrade should replace all the hero's regular skills (which the alternate form also has) with placeholder versions that can't be used. Initially, I thought these could be passive abilities so players couldn't click them but this might not work, since engineering upgrade keeps most of the properties of the original spell so the abilities would likely remain active. Instead, you'll probably need to disable the placeholder abilities for all players with a trigger at the start of the game (I guess I was wrong when I said you wouldn't need triggers :) ). This will remove them from the command card, effectively hiding the original hero skills when he morphs. If this is acceptable, you can keep it this way, otherwise you'd need additional passive unit abilities that you'd add to the hero with a trigger when he morphs to represent disabled hero skills on the command card.
__________________
Anitarf 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 10:23 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 - 2013, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services