• 🏆 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] [QUICK] Tech-type problem

Status
Not open for further replies.
Level 5
Joined
Nov 21, 2014
Messages
151
Hey there, I know you can check for which tech-type is researched, but can you also check for the level that this is? (If it's you know the same upgrade with multiple levels) I don't see it in the intiger/real comparison nor in the normal tech-type region. Thanks in advance as always!:thumbs_up::thumbs_up:
 
Level 7
Joined
Oct 19, 2015
Messages
286
There is no native function for getting the tech level, so you'll need to keep track of it yourself by using a trigger with the "unit finishes a research" event.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
Do you guys mean a way to check the lvl something like "GetTriggerTechLvl"?

Other than that, there is this native:

JASS:
constant native GetPlayerTechCount takes player whichPlayer, integer techid, boolean specificonly returns integer

In GUI, you can find it in "Integer Comparrison - Player - Current Research Level"
 
Status
Not open for further replies.
Top