I want to give a weapon to a unit that creates an effect at a random point near the attack target:
Black circle is the shooter.
Red circle the target.
Red dots are the random points nearby at which the effects will be created.
I want to use this to create a inaccurate weapon which doesn't necessarily hit the target.
So if anybody knows how to do this or knows another way to do it I'd be grateful :)
this is going to be a very very ruff answer, no editor to point out the exact fields, And im sure there is even a better way. But you can make a bunch of effects that set offsets, however, the effect that would be casted, would be the effect type that will pick 1 effect from the list randomly. thus giving it the random effect. Im not sure of the effect name that does this, but it was in one of P's tuts.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
If not, then you create weapon that deals no damage. Detecting the hit. And then creating points around the target. Picking one randomly determined by accuracy chance, and then create hit effect on the ground or if chance will pick target ?
If there will be projectile. Instead you can create invisible enemies around the enemy. Picking one randomly determined by accuracy chance, and then order unit to attach towards that picked target.
Could that work ? Dunno if you can do all this. Its how I would do it in Wc3 editor, if possible.
That would work with triggers, but I'm trying to find a good Data-only solution. So no dummy units. And I don't know how to pick a random point in the data edtior.
Well, I know there are SiteOps that choose a random offset but I think they're only for actors. And if not I wouldn't know how to use them to cast my effects.
Just to clarify I don't want a missile that simply hits different places on a unit or a building (like most missile weapons do).
I basically want a gun that can scatter. I fire at a unit or a building and it could very well be that I hit the unit next to it, or a random spot on the ground.
Wait what??, S3rius asking for help??. I thought I`d never see this day :p
Edit: Wouldn`t triggers help with this?.
Unit casts scatter spell
Apply damage buff/debuff/behaviour/effect to random target/point at target unit`s location.
Something like that. Could use regions too, maybe?
Just to clarify I don't want a missile that simply hits different places on a unit or a building (like most missile weapons do).
I basically want a gun that can scatter. I fire at a unit or a building and it could very well be that I hit the unit next to it, or a random spot on the ground.
Still the same, use the random offset from the persistent effect (offset from target point), then link to a search area effect of that random point, search radius and count can depends, then create missile toward that new target of the search, deal damage
I want to give a weapon to a unit that creates an effect at a random point near the attack target:
Black circle is the shooter.
Red circle the target.
Red dots are the random points nearby at which the effects will be created.
I want to use this to create a inaccurate weapon which doesn't necessarily hit the target.
So if anybody knows how to do this or knows another way to do it I'd be grateful :)
this is going to be a very very ruff answer, no editor to point out the exact fields, And im sure there is even a better way. But you can make a bunch of effects that set offsets, however, the effect that would be casted, would be the effect type that will pick 1 effect from the list randomly. thus giving it the random effect. Im not sure of the effect name that does this, but it was in one of P's tuts.
Would the projectile be visible or not ?
If not, then you create weapon that deals no damage. Detecting the hit. And then creating points around the target. Picking one randomly determined by accuracy chance, and then create hit effect on the ground or if chance will pick target ?
If there will be projectile. Instead you can create invisible enemies around the enemy. Picking one randomly determined by accuracy chance, and then order unit to attach towards that picked target.
Could that work ? Dunno if you can do all this. Its how I would do it in Wc3 editor, if possible.
@Molsterr: Go
I thought about just using offsets, but then I'd have to create dozens of effects with different offsets each (I think).
@tigerija: Go
That would work with triggers, but I'm trying to find a good Data-only solution. So no dummy units. And I don't know how to pick a random point in the data edtior.
Well, I know there are SiteOps that choose a random offset but I think they're only for actors. And if not I wouldn't know how to use them to cast my effects.
@s3rius: Go
You could simply copy the weapon of Queen of Blades and edit the attributes. The weapon name is
TTychus03 - Queen of Blades - Psi Blast
Thats how I got the effect that you are looking for. It would probably take 1/5 of the time! :D
-Misu <3
How does these things work in their original weapons ? (think battlecruiser) I always though there's something simple in data editro control that
Edit: create persistent effect has a check for random offset, might be it
Just to clarify I don't want a missile that simply hits different places on a unit or a building (like most missile weapons do).
I basically want a gun that can scatter. I fire at a unit or a building and it could very well be that I hit the unit next to it, or a random spot on the ground.
@s3rius: Go
Wait what??, S3rius asking for help??. I thought I`d never see this day :p
Edit: Wouldn`t triggers help with this?.
Unit casts scatter spell
Apply damage buff/debuff/behaviour/effect to random target/point at target unit`s location.
Something like that. Could use regions too, maybe?
Still the same, use the random offset from the persistent effect (offset from target point), then link to a search area effect of that random point, search radius and count can depends, then create missile toward that new target of the search, deal damage
@progammer: Go
Thanks, I didn't know about the Random Offset flag. That makes it easier :D
@EternalWraith: Go
Uhm actually I already knew the answer. I just posted the question to test you guys. Only progammer passed. All others will be TERMINATED.
Hey now, you still have to do the random offset a few times and link it with my method >.< I pass as well!\ =D
* cheers