• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Life Buff Aura

Status
Not open for further replies.
Level 2
Joined
Jun 7, 2007
Messages
6
Hello,

I am new on this page and I hope some people will help me. At first I have to say that my English is not the best but I think anyone will understood waht my problem is.
I want to make an aura which increase the HitPoint of all nearby creatures. Its like th aura "Bloodpact" of World of Warcraft.
An example:

A Hero has an aura which increase the HitPoints by 200. Now have all nearby allies untis additional 200 HitPoints.

SO I hope anyone could help me :)
 
Level 8
Joined
May 13, 2007
Messages
392
Welcome to the Hive ! Although you could start by sending a post in the Introduction section, but anyway.

Well, u may try making a trigger.

Event - (if it exists) unit has buff of type Bloodpact (this is a sure event in WEU)
Conditions -
Actions - Set life of unit with buff Bloodpact to current life + 200 hit boints.

I didnt explain it very clear, but, ill fix it later, when i got the WE opened.

EDIT (1) -

Event - Every 1 second
Conditions - A unit has <buff> equal to true
Actions - Set life of unit with <buff> to (arithmetics) current life + 200 hit points
 
Event - Every 1 second
Conditions - A unit has <buff> equal to true
Actions - Set life of unit with <buff> to (arithmetics) current life + 200 hit points---------
It will give +200 hp evry second


Edit- i cant think of a way to make this...without jass witch i know NOTHING about

Edit2- I thought of a way

ds
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has buff Aerial Shackles (Caster)) Equal to True
(Custom value of (Picked unit)) Not equal to 1
Then - Actions
Unit - Set life of (Picked unit) to ((Max life of (Picked unit)) + 200.00)
Unit - Set the custom value of (Picked unit) to 1
Else - Actions
Unit - Set the custom value of (Picked unit) to 0

It Leaks...But It Might Work
 
Level 5
Joined
May 27, 2007
Messages
132
I'd do it like this:

Trigger(1)

Event: Unit uses Ability "Bloodpact"
Action: Increase max Health Points by 200
Action: Activate Trigger Trigger(2)
Action: Activate Trigger Trigger(3)
Action: Add (triggering Unit) to UnitVariable

Trigger(2)

Event: A unit comes within [range you want for aura] of UnitVariable
Action: Increase max HP by 200

Trigger(3)

Action: Every .5 seconds of game time
Condition: Unit doesn't have (Bloodpact)
Action: Subtract 200 max HP

Base this spell off of another Aura and change it's effects so it does nothing, but is still an aura. That way units still get the marker that says they are under an aura's effects and the triggers can check for that aura to be there. Don't forget to set things like description, name, and the length of the effect in the Ability Editor.
 
Level 10
Joined
Nov 10, 2004
Messages
351
Any of you guys figured out yet that there's no action that increases max hit points? (also why no trigger tags?)

I'll have to say that this would be best in jass, but i bet you can do something like this in GUI:
  • Aura
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • -------- The custom script line is VERY important! --------
      • Custom script: set bj=wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Life Aura) Equal to True
              • (Level of Life Bonus for (Picked unit)) Less than 1
            • Then - Actions
              • Unit - Add Life Bonus to (Picked unit)
            • Else - Actions
              • Unit - Remove Life Bonus from (Picked unit)
the Life Bonus ability should be the Item life gain ability.
 
Status
Not open for further replies.
Top