Unlearning Spellbook...

IsenhaRt

New Member
Reaction score
0
I want to ask for help for unlearning spellbook ability from a Hero, without using any triggers..let's say another custom ability? or an item?
 

Baltazhar

Active Member
Reaction score
55
As far as I know, only 2 things can modify abilties of a unit/hero.
1: Object Editor: Can only change abilities in World Editor.
2: Triggers: Can only change abilities ingame.

So you need triggers for it to work. Why do you want to avoid using triggers?
 

IsenhaRt

New Member
Reaction score
0
As far as I know, only 2 things can modify abilties of a unit/hero.
1: Object Editor: Can only change abilities in World Editor.
2: Triggers: Can only change abilities ingame.

So you need triggers for it to work. Why do you want to avoid using triggers?

Oh im sorry! I realized that i need a trigger on how to unlearn the specific spellbook ability from the hero using another normal ability when click or begins casting....pls help!!
 

ertaboy356b

Old School Gamer
Reaction score
86
I don't have WE, but I can give you steps..

1. You need to detect the level of the ability your going to unlearn first.
2. Once you detected it, you need to set the ability level to (Ability Level - 1).
3. If ability level is 0, just end the trigger without doing the step 2.
 

IsenhaRt

New Member
Reaction score
0
What if the spellbook ability is a normal ability and it ignores leveling?
How can i detect a specific ability in a Hero?
 

imakunee

New Member
Reaction score
4
I would suggest being a little bit more specific as to what your doing. If you need to detect if a hero has a specific spellbook than you can add a buff to the spellbook and check if the hero has that buff. If you're using a trigger than activates under some other event then removes a spell, just do what Erta told you. Check the level of ability for the hero. If it's above 0 then you know the hero has it and can remove it. If it's 0, then do nothing since the hero doesn't have the ability.

Trigger:
  • Spellbook Removal
    • Events
      • Event - Your event that triggers this
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of SPELLBOOK ABILITY for (Triggering unit)) Greater than 0
        • Then - Actions
          • Actions that happen if unit has ability
        • Else - Actions
          • Actions that happen if unit doesn't have ability


That condition in the if statement is an integer comparison, in case you were wondering.

Hope that helps. :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top