• 🏆 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!

Unlearning Tech/Upgrades

Status
Not open for further replies.
Level 4
Joined
Aug 17, 2008
Messages
81
Hiya, how would I go about unlearning tech/upgrades or setting it to a lower level of the tech tree?

I'm trying to make it so that if a unit leaves a region, it will lower the tech tree level making it unable to perform a skill it has, is this possible? I've come into a dead end and I don't know how to

  • Player - Set the max research level of UpgradeTest to 1 for (Owner of Unit)
  • Player - Set the current research level of UpgradeTest to 1 for (Owner of Unit)
I even tried using a dummy unit as a requirement teched skill, however when I remove/kill the unit, it also does not unlearn the tech requirements, the unit may still use the ability.

Both do nothing to help me, how would I go about lowering a players tech level, or doing anything to show on the ability that it requires to be in the region disabling it until it meets requirements and then disabling it again when it doesn't meet requirements? I've seen such things before in maps, so there must be some way.

I'm using WEU, and I don't know JASS. Help me please THW.
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
Welcome Tazuwukei, one way to solve your problem would be to replace the ability with an ability that has the same tooltips and so on, but requires a certain techlevel you did not upgrade yet, if its a hero ability, then store its level in an integer variable and set the replacing ability to the same level
 
Status
Not open for further replies.
Top