HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Perfect Floating Texts

04-12-2005, 03:40 PM#1
Guest
Hi, I don't know if moderators want to put this post under "The Repository" section, but I think that these informations are very useful.
Here there are all the floating texts present in game and the triggers to do them (I used exactly Blizzard's data):

Code:
Gold Text

Floating Text - Create floating text that reads (+ + Gold) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 86.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 2.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00

Lumber Text

Floating Text - Create floating text that reads (+ + Lumber) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (0.00%, 78.00%, 31.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 2.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00

Bounty Text

Floating Text - Create floating text that reads (+ + Bounty) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 86.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 3.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00

"miss" Text

Floating Text - Create floating text that reads miss 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 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 3.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00

Critical Strike

Floating Text - Create floating text that reads (CriticalStrike + !) 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 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00

Shadow Strike Text

Floating Text - Create floating text that reads ShadowStrike at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (62.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00

Mana Burn Text

Floating Text - Create floating text that reads ManaBurn at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (32.00%, 32.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00

U have obviously to change the data like the text message and the position of floating texts.
Please add some reputation if u consider useful these informations.

StockBreak
04-12-2005, 06:57 PM#2
Raptor--
well, good job, even though i don't find this useful at all personally

but one thing, i wouldn't give rep anyways because once someone makes mention of doing this for rep they no longer are a candidate for recieving it from me
but thats just me
04-12-2005, 07:06 PM#3
Tear25
Wow thanks, I was just going to look for this. Wow awesome!
04-13-2005, 01:26 PM#4
Guest
Thx, I found the formula to obtain velocity on a Blizzard's file^^
04-13-2005, 01:44 PM#5
logik
its very helpful i agree... but somethings i want to point out...

put the triggers in "code" tags... like so

Code:
[ code]
[/ code]

without the space of course.


also maybe the implementation of temporary variables, for either or both the floating text and the temp point/posistion
04-13-2005, 04:33 PM#6
Dalten
Thanks for posting, I was wondering how the new triggers were going to work but I haven't had time to fix my existing system. I had it working perfectly before 1.18 but since they changed the new triggers my floating texts don't fade out anymore..
04-14-2005, 12:55 PM#7
Guest
Quote:
Originally Posted by logik
its very helpful i agree... but somethings i want to point out...

put the triggers in "code" tags... like so

Code:
[ code]
[/ code]

without the space of course.


also maybe the implementation of temporary variables, for either or both the floating text and the temp point/posistion
You mean in JASS?
04-14-2005, 02:11 PM#8
logik
no... for the actual post, dont put it in itallics, the [ i] and [/ i] change it to [ code] and [/ code]
04-14-2005, 03:16 PM#9
Guest
Ok, done^^
04-28-2005, 01:55 PM#10
Guest
Can be this post added to the Repository?
04-28-2005, 04:29 PM#11
Vexorian
Someone moved it.

Anyways just wanted to say that you don't need any permission to post in the repository as long as it is code sharing, of course. Next time you want to share some code feel free to do so at the repository.
05-03-2005, 12:04 PM#12
Guest
K, thx, didn't know ^^
05-22-2005, 12:13 PM#13
johnfn
Hmm, interesting, you have a small error here:
Code:
Floating Text - Create floating text that reads ShadowStrike at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (62.00%, 100.00%, 0.00%), and 0.00% transparency

That shouldn't be (Center of (Playable map area)), you might want to change it.

But otherwise good job. I hit the 24 hour limit on rep so you'll have to wait :P