• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Floating text issue

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
Well.. i try to explain:
I have a unit a which shall have a floating text above it's model (it shows: Hits: x. The floating text (x) raises up by 1 everytime the unit attacks.
But since i can't caluclate the amount of units (with the text) which could be built, like either 10 or 100 or 1000 or else (they are not preplaced on the map), i don't know how to assign the variables which shall refer to the different floating texts.
Any solutions?
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
well not being able to use jass is not a big problem

Download the perfect unit indexing system
implement to your map

create 2 variables one named INDEX
one named UNIT

when getting units index
set UNIT = your unit
Custom script: set udg_INDEX = GetUnitIndex(udg_UNIT)
then INDEX becomes index of that unit

btw Im not sure about the function name
or just nvm and wait for poots tut (suggested)
 
Status
Not open for further replies.
Top