Spellbook + Morphing Problem

SkyXyden

New Member
Reaction score
3
I have this weird bug in my map where when a Hero with spellbook ability dies while in morphed form and he got revived, he lost all the ability in the spellbook. Can anyone help?
 

Justice-BR

New Member
Reaction score
8
1) The morphing ability unit is the same type as the hero?

2) Try to enable the spellbook when the hero dies and disable it when it revives

3) there are some field called to "keep abilities when morphed" on the morph spell or gameplay constants, i dont remember right now.

4) ... going to test it
 

SkyXyden

New Member
Reaction score
3
Alright, its a Unit Ability.

The problem I having when the Hero dies while morphed (In this case, Chemical Rage) and dies, the skills in the book are gone. The temporary solution is to remove and add back the skillbook when I revive the hero with a trigger, which works, BUT thats only for trigger reviving.

My problem here is, what if the hero has reincarnation skill/item? I can't code out a trigger to solve that problem, but anyway here what I did...

Longveity Stone has a reincarnation delay of 10 sec while Aegis has 5 sec, I added 3 sec on both because of death time and another 0.5 sec to be safe. Still it dosen;'t work... need some help x_X

Code:
Dragon Rage Revive
    Events
        Unit - A unit Dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Dying unit)) Equal to Azure Dragon
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 1 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 2 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 3 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 4 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 5 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 6 DR)
                (Unit-type of (Dying unit)) Equal to Azure Dragon (Level 7 DR)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) has an item of type Longevity Stone) Equal to True
            Then - Actions
                Wait 13.50 seconds
                Unit - Remove Skill List (Ranged Deltro) from (Dying unit)
                Unit - Add Skill List (Ranged Deltro) to (Dying unit)
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) has an item of type Aegis of the Immortal) Equal to True
            Then - Actions
                Wait 8.50 seconds
                Unit - Remove Skill List (Ranged Deltro) from (Dying unit)
                Unit - Add Skill List (Ranged Deltro) to (Dying unit)
            Else - Actions
                Do nothing

This problem is bothering me for quite long while, any who is really kind enough to solve it for meI'll be eternally grateful :):):):):)<3

And + Rep too
 

Akolyt0r

New Member
Reaction score
33
i think ...dying units with reincarnation dont trigger the "a unit dies" event ..so that will be the cause that your trigger doesnt work...
 

Azylaminaz

Vox Populi
Reaction score
91
Then also add an event for when the ability is used.

The unit still dies, it just doesn't trigger the event. You can just do a periodic check every... five seconds or w/e and check if the unit is dead. If so, refresh the spellbook.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top