• 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.

Debuff + Damage

Status
Not open for further replies.
Level 3
Joined
Oct 2, 2004
Messages
29
I want to make a spell that debuffes a target (enemy) unit and then damages that unit for a 'solid' amount of damage, like 75/100/125 or something. I would like to make it an hero-ability, so it will need 3 levels.
Could someone tell me what to do (concerning triggers etc)?
Vale,
H.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Base it off purge lets say. Change the stats so it doesn't slow the unit and it affects only enemy units. And as for the trigger, have the caster damage the target with the Unit - Damage action. For multiple levels use IFS to check for the current level of your purge spell.

~Daelin
 
Level 3
Joined
Oct 2, 2004
Messages
29
Ok.. well it works.. with these triggers:
Shatter Level 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shatter
(Level of Shatter for (Triggering unit)) Equal to 1
Actions
Unit - Order (Triggering unit) to damage (Target unit of ability being cast) for 25.00 using attack type Spells and damage type Normal.

I made 3 levels, but they're all alike (only more damage). (based it off Abolish Magic; needed the autocast)
When I tested the spell, it worked, but the problem is that when you just cast it, it damages the target, even if there aren't any buffs 'destroyed'.
Is it possible to deal damage per buff, instead of a basic amount?
That would make the 'no buff, still damage' problem history, wouldn't it?
How could I make it deal damage per buff?
Thanks for your help Daelin :)
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Well, there is no way you can directly detect how many buffs an unit has BUT you make a dummy unit with very high maximum mana and no basic mana and order it to cast a devour magic. The spell will take the buffs and you can check depending on the current mana of your dummy how many buffs it has.

~Daelin
 
Level 3
Joined
Oct 2, 2004
Messages
29
Well... :shock: just forget about the number of buffs then... :shock:
Can I make the spell to only damage the target IF it has a (doesn't matter how many) buff?
Could I do that with a condition?
 
Level 3
Joined
Oct 2, 2004
Messages
29
Yeah... the only way to make the ability require a buffed unit is when you condition it with a type buff... so you can't do this in a general way at all?
that's lame :(
Well, Thanks for your help!
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Well I would like to know one thing; how to make it accord with hero levels? I can't find a condition for that, and i dont know if that exists but the condition i wanted was

Ability equal to level 2 equal to true (whatever)

There must be a condition like this one. :?
 
Status
Not open for further replies.
Top