Reversed Immolation

Yizzy

New Member
Reaction score
20
A friend of mine wanted a skill that instead of draining the casters mana, and damaging near by foes like immolation. It should do almost the opposite, draining the caster hp, while stealing near by foes mana.

Since I don't have world edit on this computer I can't really test around much. If someone wanted to make this for him then we both would be happier! ;)
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Just set the skill to 0 to everything. Then use trigger when unit starts the effect of immolation, turn on trigger2 and set a unitVariable to triggering unit. Then somehow, when the ability is over, turn off trigger 2. Trigger 2, just decrease the hp periodically. Event periodically. Actions - Set hp of unitvariable to hp of unitvariable - *** and set mana of unitvariable to mana of unitvariable + ***
And as for the decreasing of mana around the unit, when u turn on trigger2, also turn on trigger 3.
Trigger 3:
Event - Every second
Condition
Actions -
set units in range of that unitVariable to a unitGroupVariable
Pick units in unitGroupVariable and do actions
Loop -
Set mana of picked unit to mana of picked unit-***
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
to make it more understandable:

Code:
immolation1
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Immolation
    Actions
        Set caster = (Casting unit)
        Trigger - Turn on immolation2 <gen>

Code:
immolation2
    Events
        Time - Every 0.50 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (caster has buff Immolation) Equal to True
            Then - Actions
                Set immolated_units = (Units within 200.00 of (Position of caster) matching ((((Matching unit) belongs to an enemy of (Owner of caster)) Equal to True) and (((Matching unit) is A ground unit) Equal to True)))
                Unit - Set life of caster to ((Life of caster) - 2.00)
                Unit Group - Pick every unit in immolated_units and do (Actions)
                    Loop - Actions
                        Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 5.00)
                Custom script: call DestroyGroup(udg_immolated_units)
            Else - Actions
                Trigger - Turn off (This trigger)
                Custom script: call DestroyGroup(udg_immolated_units)


it hasn't been tested yet so...
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
lol +rep to who? And thx Dinowc to do the trigger and paste it here.^^

Edit: Dinowc, could u add in 2 parts? u forgot the part whr the caster gains mana, and its supposed to be decrease hp of caster every second. Since it happens every 0.50 seconds, then it shlld be 0.50seconds.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Lol thx but dont use his trigger first. Its not completely ok yet.


to make it more understandable:

Code:
immolation1
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Immolation
    Actions
        Set caster = (Casting unit)
        [COLOR="Red"]Trigger - Turn on immolation2 <gen>[/COLOR]

Code:
immolation2
    Events
        Time - Every 0.50 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (caster has buff Immolation) Equal to True
            Then - Actions
                Set immolated_units = (Units within 200.00 of (Position of caster) matching ((((Matching unit) belongs to an enemy of (Owner of caster)) Equal to True) and (((Matching unit) is A ground unit) Equal to True)))
                [COLOR="Blue"]Unit - Set life of caster to ((Life of caster) - 2.00)[/COLOR]
                Unit Group - Pick every unit in immolated_units and do (Actions)
                    Loop - Actions
                        Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 5.00)
                Custom script: call DestroyGroup(udg_immolated_units)
            Else - Actions
                Trigger - Turn off (This trigger)
                Custom script: call DestroyGroup(udg_immolated_units)


it hasn't been tested yet so...

After the red, add in turn on immolation 3. Remove the blue, and create one more new trigger:
Code:
[COLOR="Lime"]
Events - Every 0.50 seconds of game time
Condition -
Actions - [COLOR="Blue"]Unit - Set life of caster to ((Life of caster) - 2.00)[/COLOR]
Unit - Set mana of caster to (Mana of caster) - 2.00)
[/COLOR]


Or, you can forget the red part and third trigger, and add in after the blue part,
Unit - Set mana of caster to (Mana of caster) - 2.00)
 

Yizzy

New Member
Reaction score
20
As it is supposed to steal mana, shouldn't it be:

Unit - Set mana of caster to (Mana of caster) + 2.00)

Thanks a lot anyway.
 
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