• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Simple Explode spell

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2005
Messages
48
I am having trouble making a spell where when used the hero explodes and dies and deals 100xlevel of ability+100 to all units in 100 of the hero.

I tried this

Code:
Fatal Error
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Fatal Error 
    Actions
        Unit Group - Pick every unit in (Units within 100.00 of (Position of (Triggering unit)) matching (((Matching unit) is alive) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Fatal Error  for (Triggering unit)))) x 100.00) + 100.00) damage of attack type Spells and damage type Normal)
        Unit - Explode (Casting unit)


It didn't work
 
Fatal Error
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fatal Error
Actions
Unit Group - Pick every unit in (Units within 100.00 of (Position of (Triggering unit)) matching (((picked unit) is alive) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Fatal Error for (Triggering unit)))) x 100.00) + 100.00) damage of attack type Spells and damage type Normal)
Unit - Explode (last created unit)
Don't forget to create the dummy!
If this doesn't work there is still another way -_-
 
Fatal Error
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fatal Error
Actions
Unit Group - Pick every unit in (Units within 100.00 of (Position of (Casting Unit)) matching (((Matching unit) is alive) Equal to True)) and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing (((Real((Level of Fatal Error for (Casting unit)))) x 100.00) + 100.00) damage of attack type Spells and damage type Normal)
Unit - Explode (Casting unit)
 
IT's quite simple 8) ,all u ahve to do for the trigger
is:
Event: Unit begins casting an ability

Condition: Ability being casted equal to Fatl Error

Action: Make casting unit dmg targets circle area of (the area of affect of your spell)
Make casting unit explode.



See how simple it is.....the only prob. wit this trigger is it hurts all nearby units (including allys) :D
 
Status
Not open for further replies.
Back
Top