• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Creating a trigger that unlears a spell and gives skill points based on the level of it.

Status
Not open for further replies.
Level 5
Joined
Sep 22, 2011
Messages
77
There seems to be a bug with engineering upgrade, namely when you save heroes in the game cache and load them in the next level, they do not have any spells learned, only engineering upgrade and no skill points refunded.
So i came up with the idea of unlearning it and giving skill points based on the level of the spell(before saving the hero in the game cache)
How would you go about creating that trigger.

[Spell] - Engineering Upgrade in Campaigns
This tread better explains my problem.
 
Level 5
Joined
Sep 22, 2011
Messages
77
  • Set SkillLvl = (Level of EU_ABILITY for <unit>)
  • Hero - Modify unspent skill points of <Unit>, add SkillLvl
Or save that variable if that’s easier and set it on load.

Is it really that easy, thank a bunch, il try it out now :)
 
Status
Not open for further replies.
Top