• 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.

[Trigger] Floating Text Issue

Status
Not open for further replies.
Level 1
Joined
Dec 12, 2009
Messages
4
I want to make a trigger that when a hero picks up an item, floating text follows him wherever he walks. The problem I'm having is that if he picks up the item, the floating text just stays where the item was. Any way to circumvent this? +rep if sucessful in helping me.
 
Level 8
Joined
Apr 30, 2009
Messages
338
you would have to create very short duration floating texts many times each second to have the effect. So just to lay out what you need to do:

I would use 2 tirggers for this.

TRIGGER 1:
  • Item Text 1
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item being manipulated) Equal to Claws of Attack +15 0012 <gen>
    • Actions
      • Unit Group - Add (Triggering unit) to grp
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item Text 2 <gen> is on) Equal to False
        • Then - Actions
          • Trigger - Turn on Item Text 2 <gen>
        • Else - Actions

TRIGGER 2:
  • Item Text 2
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in grp) Greater than 0
        • Then - Actions
          • Unit Group - Pick every unit in grp and do (Actions)
            • Loop - Actions
              • Set temp_point[0] = (Position of (Picked unit))
              • Floating Text - Create floating text that reads MESSAGE at temp_point[0] with Z offset 100.00, using font size 6.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Show (Last created floating text) for (All players)
              • Floating Text - Change the lifespan of (Last created floating text) to 0.06 seconds
              • Custom script: call RemoveLocation( udg_temp_point[0] )
        • Else - Actions
          • Trigger - Turn off (This trigger)
 
Last edited:
I want to make a trigger that when a hero picks up an item, floating text follows him wherever he walks. The problem I'm having is that if he picks up the item, the floating text just stays where the item was. Any way to circumvent this? +rep if sucessful in helping me.

can you post the trigger you made?
 
Status
Not open for further replies.
Top