Floating Text Help

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
just looking for a way to make text increase and then decrease in size over it's duration

using damage text that remains for 1.5 seconds and floats upwards and i would like criticals to kinda "flash" by getting slightly larger and then smaller
 

TomTTT

New Member
Reaction score
44
Well, to make it MUI, you need hashtables.
getting the basic idea is easy. First of all, at init, create a hashtable. Then, when the text should appear, you need to set a few variables.
Time (real) - the amount of time the floating text should appear, including increasing, decreasing and fading.
Unit (unit..) - The unit which is attacked.
Now add the unit that is attacked to a unit group.
Put all the values inside of a hashtable, under the Key(Attacked unit). Now, make a periodic of picking all units in the unit group, and depending on the time of the periodic also remove from the Real.
Trigger:
  • Event
    • Time - every 0.10 seconds of game-time
    • Conditions
    • Actions
      • Unit group - Pick all units in UnitGroup and do (Actions)
        • Loop - Actions
          • Set Time = (Load 1 of (Key(Picked unit)) in Hashtable)
          • Set Time = (Time - 0.10)

Now you need to make checks depending of your increasing\decreasing timing. Remember all is affected by the Time variable, it's like your counter for how long is the floating text is in air.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
thanks but im talking about the size of the text not the duration of the text
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
have jass but im bad with it :/

probably gonna need to use a pretty complex hashtable
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
hashtable help +rep for answers

wrong location sorry
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top