• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Floating numbers

Status
Not open for further replies.
Level 10
Joined
Apr 27, 2012
Messages
235
Hello everyone,

I attached a testmap.
When gold items are picked up, a yellow floating number appears.
This number can be simulated with floating text triggers (see testmap).

In the testmap, I did both methods. But I want the trigger generated floating text to be EXACTLY like the original. Same color, same flaoting speed. Maybe someone knows the respective data...

+rep guaranteed ツ


Edit: The text file GonePostal posted here might contain what I need. But which number belongs where in the triggers? Testmap upload appreciated...
 

Attachments

  • Resource simulation.w3x
    21.7 KB · Views: 66
Level 6
Joined
Jan 4, 2014
Messages
227
this should work ( you can adjust the velocity which looks slow relatively to the warcraft original text maybe)

  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads +15 at P with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
      • Floating Text - Hide (Last created floating text) for (All players)
      • Set F = (Player group((Owner of (Picked unit))))
      • Floating Text - Show (Last created floating text) for F
      • Custom script: call DestroyForce(udg_F)
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 0.50 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.01 seconds
      • Item - Set the custom value of (Picked item) to 0
      • Item - Remove (Picked item)
      • Player - Add 15 to (Owner of (Picked unit)) Current gold
      • Sound - Play ReceiveGold <gen> at 100.00% volume, attached to (Picked unit)
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Yes, it's in the MiscData.txt right at the top.

gold:

Color=255,255,220,0 -> 100% alpha (0% transparency), 100% red, ~86% green, 0% blue
Velocity=0,0.03,100 -> speed is 0 in x direction, 0.03 (~54 in GUI) in y direction, dunno what the 100 stands for
Lifetime=2 -> lifespan to 2 seconds
FadeStart=1 -> fadepoint to 1 second

bounty:

Color=255,255,220,0 -> 100% alpha (0% transparency), 100% red, ~86% green, 0% blue
Velocity=0,0.03,100 -> speed is 0 in x direction, 0.03 (~54 in GUI) in y direction, dunno what the 100 stands for
Lifetime=2 -> lifespan to 3 seconds
FadeStart=1 -> fadepoint to 2 seconds
 
Status
Not open for further replies.
Top