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

[Spell] Problem with Spellbook ability and Transformations

Status
Not open for further replies.
Level 16
Joined
Jan 8, 2015
Messages
464
Hi, I was testing around and adding a spellbook ability with set of spells to Jaina on my map, but it doesnt seem to play nice with transformation spells(like druid of the claw or metamorhposis)
that i use to alternate variant of the hero visually(ie Mounted version or other variants alike).
After transformation book doesnt show any spells anymore. I thought about maybe moving the spellbook to an item instead of being directly an ability that Jaina has, but i doubt it would fix anything.
For now i just got rid of the transformation on Jaina to avoid it from happening but i wonder if there is a way to fix it somehow.
 
Level 12
Joined
May 16, 2020
Messages
660
I use the newest patch, so might not work for you. But in my map adding the following works:

  • Custom script: call UnitMakeAbilityPermanent(udg_FeralImpulse_Learner, true, 'A071')
So for example:

  • Feral Impulse
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Feral Impulse
    • Actions
      • Set VariableSet FeralImpulse_Learner = (Triggering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Learned skill level) Equal to 1
        • Then - Actions
          • Unit - Add Feral Impulse (Spell Book) to FeralImpulse_Learner
          • Unit - Set level of Feral Impulse (Spellbook ability) for FeralImpulse_Learner to 1
          • Custom script: call UnitMakeAbilityPermanent(udg_FeralImpulse_Learner, true, 'A071')
          • Custom script: call UnitMakeAbilityPermanent(udg_FeralImpulse_Learner, true, 'A073')
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Learned skill level) Equal to 2
            • Then - Actions
              • Unit - Set level of Feral Impulse (Spellbook ability) for FeralImpulse_Learner to 2
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Learned skill level) Equal to 3
                • Then - Actions
                  • Unit - Set level of Feral Impulse (Spellbook ability) for FeralImpulse_Learner to 3
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Learned skill level) Equal to 4
                    • Then - Actions
                      • Unit - Set level of Feral Impulse (Spellbook ability) for FeralImpulse_Learner to 4
                    • Else - Actions
This unit uses morph and still retains the spellbook ability afterwards.
 
Status
Not open for further replies.
Top