• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Transformation ability and Engine Upgrade

Status
Not open for further replies.

archimonde92

A

archimonde92

Currently I am working on an transformation ability that transformation an unit into another unit with stronger ability via Engine Upgrade. It work fine when I transform it, but when it untransformation. The learned ability all gone.
Example:
Unit A - hero ability = Storm Bolt, Blink, Roboglobin; unit ability = inventory.

Unit B (level1) - hero ability = Storm Bolt (level 1), Blink (level 1), Roboglobin; unit ability = inventory, engine upgrade (level 1).

Unit B (level2) - hero ability = Storm Bolt (level 2), Blink (level 2), Roboglobin; unit ability = inventory, engine upgrade (level 2).

Unit B (level3) - hero ability = Storm Bolt (level 3), Blink (level 3), Roboglobin; unit ability = inventory, engine upgrade (level 3).

Unit A cast Robogoblin, he become Unit B (level 3), His storm bolt and blink were upgraded by the engine upgrade to storm bolt (level 3) and blink (level 3). But when he Unrobogoblin, every ability he got will unlearned.
I try add Unengine Upgrade (level 1), Unengine Upgrade (level 2), and Unengine Upgrade (level 3) into a spellbook to the Unit A but the result much worst, his ability will not get upgrade when he Robogoblin.

Someone help me please?
 
^ Is that possible, even hero ability?
I don't want to relearn all the spell once you cast it.
 
Kino's suggestion can be used, but first, you must save the current level of the previous ability into an Integer variable, later then, load that saved variable and use the "Set Level Ability" action

But this bugged me. If the hero die while in another form, he will revive with no ability.
 
Status
Not open for further replies.
Back
Top