• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with abilities! Switching...

Status
Not open for further replies.
Level 1
Joined
Jul 26, 2005
Messages
3
Here's the problem!

I have a hero who morphs into another form.
Druid - Furbolg.

When shiftshaping, I want his abilities to change as well... so he can only use f.eks HEAL when a druid, and ROAR when furbolg. Any ideas how to do this?

Just giving the seperate units different Hero-Abilities doesn't work..
therefor I thought of maybe using normal unit abilities instead,
but then I would need some way of upgrading them?

Messy stuff... anyways, bring ideas! :p
 
Level 18
Joined
Mar 7, 2005
Messages
824
u can simply replace the unit:
make two heros your druid and the furbolg, gave them the spells u want and one spell with the "morph-ability", but change the morph to nothing so that nothing happens. then use a trigger:
event: -a unit begins casting a spell
condition: -spell beeing cast = morph
action: -create specialeffekt at position of casting unit (make so much specialeffekts u want)

-replace casting unit with furbolg

and now u have the new hero, it looks not so awesome as when he used the morph ability but thats a way which is simple and works, u have a new hero with new abilities. the funktion of the trigger above are not exactly correct so u have to search a little bit for them, good luck :)
 
Level 1
Joined
Jul 26, 2005
Messages
3
Thanks for the reply, but I - after hours of getting
into this whole editor - found the solution!

First I tried adding and removing abilities, using a
boleaan variable for Furbolg true or false. This way
I could add and remove the right abilites after what
form he was morphing From.

But then I needed something to retain the LEVELS of each skill,
so I made a trigger that said that whenever he learn a skill,
set variable Skill-X = Skill-X + 1.
And then set Hero Ability to Skill-X whenever he morphed.
And a little detail that made the Furbolg form unable to train an ability if Skill-X = 3.

But he (the opposite form of who could use the ability) would still get the button
for training the skill, even if it was maxed out...
as he didn't have that ability (removed when morph).

Then I found a action:
'Disable/enable ability for Player 1' :roll:
It practictly removes the ability, both learn and
cast alltogether... so GOODIE! :D

^^

All good now!
If anybody should be interested in borrowing this,
just gimme a hint :wink:
 
Status
Not open for further replies.
Top