| 01-29-2006, 12:28 AM | #1 |
I am havining some difficulty configuring the damage options for blade's Black Hole. These are the lines of code that deal with damage and what gets sucked in. Now, I have it set to ignore structures and heroes, yet it still sucks them in. Also, heroes that get sucked in can't be revived. Code:
function BlackHole_SuckDamageOptions takes integer level returns integer
return DamageTypes(ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC)+DamageOnlyTo(UNIT_TYPE_GROUND)+DamageOnlyEnemies()+DamageOnlyVisibles()+DamageIgnore(UNIT_TYPE_HERO)+DamageIgnore(UNIT_TYPE_STRUCTURE)
// Which units that can be sucked into the whole.
endfunction
function BlackHole_DamageDamageOptions takes integer level returns integer
return DamageTypes(ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC)+DamageOnlyTo(UNIT_TYPE_GROUND)+DamageOnlyEnemies()+DamageOnlyVisibles()+DamageIgnore(UNIT_TYPE_HERO)+DamageIgnore(UNIT_TYPE_STRUCTURE)
// Which units the black hole will damage, and how it'll damage them, if they aren't being sucked into the hole.
endfunction |
| 01-29-2006, 12:34 AM | #2 |
Of course Heroes can't be revived. They are removed, that's kind of what "removing them from existance" means. Anyways, if you want me to, I can make a version that only kills and send it to your email. You can not use DamageIgnore multiple times in the same DamageOptions, eventually use DamageException(type, 0) for the second one. |
| 01-29-2006, 12:40 AM | #3 |
[email protected] Send it there please, tonight if you can. I would very much appreciate it. |
| 01-29-2006, 12:53 AM | #4 |
Done. |
| 01-29-2006, 01:19 AM | #5 |
I blame the bitflag based system I made for damage options but no, you can't use the same DamageOption function twice. Good thing that DamageException exists. |
| 01-29-2006, 01:32 AM | #6 |
CAn you use damage exception more than once in the same function? |
| 01-29-2006, 01:55 AM | #7 |
No damage option function can be used more than once. |
| 01-29-2006, 01:59 AM | #8 |
Ok, well it worked out so thanks guys. On an unrelated note, would either of you like to play my map with me right now? I think you guys would like it. Fine then. :( |
