HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question About Floating Text

03-15-2006, 10:16 AM#1
hourglasseye
How do i make it that a floating text would be seen only by one player or a player of my choosing? I'm trying to make a lumber version of the gold bounty floating text (a green version of the yellow text that appears every time you get to kill a bounty-giving unit for e.g. +10 instead of +10).

Also, (off-topic) is there a way to access the lumber bounty value of a unit so I can use it for this? I hope I didn't ask a 2-nooby-4-you question
03-15-2006, 10:27 AM#2
Thunder_Eye
I suppose this means ban?

and for your problem
Set tempPlayer = (Some player)
Custom Script: if GetLocalPlayer() == udg_tempPlayer then
Actions.....
Custom Script: endif
03-15-2006, 10:33 AM#3
hourglasseye
Oh shi... I hope so. Scarred for life here @.@ Anyhow... Thanks. I was kinda hoping there was some non-JASS solution. But I think I can handle this. Thanks again.
03-15-2006, 10:37 AM#4
Thunder_Eye
Well It's still just GUI. you just put the "If Getlocalplayer" before your floating text actions, and then an "endif" afterwards.
03-15-2006, 11:01 AM#5
hourglasseye
Really? Hmm... didn't know JASS and GUI could be combined like that. Cool. Thanks again!
03-15-2006, 02:13 PM#6
Chuckle_Brother
Instead of going to trouble like that you can directly change gold text colours in some file, UI\Misc.txt or whatever. Dunno if it actually works, but there is a file like that that stores the text colours for pretty much everything, including mana burn, gold, lumber, critical strike, etc
03-15-2006, 04:57 PM#7
hourglasseye
I wasn't planning on changing the color of gold text colors. What I intend is for there to be lumber text colors together with gold... I've tried looking for something in the game interface panel that would allow my map to show lumber earnings but found none (probably because there are no creeps in melee maps that cough up lumber so i guess they didn't bother to put in that feature). Sooo.... yeah. I gotta go through trouble like this it appears :P Unless of course I did overlook something on the game interface editor... Thanks for your concern though ^^
03-15-2006, 08:05 PM#8
Jiminiyainoda
It looks ok like this, maybe you want to fiddle about with the fading age and the colour of the text, but thats the basics

Trigger:
Collapse Actions
Floating Text - Create floating text that reads *Your Message* at *Your Point* with Z offset 0.00, using font size 11.18, color (12.50%, 100.00%, 12.50%), and 0.00% transparency
Floating Text - Hide (Last created floating text) for (All players)
Floating Text - Show (Last created floating text) for *Your Player*
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 lifespan of (Last created floating text) to 5.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.45 seconds
Player - *Your Player*'s Current gold to ((*Your Player*'s Current gold) + 1)

EDIT: Every creep can drop lumber, you just need to edit the creep to give 'Lumber Bounty Base', and dices if you want it to be more 'random' like. In the object editor under 'Stats'