• 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] Destroying FloatingTexts...

Status
Not open for further replies.
Level 1
Joined
Nov 29, 2008
Messages
1
I made Floatingtext in some events, and it was destroyed when it is just one.

But when texts made more than one at the same time, just one is destroyed and the others didn't be destroyed clearly.

Well .. I'm not good at making trigger, so I need your help.
 
  • Floating Text - Create floating text that reads (<something>) above (<unit>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    • Floating Text - Change (Last created floating text): Disable permanence
    • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
    • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
    • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
This is how i make it and it works for me :D
 
Level 10
Joined
Jan 14, 2006
Messages
160
I prefer this method to fade out Floating Text

  • FT
    • Event
      • Unit - A unit starts the effect of an ability
    • Condition
      • (Ability being cast) Gleich Schwarmraketen (Upgrade Level 2)
    • Action
      • Floating Text - Create floating text that reads xxx at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempFloatText = (Last created floating text)
      • Custom script: call RemoveLocation (udg_SlapPoint)
      • Trigger - Run Floating Text Fadeout <gen> (ignoring conditions)

  • Floating Text Fadeout
    • Event
    • Condition
    • Action
      • Custom script: local texttag tempTag
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 1.50 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating Text - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 7.50% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating Text - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 22.50% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 30.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 45.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 60.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 75.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 90.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Wait 0.06 game-time seconds
      • Custom script: set udg_TempFloatText = tempTag
      • Floating - Change the color of TempFloatText to (100.00%, 100.00%, 100.00%) with 100.00% transparency
      • Custom script: set tempTag = udg_TempFloatText
      • Floating - Destroy TempFloatText
 
Status
Not open for further replies.
Top