• 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.

[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