• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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