Soo I decided to use a DDS in my map. i imported it and got bugs. first i thought the DDS is buggy but "looking for Help" helped me to find the mistake in my map. he wrote me this:
becasue im a GUI user and dont know much about JASS i couldnt figure out how to fix it...
perhaps someone can help me to fix the error messages? :/
Ok after checking your map I guess I know what is causing the problem. Whenever I use you ability "Kokuen no Tate" as you described, I get an AutoIndex Error message and from then on, the DDS is disabled. This can be observed by this simple trigger:
which isn't fired anymore after that error. As this happens exactly when you use the spell "Kokuen no Tate" and you create a dummy unit within the onDamage event of that spell, it is obvious that this dummy is causing the problem with auto index. Those are the error messages:
- OnDamage
- Ereignisse
- Spiel - damageEventTrigger becomes Gleich 1.00
- Bedingungen
- Aktionen
- Custom script: call BJDebugMsg(R2S(udg_amount))
"AutoIndex error: Code outside AutoIndex altered Rune's index."
"AutoIndex error: Atu Rune and Shodai Hokage now have the same index."
The thing is, that when this error occurs, AutoIndex crashes the thread of the DDS. Therefore, the correction of the negative damage can't be performed by the system anymore, which results in healing of units.
So fix your problems with the dummy unit/AutoIndex and everything will work fine. Its not the DDS thats causing the problems here, but your code that is crashing the thread. Btw: you would have the same problems with any other DDS (no DDS likes it when you crash its onDamage thread^^), also if it doesn't support damage type detection (like Weeps). You just won't notice the problem so fast because the units won't get healed, but those DDS will crash silently.
becasue im a GUI user and dont know much about JASS i couldnt figure out how to fix it...
perhaps someone can help me to fix the error messages? :/