• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Damage Over Time

Status
Not open for further replies.
Level 5
Joined
Oct 3, 2009
Messages
93
Hey guys, I'll try to be as specific as possible

Basically, I have a base attack of the marine gun and an upgrade that makes it do more vs buildings, but I would rather it just apply a damage over time effect of (lets say 5 per second for 20 seconds)

Short version,

Need an upgrade that makes a Marine's Gun attack apply a DoT to structures only.

Thanks in advance.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Upgrade enables buff behaviour on marine unit that provides on attack functionality.
On attack functionality runs apply behaviour effect if target is a structure (may need validator).
Apply behaviour effect adds damage over time buff behaviour.
Damage over time buff behaviour perodically runs a damage effect, stacks once per unit and has a finite non-refreshing duration.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
How do I make the upgrade enable a behavior on a unit
Using eithor a validator or a requirement.

How do i make the behavior provide on attack functionality
Same way immortal's hardened shield works using a buff behaviour but in reverse. You just change the position of the unit from defender (unit takes a hit) to attacker (unit deals a hit).
 
Level 5
Joined
Oct 3, 2009
Messages
93
Okay, I think I messed up somewhere else lol.
How do I make it apply the behavior to the attacked unit?

What I have is a behavior called DoT with an effect to apply the Burn behavior, my problem is it wont apply it to anything, dont have any requirements or validators even on yet
 
Last edited:
Status
Not open for further replies.
Top