| 11-22-2007, 07:57 PM | #1 |
Hello everybody! I want to add a passive Ability, that every Unit, who got this ability, deals +50% damage from behind. My first problem is, that I can not find the Comparison if the Unit got the Ability. (As Event I just used "General Unit is attacked") My second problem here is, that I do not know how to add 50% of the Unit damage. (I could only find fixed numbers.) (Sorry, if some questions are noobish, but I stopped mapping about 3 years ago. Now I played a so called RISK Map (Europe Rev3) and I am totally in creating an own Risk Map. :D) |
| 11-23-2007, 12:09 AM | #2 |
This might help you: Detecting a Backstab (GUI) |
| 11-23-2007, 03:17 AM | #3 |
A dummy inner fire with +50% attack damage and very low duration could be cast on the unit when it starts an attack from behind. |
| 11-23-2007, 12:08 PM | #4 |
@Pyrogasm With that one I figured out how to check for the ability. (The other stuff seems to be too complicated for me atm. I want to try it GUI first because I am a total JASS noob.) edit I now tried your Backstab stuff. I exactly copied your JASS stuff for the beginning and just rewrote the then-part. Anyways now every unit is buffed even if it is infront of the victim. @TheDamien Thanks for that idea. But I have a problem that there should be around 100 units at the same time running this trigger. (For my Risk Map and about every melee unit should have this 'backstabbing'.) My Trigger atm: |
| 11-23-2007, 06:59 PM | #5 | |
Quote:
|
| 11-26-2007, 07:23 AM | #6 |
Well, Pyrogasm. I disabled my trigger and exactly copied your trigger stuff. But then my Footmen (Dummy Unit) were buffed no matter if they stood in front of their enemy or not. Now I use my own GUI Trigger because it seems to work flawless and with lots of units attacking at the same time. (and they are all being buffed of course) |
| 11-26-2007, 07:26 AM | #7 | |
Quote:
Biiiiggg mistake... I learned GUI and now I'm stuck with incompetent triggers. |
| 11-26-2007, 12:51 PM | #8 |
Perhaps it is. But atm I am contend with the GUI solution. ;) (( Or is this one leaking or having any problems I am not aware of? )) |
