Vampiric Hunger

troylow

New Member
Reaction score
0
The Vampire have a lust of blood causing this hero to see hero with low health and if the hero or any other unit is killed,the vampire will gain health by sucking the enemies body till the body dehydrates. |n|n|cffffcc00Level 1|r - units with 20% health will be seen,sucks 5% health. |n|n|cffffcc00Level 2|r - units with 25% health will be seen,sucks 10% health. |n|n|cffffcc00Level 3|r - units with 30% health will be seen,sucks 15% health. |n|n|cffffcc00Level 4|r - units with 35% health will be seen,sucks 20% health. i only have problem with the triggers.
 

Stryke

New Member
Reaction score
6
Use life steal ability and this is trigger part for vision.

Code:
Untitled Trigger 001
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in TempUnitGroup and do (Actions)
            Loop - Actions
                Unit - Deny shared vision of (Picked unit) to (Owner of (VampireCaster))
        Custom script:   call DestroyGroup(udg_TempUnitGroup)
        Set TempUnitGroup = (Units in (Playable map area) matching (((((Matching unit) is alive) Equal to True) and ((Percentage life of (Matching unit)) Greater than or equal to (15.00 + (Real((Level of Kage Bunshin no Jutsu  for (Last created unit))))))) and (((Owner of (Matching unit
        Unit Group - Pick every unit in TempUnitGroup and do (Actions)
            Loop - Actions
                Unit - Grant shared vision of (Picked unit) to (Owner of (VampireCaster))
        Custom script:   call DestroyGroup(udg_TempUnitGroup)
 

Fluffball

Well-Known Member
Reaction score
35
Ok, depending on you're trigger knowledge, this should be quite easy to make:

Code:
Vampiric Lust
 Events -
     Unit - A Unit Dies

 Conditions -
     W/E You want

 Actions -
     Set TempGroup = Units within (Sight Range of Vampire Unit) Matching (Picked Unit is a Unit of Unit-Type Vampire)
     Set TempGroup2 = Units within (Sight Range) of Any unit in (Convert Unit Group to Unit Temp Group) Matching  Life value is Less Than (5 x Level of (Vampiric Lust) for (Convert Unit Group to Unit <-- ???) Vampire and (Picked unit is a Hero) equal to True)))
     Unit - Cause (Convert Unit Group to Unit TempGroup) to damage (Convert Unit Group to Unit Tempgroup2) dealing Current Life of ((Convert Unit Group to Unit TempGroup2) / W/E
     Unit - Heal (Convert Unit Group to Unit TempGroup) for Current Life of (Convert Unit Group to Unit Tempgroup2 / W/e
     call RemoveGroup (udg_TempGroup)
     call RemoveGroup (udg_TempGroup2)

This is handwritten, so you will have to edit some stuff to make it work
 
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