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
85
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 The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1
  • The Helper The Helper:
    and I am back :)
    +1
  • The Helper The Helper:
    Happy Tuesday!
    +1

    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