| 06-15-2004, 11:36 PM | #1 |
Ok easy ^_^ , I want to make a kinda health bar above every unit in a range of 800 from my hero. Easy, I use floating text in a trigger like this Event: Every sec Condition: no Actions: Pick every unit in range of 800 matching five conditions you dont need to know and do: Create a floating text Called blabla bla! Simple but now it is where it starts getting complex. I want the bar to follow the unit and the bar values must change depending of the creep health. So what i had thought was to create two variable, one integer, the other floating text array with like 40. So it gives something like: Event: Every sec Condition: nothing Actions: Set Integer variable= 1 Pick every unit in range of 800 matching five conditions you dont need to know and do: Create a floating text Called blabla bla! Set Floating text variable(array integer + 1) = Last created floating text and before the trigger start I add small actions like: Set Integer variable= 1 For loops Integer A do: Destroy Floating text variable(IntegerA) But the only things that appear is one hundred floating texts.... This is not an extremly hard question lol but it isnt easy ^_^ Hope you can give me an answer Thank you |
| 06-16-2004, 12:29 AM | #2 | |
Quote:
I think there is a in-game button u can press and shows their health... |
| 06-16-2004, 12:38 AM | #3 |
Yes there is. Press alt and it does the healthbars for you :) Unless you want to trigger this for Experience or you want it to showup without having to press the button... but whatever. Im no expert so i wouldn't know how to do this. sorry. |
| 06-16-2004, 02:13 AM | #4 | |
Quote:
Lol good try but I am not sure it would work because when you remove alt it stop... so it would need to be like every .06 and my game is already bit laggy so i dont want to add such thing thanks anyway lets see if someone else can find it |
| 06-16-2004, 03:53 PM | #5 |
Anyone no the answer? |
| 06-16-2004, 04:40 PM | #6 |
It looks like what your trying to do might involve JASS you might want to talk to some of the Jassers because making the floating bar follow the unit is something the world editor is not pre-programmed to do. I'd recommend using a multi board and making a health bar there there is one already made in the Repository. |
| 06-16-2004, 11:19 PM | #7 |
The only way to make floating text follow your unit is to repeatedly recreate it very quickly. This causes stupid amounts of lag (case-in-point, battleship command). Not feasible unless you objective is to cause lag to palyers' computers. One way that you could do this is to use a serious of SFX that you can attach to the overhead of each unit. Maybe you could have a model of a bar with 8 levels of progression and repeatedly apply the correct SFX to the picked units. In my opinion this is still a useless gimmick that adds nothing to the map beyond a certain wonky difference solely for the sake of adding something different. I believe that maps should be designed with a minimalist approach and I'm loath to add things that don't enhance or improve gameplay. It's all about "flow" experience and if an element isn't adding to that, don't bother working it out. |
| 06-17-2004, 02:17 AM | #8 |
In thruth i dont want it to follow exactly unit move... I tried it and it isnt laggy with a periodic one second trigger event. I just want the value to change. It might not improve the gameplay but it makes my system easier to understand in fact...(it is not a usual warcraft3 fighting system) I just want to be able to delete the floating every seconds |
| 06-17-2004, 03:23 PM | #9 |
The easiest solution to this is to get WEU. They have built in "Create floating text for X seconds" triggers. No fuss, no mem leaks. |
| 06-17-2004, 03:58 PM | #10 | |
Quote:
I had to make two set variable trigger... Thanks anyway |
