• 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.

Two in one spell

Status
Not open for further replies.
Level 3
Joined
Feb 25, 2009
Messages
38
Okay, so i'm making this hero, which is supposedly going to be TWO separate heroes in one.

So what I need is a spell to make the crossing work - i've tried alot of spells like Metamorphosis and the ether and corporeal form, but without success.

I will be using the Firelod as the standard hero (with pretty much the same stats). and by using a spell, the hero will completely swap to another hero with a diffrent spell selection, but maintaining XP and stats (for example buying a tome of agility, modding agility from 25 to 26, will make the secondary hero have 26 agility, instead of 25)

I thank for all kinds of help in advance ^^
 
metamorphosis will work fine... just be sure that both of the 2 heroes have the same metamorphosis ability... but you need to trigger the stats part...

well, maybe its better if you just trigger the whole thing

  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability Being Cast equal to MetaDummy
    • Unit-Type of TriggeringUnit is equal to Firelord
  • Actions
    • Set Agi = Agility of TriggeringUnit
    • Set Str = Strength of TriggeringUnit
    • Set Int = Intelligence of TriggeringUnit
    • Set EXP = experience of TriggeringUnit
    • Set Item1 = Item carried by Hero in slot 1
    • Set Item2 = Item carried by Hero in slot 2
    • Set Item3 = Item carried by Hero in slot 3
    • Set Item4 = Item carried by Hero in slot 4
    • Set Item5 = Item carried by Hero in slot 5
    • Set Item6 = Item carried by Hero in slot 6
    • Hero - Drop Item1 from triggering unit
    • Hero - Drop Item2 from triggering unit
    • Hero - Drop Item3 from triggering unit
    • Hero - Drop Item4 from triggering unit
    • Hero - Drop Item5 from triggering unit
    • Hero - Drop Item6 from triggering unit
    • Unit - Replace TriggeringUnit with other hero using the triggeringunits life
    • Hero - Give Item1 to LastReplacedUnit
    • Hero - Give Item2 to LastReplacedUnit
    • Hero - Give Item3 to LastReplacedUnit
    • Hero - Give Item4 to LastReplacedUnit
    • Hero - Give Item5 to LastReplacedUnit
    • Hero - Give Item6 to LastReplacedUnit
    • Hero - Set exp of LastReplacedUnit to EXP
    • Hero - Set Agi of LastReplacedUnit to Agi
    • Hero - Set Int of LastReplacedUnit to Int
    • Hero - Set Str of LastReplacedUnit to Str

  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability Being Cast equal to MetaDummy
    • Unit-Type of TriggeringUnit is equal to OtherHero
  • Actions
    • Set Agi = Agility of TriggeringUnit
    • Set Str = Strength of TriggeringUnit
    • Set Int = Intelligence of TriggeringUnit
    • Set EXP = Experience of TriggeringUnit
    • Set Item1 = Item carried by Hero in slot 1
    • Set Item2 = Item carried by Hero in slot 2
    • Set Item3 = Item carried by Hero in slot 3
    • Set Item4 = Item carried by Hero in slot 4
    • Set Item5 = Item carried by Hero in slot 5
    • Set Item6 = Item carried by Hero in slot 6
    • Hero - Drop Item1 from triggering unit
    • Hero - Drop Item2 from triggering unit
    • Hero - Drop Item3 from triggering unit
    • Hero - Drop Item4 from triggering unit
    • Hero - Drop Item5 from triggering unit
    • Hero - Drop Item6 from triggering unit
    • Unit - Replace TriggeringUnit with Firelord using the triggeringunits life
    • Hero - Give Item1 to LastReplacedUnit
    • Hero - Give Item2 to LastReplacedUnit
    • Hero - Give Item3 to LastReplacedUnit
    • Hero - Give Item4 to LastReplacedUnit
    • Hero - Give Item5 to LastReplacedUnit
    • Hero - Give Item6 to LastReplacedUnit
    • Hero - Set exp of LastReplacedUnit to EXP
    • Hero - Set Agi of LastReplacedUnit to Agi
    • Hero - Set Int of LastReplacedUnit to Int
    • Hero - Set Str of LastReplacedUnit to Str
 
Last edited:
Level 3
Joined
Feb 25, 2009
Messages
38
thanks!
This is a bit over my level of triggering, but i'll try to make it work:D

EDIT:
btw, what spell do i use for the "ability being cast equal to.." line? is any spell good (thunder clap i.e), or should i use metamorphosis?
 
This doesn´t save the abilities! Can you please fix that?

I didnt add support for abilities because his hero has different ability sets and it seems like he doesnt want to relate them... if your two heroes both have the same ability set or at least if you want their spell levels to be related, add this to set/load level...

Before Replace:
  • Set AbilLevel1 = Level of Ability for TriggeringUnit
  • Do this for every ability
  • Use different variables for each one
After Replace and should be after Set HeroExperience
  • For each integer A from 1 to AbilLevel1
    • Do - Actions
      • Hero - Learn Ability for LastreplacedUnit
  • Do so for the other abilities
NOTE: please make sure that the ability and AbilLevel combinations are constant...

This is just the main idea, I was hoping you could do it yourselves from here, but if you want a more precise version just post...
 
Status
Not open for further replies.
Top