Dummy not casting spell..

SkyXyden

New Member
Reaction score
3
Description
Blink towards a target and strikes it for 1000 damage and stuns it for 2 seconds, the strike is so powerful that the surrounding area exploded, dealing 1000 damage per second to nearby enermies for 3 seconds.

Casting spell used - Storm Bolt

Damage spell used - Flame Strike

Code:
Blink Blast
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Sonic Blast (Cast Point)
    Actions
        Unit - Move (Triggering unit) instantly to ((Position of (Target unit of ability being cast)) offset by (0.00, 0.00))
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
        Set Dummy[4] = (Last created unit)
        Unit - Add Sonic Blast (Blast Point) to (Last created unit)
        Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Target point of ability being cast)
        Wait 5.00 seconds
        Unit - Kill Dummy[4]

I really cant understand why everything works except the dummy not casting the spell... Someone help please. Thanks.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
instead of killing the unit, add expiration time


hmmm.


did the Sonic blast(dummy)/flamestrike spell has mana cost?, if yes.. remove it.
 

Expelliarmus

Where to change the sig?
Reaction score
48
Code:
  Wait 5.00 seconds
  Unit - Kill Dummy[4]
add expiration timer instead.

- Why don't you use the variable for Unit - Add and Unit - Order?
Unit - Move...you are not using polar projection, so why call it?
Code:
Unit - Move (Triggering unit) instantly to (Position of (Target unit of ability being cast))

(Target point of ability being cast)
change to
(Position of (Target unit of ability being cast)

As for your problem...
- Check mana cost of Flamestrike
 

Unima

New Member
Reaction score
1
I assume that you made sure that Sonic Blast (Blast Point) costs no mana and that it has no cast-time.
Otherwise im not sure, I have had alot of problems myself when it comes to flamestrike (I hate it).
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Start by changing the event to Starts the effect of an ability.
Then set a variable to (Position of (Target unit if ability being cast)) and also for Position of (Triggering Unit)
Then since you set the dummy to a variable already (Dummy [4]) why don't u use it?
Instead of this Unit - Add Sonic Blast (Blast Point) to (Last created unit)
do this: Unit - Add Sonic Blast (Blast Point) to (Dummy [4])
and the same for the order.
and also, instead of waiting to destroy the dummy, set an expirationtimer on it instead and then you don't have 2 use the variable =)
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
refer to third post... if it doesn't work.. i'm gonna try it myself.
 

Expelliarmus

Where to change the sig?
Reaction score
48
Problem appears to be the first action
Scribble what I said earlier XD
(Target point of ability being cast)
change to
(Position of (Target unit of ability being cast)

Try this:
Code:
Blink Blast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Blink Blast 
    Actions
        Custom script:   call SetUnitX(GetTriggerUnit(), GetLocationX(GetSpellTargetLoc()))
        Custom script:   call SetUnitY(GetTriggerUnit(), GetLocationY(GetSpellTargetLoc()))
        Unit - Create 1 Mountain King for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing (Position of (Target unit of ability being cast))
        Unit - Add Dummy  to (Last created unit)
        Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Position of (Target unit of ability being cast))
        Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Worked for me, it should for you.
 

SkyXyden

New Member
Reaction score
3
Problem appears to be the first action
Scribble what I said earlier XD
(Target point of ability being cast)
change to
(Position of (Target unit of ability being cast)

Try this:
Code:
Blink Blast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Blink Blast 
    Actions
        Custom script:   call SetUnitX(GetTriggerUnit(), GetLocationX(GetSpellTargetLoc()))
        Custom script:   call SetUnitY(GetTriggerUnit(), GetLocationY(GetSpellTargetLoc()))
        Unit - Create 1 Mountain King for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing (Position of (Target unit of ability being cast))
        Unit - Add Dummy  to (Last created unit)
        Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Position of (Target unit of ability being cast))
        Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Worked for me, it should for you.

Yeap. Worked for me. Thank you very much =DDDDD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top