How to unlearn ability and learn another

revlisilver

New Member
Reaction score
0
Im trying to make it when a character picks up a certain item it will change an ability for them. But I also want them to have there old abilities skill points. So I have tried this but it does not force the unit to learn the skill it just keeps the old skill. And the Tome of retraining is custom so it will be used right away making it used before the abilities switch

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Sheath of the Ninja
    Actions
        Hero - Create Tome of Retraining and give it to (Triggering unit)
        Unit - Remove Flame Strike from (Triggering unit)
        Hero - Learn skill for (Triggering unit): Flame Strike xxx 
        Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: Please Redistribute Your Skills Please
 
Try this:
Code:
Help
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Sheath of the Ninja
    Actions
        Hero - Modify unspent skill points of (Triggering unit): Add (Level of Flame Strike for (Triggering unit)) points
        Unit - Remove Flame Strike from (Triggering unit)
        Hero - Learn skill for (Triggering unit): Flame Strike xxx
        Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: Please Redistribute Your Skills Please
 
I assume you just wanted to make the move unlearnt again right?
Code:
Item Trigger
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Shimmerweed
    Actions
        Hero - Modify unspent skill points of (Hero manipulating item): Add (Level of Acid Bomb for (Hero manipulating item)) points
        Unit - Remove Acid Bomb from (Hero manipulating item)
        Unit - Add Acid Bomb to (Hero manipulating item)

Goddamn it. Sif beat me.
 
I have tried what HB said and the only thing is that when I do aquire the item, If the skill is at level 0 it says Can heroes that have learned spells not in cooldown can use this item and then it drops a book of retraining.

The one gref has shown me all it does is remove the ability if it already learned and add the ability that I want to make the hero learn into the usable skills not into the Portion of the hero that lets you use skill points.

What I want is for my trigger to force the hero to remove completely the skill and then learn a completely different skill

I can't even get my trigger to just make the hero learn a new ability so it can level.

I was thinking of also thinking of just making the item have an extra ability. The engineering ability from the tinkers abilities and just do it that way but I don't know how to set the engineering ability to other skills some help would be appreciated.

If there is jass out there that can do what im wanting. That is fine too
 
If you did my trigger EXACTLY, it shouldn't be dropping a book of retraining at all, as a matter of fact, it should work out fine, no messages. Try my trigger without editing at all first, then if it works, edit it as you will. I think you may have done something which stuffs it. Also as for the level 0 problem, add a condition:

Code:
(Level of Flame Strike for (Triggering unit)) Greater than 0
 
You can use the Tome of Retraining ability too, It should work if you supported it with triggers.
 
If you did my trigger EXACTLY, it shouldn't be dropping a book of retraining at all, as a matter of fact, it should work out fine, no messages. Try my trigger without editing at all first, then if it works, edit it as you will. I think you may have done something which stuffs it. Also as for the level 0 problem, add a condition:

Code:
(Level of Flame Strike for (Triggering unit)) Greater than 0

Ok I think I might know what Im doing wrong but I don't know how its happening.

I have tried this basic trigger with nothing custom at all.

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    Actions
        Unit - Remove Flame Strike from (Triggering unit)
        Hero - Learn skill for (Triggering unit): Human Archmage - Blizzard

It one doesn't remove flame strike from the unit because all I think its doing is removing the ability from the unit that is outside of the hero skill button(the button in the bottom-right). It is not deleting the ones inside the hero skill button.

Then the hero is not even learning the skill at all. It just acquires the item nothing happens.

When I do spend that initial point for the skill Flame strike and then pick up the item it does remove the outside ability that is able to be clicked on.

But it does not remove the ability at all from the "Hero level up skill menu"
It only removes the ability from the "Active skills"

If you can't remove an ability from the "Hero level up skill menu" thats ok
But the hero won't even learn a new one. Please tell me what im doing wrong.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      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