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

Mana draining cluster rockets?

Status
Not open for further replies.
Level 4
Joined
Jul 23, 2007
Messages
129
Let's call them Feedback rockets. Just make a custom version of cluster rockets and call it feedback rockets.

Description: Fires specially designed anti-magic rockets at a target area. Enemy units in the area will be damaged, stunned, and have a portion of their mana burned away. Burned mana deals damage equal to the amount burned. Units with 20 or less mana do not have their mana burned.

  • Feedback Rockets
  • Events:
  • Unit - Unit begins the effect of an ability
  • Conditions:
  • Ability being cast equal to (Feedback rockets)
  • Actions:
  • Unit Group - Pick every unit within ([[the aoe of feedback rockets]] of (target point of ability being cast) matching condition (matching unit belongs to an enemy of owner of (triggering unit)) and (matching unit is alive) and (matching unit is a structure equal to false) and do actions:
    • Actions:
      • Unit - (If (mana of ((picked unit) - 20) greater than 0), then (Set mana of picked unit to (mana of (picked unit) -20)), else do nothing.
      • Unit - Cause (triggering unit) to damage (picked unit) for 20 damage of type spells and type spirit-link.
If you want the drained mana to go back to the caster (which doesn't make sense to me) add this action:

  • Actions:
  • (If (mana of ((picked unit) - 20) greater than 0), then (Set mana of (triggering unit) to (mana of (triggering unit) + 20)), else do nothing.
Of course you can add whatever special effects you would like to make the ability look different than regular cluster rockets.
 
Level 2
Joined
Sep 30, 2007
Messages
20
thats a problem too, i cant do things like this, for example:

Deal damage equal to 100 + str x 2



Edit: i wont even try to make MB Rockets, simply wont find anything in your trigger that works in WE (normal). is it a point or a region? :S
 
Last edited:
Level 4
Joined
Jul 23, 2007
Messages
129
Sure you can.

Add this to the pick every unit block:

  • Actions:
    • Unit - Cause (casting unit) to damage (picked unit) for (100 +(Real(Stength of (casting unit)) x 2)) damage of attack type (spells) and damage type (normal).
 
Last edited:
Level 2
Joined
Sep 30, 2007
Messages
20
where do i get strenght from? is it a real?? heres my trigger containing life.
  • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing (1.00 x (Life of (Triggering unit))) damage of attack type Spells and damage type Normal
 
Level 10
Joined
Sep 6, 2007
Messages
440
You use convert real to integer thing in the arithmetic heading on the VALUE. Also a bug. There must be some delay before the mana drain. Otherwise the rockets will burn mana
before they even reach their target. However doing so would make it hard to be MUI I guess.
 
Status
Not open for further replies.
Top