| 08-09-2004, 07:30 PM | #1 |
SetTextTagPosUnit (texttag t, unit whichUnit, real heightOffset) returns nothing I want to use that JASS code on my RP but, it's giving me errors every time I set it up. Anyone want to help me by giving me a example? It would be really helpful :D. |
| 08-09-2004, 08:02 PM | #2 |
we have to see the code your using thats causing the errors. |
| 08-10-2004, 02:11 AM | #3 |
If I was to use that in trigger, how would I set that up? Let's say I want it to say substring 2-4, over picked unit. |
| 08-10-2004, 03:36 AM | #4 |
call SetTextTagPosUnit(SubString( udg_thestring, 1, 4), GetEnumUnit, 10) Im no good with the SubString function. if that gives you the wrong part of the string then fool around with the numbers or use SubStringBJ( udg_thestring, 2, 4) |
| 08-10-2004, 05:23 AM | #5 |
call SetTextTagPosUnit(SubStringBJ(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()), GetEnumUnit, 10) I put that in and it's still giving me errors, please help >.>. |
| 08-10-2004, 05:29 AM | #6 |
call SetTextTagPosUnit ( SubStringBJ ( GetEventPlayerChatString( ), 7, StringLength(GetEventPlayerChatString()), GetEnumUnit(), 1.0) It says I have an invalid argument... |
| 08-10-2004, 04:09 PM | #7 |
you need to give a text tag that you are setting the position to as the first argument, i think your usuing the wrong function. Code:
native SetTextTagPosUnit takes texttag t, unit whichUnit, real heightOffset returns nothing |
| 08-10-2004, 06:01 PM | #8 |
That's just to move a floating text to a target? How would I set it up? I was informed it was a secret floating text that locks to the unit it is set to. |
| 08-10-2004, 06:15 PM | #9 |
GetEventPlayerChatSt ring you accidently put in a space. doh! fugly got it. use the function CreateTextTagUnitBJ CreateTextTagUnitBJ takes string s, unit whichUnit, real zOffset, real size, real red, real green, real blue, real transparency returns texttag what this does is creates the text tag. next you set that to a variable (global). then you have another trigger that runs every .01 seconds and tell it to move the tag to the unit using SetTextTagPosUnit. and the first argument for SetTextTagPosUnit is textag t, not a string. so instead you punch in the name of the variable the floating text is assigned to.. gah.. i shouldve know that. oh well. |
| 08-10-2004, 08:42 PM | #10 |
So I have the floating text bound to an array on a floating text variable... SO THEN HOW would I move floating text(integer a) to unit(integer a) ? Twistar if you got on AIM maybe you could explain it more throughly. |
| 08-10-2004, 09:43 PM | #11 |
SetTextTagPosUnit(udg_thetexttagvar[index], GetEnumUnit, 1.0) run that every .01 seconds. if you still dont get it ill be on AIM: twistar9999 |
| 12-24-2004, 02:31 AM | #12 |
I am working on something very similar and this seems to cause game crashes after ~30 minutes. Any ideas? This trigger would be run ideally every .25 seconds to move a floating text above the head of a unit. Then, every 30 seconds as the floating text is removed a new one is created and the same process ensues. However, I have done all of this yet I am getting crashes. |
| 01-02-2005, 05:17 AM | #13 |
Guest | Hey guys, World Editor Unlimited isn't working too well for me... I.e. the advanced triggers part. I followed the exact steps set out in the documentation, correct me if i'm wrong... Make my map Open with WEU enhancer, enable the advanced triggers Save the map Then, when I try to open the map in WEU it didn't work, just said triggers missing Now, I'm fed up, and I won't bother using WEU's advanced triggers anymore, instead, I want to learn some JASS.... Question here is: How do I make a function that takes the value of a real number of the damage taken by a particular unit and dealt by another particular unit. That is my crucial problem, I think I have the rest sorted out, but is it possible to do that function in like.... 5 or 6 lines of JASS? If so, can someone please post the answer? Thanks in advance! |
