• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need Help!!! Pls

Status
Not open for further replies.
Level 5
Joined
May 27, 2007
Messages
144
hi i wanted to make an ability which steals the life points from enemy on next 5 attacks. Do someone know how can i make this ? I tried but it didnt work he made more then 5 life stealing attacks. Pls help
 
Level 5
Joined
May 27, 2007
Messages
144
which kind of veriable would it be ? point ? and no vampiric potion dont do it.

Edit: Can´t find it could you show me a gui trigger pls
Edit: okey i found it and now how can i detect each attack ?
 
Level 5
Joined
May 27, 2007
Messages
144
well i made it just like you said and he mades still more than 5 life stealing attacks. Maybe my trigger is wrong. Pls write yours. Thx a lot
 
Level 5
Joined
May 27, 2007
Messages
144
okey there it is :

  • CannibalismStart
  • Events
    • Unit - A unit Starts the efffect of an ability
  • Conditions
    • (Ability being cast) Equal to Cannibalism
  • Actions
    • Set Abomination = (casting unit)
    • Set CannibalismCount = 0
    • Unit - Add Cannibalism (lifesteal) to Abomination
    • Unit - Set level of Cannibalism (lifesteal) for Abomination to (Level of Cannibalism for Abomination)
nad the second one

  • Cannibalism
  • Events
    • Unit - A unit is attacked
  • Conditions
    • (Unit-type of (Attacked unit)) Equal to (Unit-type of Abomination)
  • Actions
    • Set CannibalismCount = (CannibalismCount+1)
    • If (All Conditions are True) then do (Then Actions) elso do (Else Actions)
      • If - Conditions
        • CannibalismCount Equal to 5
      • Then - Actions
        • Unit - Remove Cannibalism (lifesteal) from Abomination
      • Else - Actions
I hope you can fix it.
 
Status
Not open for further replies.
Top