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

Checking for completed Research

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,192
Are there any ways of checking if a research/upgrade has been completed without setting real values, like "ColdArrowsUpgrade = 1?"
Yes there are, as pOke has shown. One can get the level of an upgrade directly. It is an integer value, so might need typecasting to real for calculations. Like all integer functions one can assign it to an integer real or use it as a argument to any other function or action.
 
Status
Not open for further replies.
Top