Channeling spell that deals more damage the longer you channel

BoterhaM

New Member
Reaction score
2
So basically what the title sais, I want an ability that deals up to 70% of the hero's mana, that's 5 second channeling.

SO:

If i channel the spell for 1 second, it deals 25% of hero's mana, 2 seconds 40%, 3 seconds, 55%, 4 seconds, 70%, etc.

Just like alchemist's ability that stuns and deals more damage the longer you channel, only difference is its damage is based on hero's mana.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Oo never heard of alchemists spell which does so... however heres your trigger:
Trigger 1:
Code:
Set Target
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to YourAbility (Neutral feindlich)
    Actions
        Set Target[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
        Set Caster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
Trigger 2:
Code:
Damage Target
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Cause Caster[(Integer A)] to damage Target[(Integer A)], dealing ((Mana of Caster[(Integer A)]) x 0.15) damage of attack type Spells and damage type Normal
                Unit - Set mana of Caster[(Integer A)] to ((Mana of Caster[(Integer A)]) - ((Mana of Caster[(Integer A)]) x 0.15))
Trigger 3:
Code:
Unset Target Copy
    Events
        Unit - A unit Stops casting an ability
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to YourAbility (Neutral feindlich)
    Actions
        Set Target[(Player number of (Owner of (Triggering unit)))] = No unit
        Set Caster[(Player number of (Owner of (Triggering unit)))] = No unit
Target is a unit variable with array
Caster is a unit variable with array

Leakless and MPI. The target is damaged by 15% of the casters current mana each second.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
oh well sorry. Of course MPI that was what i actually wanted to write ^^
 

BoterhaM

New Member
Reaction score
2
Yeah i want it to deal damage once finished XD, so i guess these trigger are the way i want them to be :p
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
my triggers deal damage every second equal to 15% of your heroes current mana... if you want him to damage them after casting wait a minute and i will upload them:

TempGroup is a unit group variable.
Units custom value is used.
this is leakless MPI AND MUI!!!
Trigger1:
Code:
SetGroup
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to YourSkill
    Actions
        Unit Group - Add (Triggering unit) to TempGroup
Trigger2:
Code:
IncreaseDamage
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in TempGroup and do (Actions)
            Loop - Actions
                Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 15)
Trigger3:
Code:
DealDamage
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to YourSkill
    Actions
        Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Mana of (Triggering unit)) x ((Real((Custom value of (Triggering unit)))) / 100.00)) damage of attack type Spells and damage type Normal
        Unit Group - Remove (Triggering unit) from TempGroup
Trigger4:
Code:
UnsetGroup
    Events
        Unit - A unit Stops casting an ability
    Conditions
        (Ability being cast) Equal to YourSkill
    Actions
        Unit Group - Remove (Triggering unit) from TempGroup
 
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