Dark Ritual-not only for undead???

hell1993

New Member
Reaction score
1
How can i change the dark ritual spell(the lich turns units into mana) not to be only for undead?
 

Kiddo

New Member
Reaction score
12
Alright ... bah at this. :p

Code:
Dark Ritual
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        ((Casting unit) is A Hero) Equal to True
        (Ability being cast) Equal to <Your ability here>
    Actions
        Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Kill (Target unit of ability being cast)
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 30.00)%

This should work. :) Haven't tested it yet. But basically ... it should do.

<Your ability here> = Create a custom ability ... that basically does absolutely nothing, add the desired tooltip, levels and mana consumption and it should be all good.

<Yah lvl1> 75 mana .. +30% mana.
<Yah lvl2> 125 mana ... +60% mana.
<Yah lvl3> 200 mana ... +90% mana.

Note: "Yah" = "Your ability here". :p

Kiddo.
 

Light Alkmst

New Member
Reaction score
20
I'm sure that you should be able to set it to target not undead. Set it so it can target organic units. Anyways, Kiddo and perkeyone are just about right. It is based on the hp of the unit it's casted on.

Kiddo's code redone:
Code:
Dark Ritual
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        ((Casting unit) is A Hero) Equal to True
        (Ability being cast) Equal to <Your ability here>
    Actions
        Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Kill (Target unit of ability being cast)
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 30.00)%

Code:
        Unit - Set mana of (Casting unit) to ((Hitpoints of (Target unit of ability being cast)) * .30 + (Mana of (Casting unit)))
        Comment - Just this line right above here needed to be changed ^^
 

Kiddo

New Member
Reaction score
12
I'm sure that you should be able to set it to target not undead. Set it so it can target organic units. Anyways, Kiddo and perkeyone are just about right. It is based on the hp of the unit it's casted on.

Ohh, ohh. My bad then. I misread the spell description. Thanks for the addition. :)

Code:
Dark Ritual
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        ((Casting unit) is A Hero) Equal to True
        (Ability being cast) Equal to Animate Dead
    Actions
        Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Kill (Target unit of ability being cast)
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Set mana of (Casting unit) to ((Hitpoints of (Target unit of ability being cast)) * .30 + (Mana of (Casting unit)))

Nice to be a comunity. And not have people say: "Ohh, that trigger is wrong." :eek:

Kiddo.
 
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