Help with a spell

emphh

Active Member
Reaction score
0
Trigger:
  • grenade
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to grenade throw
    • Actions
      • Set grenade_target = (Target unit of ability being cast)
      • Unit - Create 1 fireDummy for (Owner of (Casting unit)) at (Position of grenade_target) facing Default building facing degrees
      • Unit - Order (Last created unit) to Neutral - Firebolt grenade_target
      • Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 500.00 at (Position of grenade_target), dealing (Real(((Level of grenade throw for (Casting unit)) x 200))) damage of attack type Spells and damage type Normal
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Special Effect - Create a special effect at (Position of grenade_target) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl



It doesnt do any aoe damage, and the dummy firebolt lasts forever, what could be wrong?
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
"Casting Unit" is not really safe to use; since you made a dummy and ordered it to cast Firebolt, that dummy is now the "Casting Unit", and thus the level of grenade throw for "Casting Unit" is 0, making the damage 0. You should use "Triggering Unit".
 

reyghost

New Member
Reaction score
14
Listen what weep said.
Also some tips.You can also try storing the caster in a variable and make him deal the AOE damage;also try using "starts the effect of an ability" insted of "begings casting" and remember to remove that special effect,or it wil leak.:)
For the firebolt lasting forever, are the firebolt fields in object editor the default ones ?
 

kaboo

New Member
Reaction score
45
- dummy unit - completely useless unless u want to cast more spells at once :)
- here you got it:

Trigger:
  • grenade throw
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to grenade throw (Neutral Hostile)
    • Actions
      • Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 500.00 at (Position of (Target unit of ability being cast)), dealing 999.00 damage of attack type Spells and damage type Normal
      • Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl


-grenade throw is based on firebolt (neutral hostile) with removed missile, u can change it if u want
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top