Ability Dealing No damage

1337Elite

New Member
Reaction score
14
Hi guys.

Yesterday I decided to make a custom ability which I though would be the simplest trigger enhanced spell I've ever made. Instead I ended up with this thing that deals no damage at all, except the decaying damage that the dummy spell already has. Below is the trigger anyway.
Code:
Crippling Blow
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Crippling Blow 
    Actions
        Set tempInt[1] = (Level of Crippling Blow  for (Casting unit))
        Set tempInt[2] = (tempInt[1] x (10 + ((Intelligence of (Casting unit) (Include bonuses)) x (Integer(0.90)))))
        Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real(tempInt[2])) damage of attack type Chaos and damage type Death
 
H

HBtheOnly

Guest
Hmm I'm not too sure but you should change it to "starts the effects of" instead of "begins" because they could abuse that.. Anyway that might work.
 

BRUTAL

I'm working
Reaction score
118
you could also do what i usually do to check if the event is right in the first palce like the guy above said
put an action before all that being a game message and if that shows then you know the event is right
 

1337Elite

New Member
Reaction score
14
I'll try that. I've got "begins channelling an ability" or "begins casting an ability" on all my spells. Oh well, I'll report back with the results.

I got it to work. It was the damage calculation that always returned zero. Oh well, thanks for your help. ^^
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
> I've got "begins casting an ability" on all my spells.

That's bad.
Change them to 'Starts the effect of an ability' unless necessary.
 

1337Elite

New Member
Reaction score
14
Oh yeah, that's what I use btw. "Starts the effect of an ability" & "Starts chanelling..", those are what I use. I'll change this one to that too. ^^

But hey, what's the bad thing about using begins casting an ability? Is it because of the timing? The fact that you can't interupt the spell, or something else? No one have never given me a concrete answer to that.
 

Romek

Super Moderator
Reaction score
964
Oh yeah, that's what I use btw. "Starts the effect of an ability" & "Starts chanelling..", those are what I use. I'll change this one to that too. ^^

But hey, what's the bad thing about using begins casting an ability? Is it because of the timing? The fact that you can't interupt the spell, or something else? No one have never given me a concrete answer to that.

You can quickly press Stop/Hold Position (or give another order) After casting the spell. And the spells effect will happen, but the cooldown won't start and mana won't be drained.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top