Quick question

vespt

New Member
Reaction score
4
Is it possible to trigger a unit to loose healt over time or u have to do it by add a bility that do that?!

Thx in advance
 

Cheesy

some fucker
Reaction score
95
This should work. :thup:

Code:
Lose HP
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit - Set life of Hero to ((Percentage life of Hero) - 1.00)
 

vespt

New Member
Reaction score
4
so u can only do it by % can't do it by exact numbers?!

Mb i didnt understood well soz
 

Cheesy

some fucker
Reaction score
95
Well I was going to do it by current HP of the unit, but that wasn't an event response. :thdown: Sorry.
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
Is it possible to trigger a unit to loose healt over time or u have to do it by add a bility that do that?!

Thx in advance

yup

Code:
losing life per seconds
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit - Set life of ([B]your unit[/B]) to ((Life of ([B]your unit[/B])) - 10.00)

if you want itl ike a spell you could make itl ike an ability that adds a buff and then

Code:
abilty losing life
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup=true
        Unit Group - Pick every unit in (Units in (Playable map area) matching (((Triggering unit) has buff Animate Dead) Equal to True)) and do (Actions)
            Loop - Actions
                Unit - Cause ([B]your unit[/B]) to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal

edit: i am always to slow =)
 

vespt

New Member
Reaction score
4
Code:
 Unit - Set life of (your unit) to ((Life of (your unit)) [COLOR="Red"] - 1.00[/COLOR])
How can u do that?!
The function is only

Code:
Unit - Set life of (your unit) to ((Life of (your unit))
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
Code:
 Unit - Set life of (your unit) to ((Life of (your unit)) [COLOR="Red"] - 1.00[/COLOR])
How can u do that?!
The function is only

Code:
Unit - Set life of (your unit) to ((Life of (your unit))

just go in on arithmetic and like you did last time
 
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