Thursday, April 19, 2012

How do i create this area of effect poison?

Ok, i have a boss in my map with an ability called Poison Shock. It's a custom ability based on Forked Lightning, only with poison graphics, now, the ability hits up to 7 targets in range (like Forked Lightning, just bigger) and when it hits i want it to apply a poison DoT that ticks for 1 dps and stacks each time the Poison Shock hits.

So eventually after say 20 casts of Poison Shock on the same targets, they will be ticking for 20 dps.

Anyone know how i can make this work?|||I really hate triggering spells... Anyways, what exactly is the problem? the graphics? the DoT? the whole thing?|||Well, a lot of things messed up really, graphical side to, but i don't mind that. Are you familiar with the sort of "bolt of poison" that hydras and spitting spiders do with their attack? Well, i tried putting that as the art for the attack in the place of Forked Lightning in hopes that it would shoot those in multiple directions, just like Forked Lighting, just poison and would look cool. All that happens is the impact poison effect shows on the targeted units, i'm ok with that though, it's sufficient.

What my problem really is, is that i have no clue about how to make the DoT work. Since making the Poison Shock add a poison buff/effect to it's target doesn't actually do anything, the DoT area comes from a seperate ability (envenomed weapons for example). So for it too work, i would need the effects of two abilities combined into one, if that makes any sense.

I'm completely stumped. |||Here's a sloppy proof-of-concept GUI version full of memory leaks.

Ok nevermind it won't me upload a map. Here's the single trigger anyway.


Code:
poison fork
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Poison Fork
Actions
Unit Group - Pick every unit in (Units within 200.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
Unit - Create 1 dummy for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add Shadow Strike (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)

The Poison Fork spell is a version of channel with an aoe target circle. Nothing fancy. The dummy is an invisible footman w/ lots of mana. Also, shadow strike doesn't stack DPS, but I'm sure you could just replace it with another spell that does.|||Thanks dude, i'll give it a try. Not exactly how my spell works but i believe the dummy can be used my way too.

My first time utilising the dummy caster but i'll give it a shot!

No comments:

Post a Comment