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

Non static Tooltips?

Status
Not open for further replies.
I'd like to have a variable inside of my tooltips, but to do that i'd have to change a StringExternal or use catalog value field set creatively, anyone know how to do something like this?

Example:

Drone. 100 income.

I'm trying something like:
Catalog - Set value of Buttons (String(UnitTypes[Loop])) "Tooltip" for player 1 to ((Value of Buttons "Tooltip" (String(UnitTypes[Loop])) for player 1) + (" " + ((String(IncomeForEachUnit_LV[Loop])) + " Income.")))

PS: All my buttons have the same ids as the units so this should still work.
 
To my knowledge of the GE this isn't possible, but then again my knowledge isn't that vast.
If you do figure that out, please let me know :)
But if I were to do that right now, I would have the say the best way of doing it would be to edit something other than a button (example being a pop-up display that shows how much the unit currently costs on some custom UI or using text message triggers).
 
Status
Not open for further replies.
Top