| 02-13-2004, 11:56 PM | #1 |
Hi, Need some help. (Sorry for misspelling and more, Late and tired) Well, I'll describe this short and clear. I want to make floating text to appear above a specific unit (hero) when typed, instead of in the chat. "Time" I also want it to be so that the text fades out after etc. 5 sec if words in the message is below 10, and fade out after 10 sec if words are more than 10. "New Message" And finally if you type a message: Hi, I'm so cool >'Hi, I'm so cool - is floating over the units head.' And then if he types something else, then I want the "Hi, I'm so cool" text to disappear and the new text appear over the units head. ------- One more problem is that the text will not follow the unit. If I type something, it will hang in the air. I want it to stay over the units head (even if he is moving) until "time" or "new message" condition is met. ------- I made it like this to try some: |
| 02-14-2004, 12:32 PM | #2 |
Really?! No Answers.. |
| 02-14-2004, 01:30 PM | #3 |
You have to periodically destroy the "old" text creating a new one above the hero, giving the appearence of movement. Than to fade out, each time you move the text, raise the transparensy slowly. |
| 02-14-2004, 09:10 PM | #4 | |
Quote:
There are JASS natives that can move a floating text, I don't know why blizzard didn't add them to the gui native SetTextTagPos takes texttag t, real x, real y, real heightOffset returns native SetTextTagPosUnit takes texttag t, unit whichUnit, real heightOffset You'll like to use the second one Custom script: call SetTextTagPosUnit( udg_Float, udg_TempUnit, 3.00) make Float a floating text variable and TempUnit a unit variable Everytime you want to move a floating text to a unit's position first set Float to the floatting text you want and TempUnit to the target unit, then make that Custom script line |
| 02-14-2004, 09:32 PM | #5 |
Hmm if it appears over the unit's head, would there be any way to make sure that it doesn't appear normally? Like you say "blah blah" It will appear above the unit. But not on the screen? |
| 02-15-2004, 01:04 AM | #6 | |
Quote:
Didn't find that feature.. |
| 02-15-2004, 01:19 PM | #7 |
Ok, I enabled "Use Advanced Triggers" on the map. But I didn't find any new Floating text actions available.. Or do you mean that I should do it in another way? |
