| 06-19-2006, 04:09 AM | #1 |
I really need to get a floating damage system and preferably a floating exp system as well. Here is my trigger.. it leaks but I dont know why. Part 1.. Trigger: ![]() Event
![]() A unit is attacked
![]() Condition
![]() Action
![]() Trigger - Add to text check <gen> the event (Unit - (Attacked unit) Takes damage)Part 2.. Trigger: ![]() Event
![]() Condition
![]() Actions
![]() Floating Text - Create floating text that reads (String((Integer((Damage taken))))) above (Attacked unit) with Z offset 0.00, using font size 12.00, color (16.00%, 54.00%, 20.00%), and 0.00% transparency
![]()
![]() Floating Text - Set the velocity of (Last created floating text) to 96.00 towards 90.00 degrees
![]() Floating Text - Change (Last created floating text): Disable permanence
![]() Floating Text - Change the lifespan of (Last created floating text) to 0.75 seconds
![]() Floating Text - Change the fading age of (Last created floating text) to 0.75 secondsIt seems to only have a problem when there are fast attacking enemies. Quicker than the lifespan timer of the thing. Please help |
| 06-19-2006, 04:19 AM | #2 |
If I'm not mistaken floating text has to be nulled either w/ custom text or by making the whole spell Jass and setting the text to variables and nullin them. That would probably solve your leakage issue. What is the problem you are having with the floating text? |
| 06-19-2006, 04:39 AM | #3 |
Course, this is gonna leak MAJORLY in a long game because you are constnatly adding events. Unfortunetly, there is no way to remove events without destroying the trigger. So pretty much, you will have to create a local trigger for each unit that is attacked. |
| 06-19-2006, 08:59 AM | #6 |
If this works griffen I am going to love you for life. |
| 06-19-2006, 09:32 AM | #7 |
i cant find Trigger: Unit Group - Pick every unit in TempGroup and do action Trigger - Add event (Picked Unit) takes damage to Damage Display.anywhere... This is what I found... Trigger: I dont see to damage display.. ?? where do i find that |
| 06-19-2006, 09:34 AM | #8 |
Damage Display is another trigger, you should be able to find it in the list in the menu where (This trigger) is selected. |
| 06-19-2006, 09:40 AM | #9 |
My coices are This trigger Trigger - Create Trigger Advanced - JASS Code I am using WEU .. . Will that make a difference? |
| 06-19-2006, 09:53 AM | #10 |
There should be a box above that with a drop down list of all the triggers in your map. |
| 06-19-2006, 10:10 AM | #11 |
Okay thank you all of u. Going to test it out. |
| 06-19-2006, 11:33 AM | #12 |
It works, Flawlessly. I love you guys. Thank u |
