Metamorphesis cutting out Spell Book ability

AriesX_420

Active Member
Reaction score
1
Hey,

I created a Custom Necromancer,
Now every 10 levels he can spend a skill point the Ability "Necro skills"
(which is based on Spell Book)

This Spell book has a couple of "1 level spells" in it. Every 10 levels it adds a new ability into the book or uses a new "same" ability to upgrade a previous one in the book. Thus making my necro have more abilities, along with his normal skill abilities.

This is not the problem however....

My Necro is Illidian and one of his normal Abilties is Metamorphesis... Obviously cause its bad ass!

Now i get to level 10 and use my skill point on my spell book ability and it works great. However when i use metamorphesis the Spell book Ability is still there however there are no spells in it anymore....

And when i convert back from metamorphesis the Spell book is still empty.

Both my Illidian and Metamorphesis have the same skill set...
Does anybody know why my Metamorphesis it cutting out the spells from my spell book ability?????


(PS i have the same thing for my warrior who uses AVATAR and when he transforms or converts back the spell book ability works fine... It obviously cause it cant go back and forth between 2 different characters... Anyway to fix it????:banghead:
 

Whisky

New Member
Reaction score
45
You are right, the spellbook won't work since the owner of the skill changes. You can prevent that by using some triggers..
Trigger:
  • Metamorphosis
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Metamorphosis
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Necro skills for (Triggering unit)) Not equal to 0
        • Then - Actions
          • Unit - Remove Necro skills from (Triggering unit)
          • Unit - Add Necro skills to (Triggering unit)
          • Trigger - Turn on Metamorphosis Check <gen>
        • Else - Actions


And then, if the metamorphosis is timed, you need to check if the unit still has the metamorphosis buff:

Trigger:
  • Metamorphosis Check
    • Events
      • Time - Every 1.50 seconds of game time
    • Conditions
    • Actions
      • Set Metamorphosisgroup = (Units in (Playable map area) matching (Matching unit) has buff Metamorphosis) Equal to True))
      • Unit Group - Pick every unit in Metamorphosisgroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Necro skills for (Picked unit)) Not equal to 0
            • Then - Actions
              • Unit - Remove Necro skills from (Picked unit)
              • Unit - Add Necro skills to (Picked unit)
            • Else - Actions
      • Custom script: call DestroyGroup (udg_Metamorphosisgroup)

I hope this helps :thup:
 

AriesX_420

Active Member
Reaction score
1
Thanks man, Yah i figured it had to be a periodic event trigger to add and take away the abilty, i also got to make it set for the level of the skill. good thing i only do it every 10 levels....
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top