• 0

    posted a message on Text Tag Help Needed

    I made a custom value for a unit and I want it displayed as a text tag. Here is what I made:

    Variable "SprintAmount"
    Initial Value: Convert Real to Text
    Value: Custom Value Of Unit
    Index: 0
    Unit: [Unit]
    Precision: 0

    Text((Custom value 0 of [Unit])) with 0 decimal places
    P.S. [Unit] is a variable that I have set.

    Trigger
    Events
    Every 0.01 seconds of Game Time
    Actions
    Create a text tag with the text SprintAmount for (Player group(1)), using a font size of 24, at (Position of [Unit]) and height offset 1.0, Visible, do not use Fog of War
    Wait 0.001 Game Time seconds
    Destroy (Last created text tag)

    For some reason, the text tag always returns "0"
    Help please, I'll post the SC2Map file to see what I mean.

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.