Damage over Time Based on stat

guneruh

Member
Reaction score
1
Hi! i have another question, how can i add damage over time to a DoT skill? i mean like: Rend (for example): wounds the target and causes him to bleed, causing 10 damage plus 50% of strenght every 3 seconds for 18 seconds.

i need a trigger that can be MPI or MUI. i have too much DoT skills so i really want that trigger :)
 

Zetrix91

TH.net Regular
Reaction score
2
Trigger:
  • Strength Dot
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Wait 3.00 seconds
          • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (10.00 + (0.50 x (Real((Strength of (Casting unit) (Include bonuses)))))) damage of attack type Spells and damage type Fire


btw, didnt bother testing it :p
 

Zetrix91

TH.net Regular
Reaction score
2
then read the MUI and MPI tutorials, i dont know much or care for MUI and MPI as of now
 

guneruh

Member
Reaction score
1
ok, i already made the triggers that comes on that tutorial, but the trigger doesn't work, here's how i made both:
Code:
Acontecimientos
    Unidad - A unit Inicia el efecto de una habilidad
Condiciones
    (Ability being cast) Igual a Rip 
Acciones
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        Si: Condiciones
            CustomValue Menor que 1000
        Entonces: Acciones
            Set CustomValue = (CustomValue + 1)
        Otros: Acciones
            Set CustomValue = 1
    Set Caster[CustomValue] = (Triggering unit)
    Set Target[CustomValue] = (Target unit of ability being cast)
    Set CurrentTime[CustomValue] = 0.00
    Set MaxTime[CustomValue] = 5.00
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        Si: Condiciones
            Damage[CustomValue] Igual a 0.00
        Entonces: Acciones
            Set Damage[CustomValue] = ((Real((Agilidad of Caster[CustomValue] (Incluir bonuses)))) x 0.16)
        Otros: Acciones
            Set TempPoint = (Center of (Playable map area))
            Unidad - Create 1 Visibility for (Owner of Caster[CustomValue]) at TempPoint facing Vista edificio predeterminada degrees
            Unidad - Set the custom value of (Last created unit) to CustomValue
            Grupo de unidad - Add (Last created unit) to DummyGroup
    Custom script:   call RemoveLocation (udg_TempPoint)

Code:
DoTEvent
    Acontecimientos
        Tiempo - Every 1.00 seconds of game time
    Condiciones
        (Number of units in DummyGroup) Mayor que 0
    Acciones
        Grupo de unidad - Pick every unit in DummyGroup and do (Actions)
            Bucle: Acciones
                Set TempInteger = (Custom value of (Picked unit))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    Si: Condiciones
                        (Target[TempInteger] is dead) Igual a True
                        CurrentTime[TempInteger] Mayor que o igual a MaxTime[TempInteger]
                    Entonces: Acciones
                        Unidad - Remove (Picked unit) from the game
                    Otros: Acciones
                        Unidad - Cause Caster[TempInteger] to damage Target[TempInteger], dealing Damage[TempInteger] damage of attack type Conjuros and damage type Normal

just as same as the triggers on that tutorial but they doesn't work
 

vypur85

Hibernate
Reaction score
803
Code:
Strength Dot
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Animate Dead
    Actions
        Custom script:  local unit udg_Unit 
        Custom script:  local integer i = 0
        Set Unit = (Target unit of ability being cast)
        Custom script:  loop
        Custom script:  exitwhen i == 10 <-- Adjust this to change how many times it loops
        Custom script:  set i = i + 1
        Unit - Cause ([B]Triggering unit[/B]) to damage [B]Unit[/B], dealing (10.00 + (0.50 x (Real((Strength of ([B]Triggering unit[/B]) (Include bonuses)))))) damage of attack type Spells and damage type Fire
        Wait 3.00 seconds
        Custom script:  endloop
        Custom script;  set udg_Unit = null

This should be MUI. Simpler than the MUI GUI thing... You must have a unit variable named 'Unit'.
 

guneruh

Member
Reaction score
1
ok, is not working that trigger i think it should be like this:

Code:
DoTEvent
    Acontecimientos
        Unidad - A unit Inicia el efecto de una habilidad
    Condiciones
        (Ability being cast) Igual a Rip 
    Acciones
        Custom script:   local unit udg_unidad
        Custom script:   local integer i = 0
        Set unidad = (Target unit of ability being cast)
        Custom script:   loop
        Custom script:   exitwhen i == 12
        Custom script:   set i = i + 1
        Unidad - Cause unidad to damage (Picked unit), dealing (0.13 x (Real((Agilidad of unidad (Incluir bonuses))))) damage of attack type Conjuros and damage type Normal
        Wait 1.00 seconds
        Custom script:   endloop
        Custom script:   set udg_unidad = null

the "loop" means how much times ticks the DoT don't? because the skill lasts 12 seconds and does 13% agility damage per second.
 

vypur85

Hibernate
Reaction score
803
Yours:
Code:
Unidad - Cause [B]unidad[/B] to damage [B](Picked unit)[/B], dealing (0.13 x (Real((Agilidad of [B]unidad[/B] (Incluir bonuses))))) damage of attack type Conjuros and damage type Normal

Mine:
Code:
Unit - Cause [B](Triggering unit)[/B] to damage [B]Unit[/B], dealing (10.00 + (0.50 x (Real((Strength of [B](Triggering unit)[/B] (Include bonuses)))))) damage of attack type Spells and damage type Fire

Check out the bolded stuff. See the difference? Look closely. You mixed up between 'Triggering unit' and 'Unit'. And it's not 'Picked unit'. Try to get the trigger to be exactly like mine. Then test. If there are still problem, feel free to ask :).
 

guneruh

Member
Reaction score
1
lol thx, i corrected that, and know the trigger kinda works... but even if i give 6k agility to the unit the trigger keeps doing the same damae (like 150 per second even having 6000 agility and causing 80% of that per second)

here is the trigger, i included bonuses so i don't know what can be happening.

DoTEvent
Acontecimientos
Unidad - A unit Inicia el efecto de una habilidad
Condiciones
(Ability being cast) Igual a Rip
Acciones
Custom script: local unit udg_unidad
Custom script: local integer i = 0
Set unidad = (Target unit of ability being cast)
Custom script: loop
Custom script: exitwhen i == 12
Custom script: set i = i + 1
Unidad - Cause (Triggering unit) to damage unidad, dealing (0.80 x (Real((Agilidad of unidad (Incluir bonuses))))) damage of attack type Conjuros and damage type Normal
Wait 1.00 seconds
Custom script: endloop
Custom script: set udg_unidad = null
 
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