I was hoping ya'll could help with two separate abilities I want to give a unit in a UMS map I'm making. Both of these abilities are for a variant on a Marine, though I'd like to extend these abilities to other units as necessary.
1) I want to be able to modify a ranged attack so that the attack does different damage at different ranges. If I could actually do this mathematically, that'd be cool, but I'd be happy enough with just having two attacks one at close range (say, 6), one at long range. These would both be missile attacks. I tried looking at the Hydralisk to understand how I might approach this but everything associated with Weapons and all that is a complete mystery to me right now.
2) I want to implement a blindfire special ability. Basically you select an area, and the unit fires at the area with a chance of doing damage to a random unit in the area, even if it's cloaked. Kind of like an AoE, but it can only ever hit one target, and only randomly hits it.
If you get just point me in the right direction, say at relevant tutorials, or what kind of data to look at, or what I should be doing, that would be enormously helpful. I can do logic-stuff like scripting and edit what I understand of the data files, but I really just don't understand how weapons/effects/behaviors work well enough to even know where to begin.
I was hoping ya'll could help with two separate abilities I want to give a unit in a UMS map I'm making. Both of these abilities are for a variant on a Marine, though I'd like to extend these abilities to other units as necessary.
1) I want to be able to modify a ranged attack so that the attack does different damage at different ranges. If I could actually do this mathematically, that'd be cool, but I'd be happy enough with just having two attacks one at close range (say, 6), one at long range. These would both be missile attacks. I tried looking at the Hydralisk to understand how I might approach this but everything associated with Weapons and all that is a complete mystery to me right now.
2) I want to implement a blindfire special ability. Basically you select an area, and the unit fires at the area with a chance of doing damage to a random unit in the area, even if it's cloaked. Kind of like an AoE, but it can only ever hit one target, and only randomly hits it.
If you get just point me in the right direction, say at relevant tutorials, or what kind of data to look at, or what I should be doing, that would be enormously helpful. I can do logic-stuff like scripting and edit what I understand of the data files, but I really just don't understand how weapons/effects/behaviors work well enough to even know where to begin.
Thanks.
1. Use a set of damage effects with validators for various ranges. 2. Use target sort "TSRandom" to randomly sort targets for a search area effect.
That should be enough to get you moving in the right direction.