• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

unlearn skill points

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
Hey can any one help me >:D I need a trigger so that when revived all heroe abilities are unlearned but they keep their skill points

EX: Far Seer is at level 4

Has 4 skill points, 2 on chain lightning and 2 on far sight

When revived he has the same stats, level and experience as when

he died but now he has 4 raw and unused skill points
 
Level 12
Joined
May 22, 2015
Messages
1,051
I think there is a tome that does this. Tome of Retraining or Tome of Relearning or something. I don't remember exactly, but you can look around there for some clues. Might be as easy as giving the tome to the hero when they revive.
 
Level 9
Joined
Jun 10, 2013
Messages
473
I think there is a tome that does this. Tome of Retraining or Tome of Relearning or something. I don't remember exactly, but you can look around there for some clues. Might be as easy as giving the tome to the hero when they revive.

I know how to trigger it so they get it when first trained. how ever what I really need is for it to be used on them when their revived :/
 
Level 9
Joined
Jun 10, 2013
Messages
473
1. You create a function to count all spent points in the different skills and sum them up for all abilities.
2. You set the level of all abilities to 0.
3. You give them the number of skill points they had before you set all ability levels to 0.
4. Done.

Sounds good but can yoo give me any sorta idea on how the trigger will look? and thanks every one for helping
 

Shar Dundred

Hosted Project: LoA
Level 75
Joined
May 6, 2009
Messages
6,025
I haven't tested it yet myself, but this is how I'd try it.

attachment.php


If this doesn't work, I bet you can use a Jass trigger to do it by first adding the "Tome of Retraining" ability, then use the order string to make the hero use it and remove it again after being used.
 

Attachments

  • Unlearn.JPG
    Unlearn.JPG
    60.5 KB · Views: 212
Level 25
Joined
May 11, 2007
Messages
4,650
Go to the tome of retraining item, make it "Activate on equip" or whatever it's called, so it works like a tome and you don't need inventory space to use it.

Events - A unit finishes reviving
Actions Hero - Create item tome of retraining for revived hero.

Thats it.
 

Shar Dundred

Hosted Project: LoA
Level 75
Joined
May 6, 2009
Messages
6,025
Go to the tome of retraining item, make it "Activate on equip" or whatever it's called, so it works like a tome and you don't need inventory space to use it.

Events - A unit finishes reviving
Actions Hero - Create item tome of retraining for revived hero.

Thats it.

Ouch.
It hurts that I didn't think of that one. I was just considering giving the item and insta-using it, but I was unsure since it wouldn't work properly if the inventory was full. Forgot that one little damn option.

I thought tome of retraining was an item with a target ability, not an instant/powerup like other tomes? If that's not the case then yeah, just give them the item :)

It's not instant (unless changed as LordDz suggested), but if used it's being used on the hero carrying the item, therefore no target ability.
 
Level 9
Joined
Jun 10, 2013
Messages
473
LordDz once again thank you for pointing out the simple solution to me XD and thank you Shar for taking the time to make triggers but since theres no items on my map and the heroes do have inventories LordDz suggestion would be the best for me and thanks to every one else for all your help >:D
 
Level 9
Joined
Jun 10, 2013
Messages
473
Go to the tome of retraining item, make it "Activate on equip" or whatever it's called, so it works like a tome and you don't need inventory space to use it.

Events - A unit finishes reviving
Actions Hero - Create item tome of retraining for revived hero.

Thats it.

I'm afraid it only unlearns 1 skill point instead of them all?

  • Hero revive system
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
    • Actions
      • Hero - Create Tome of Retraining and give it to (Reviving Hero)
 
Status
Not open for further replies.
Top