• 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.

"Life" [Degeneration] Aura

Status
Not open for further replies.
Level 4
Joined
Aug 7, 2008
Messages
115
I was trying to do an Aura increasing 500 life of units within 900 range.
I tryied different ways and didnt work...if someone knows how to help me ill be glad.

Thanks,
 
Level 2
Joined
Aug 24, 2008
Messages
16
U meant increase max life? I doubt any1 has tried it in GUI yet. Bt i guess a temporary max life increase could be possible with the following trigger.

Use roar as base ability.
Set IAD to 0%.

thn use the following trigger:

-event-
a unit starts the effect of an ability
-conditions-
ability being cast equals to <LifeUp>
-actions-
pick every unit in 900 of position of triggering unit matching condition --> matching unit has buff <LifeUp> equals to true
-actions-
set max life of picked unit to arithmetic(max life of picked unit+500)
wait (duration of buff) seconds
set max life of picked unit to arithmetic(max life of picked unit-500)

+rep if worked ^^
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
you cant set Max Life of a unit

instead, do something like this

Every 0.02 seconds

Pick every unit with WhatEverBuff
Add Ability - Add +500 Life to (Picked unit)

Pick every unit not with WhatEverBuff
Remove Ability - Remove +500 Life to (Picked unit)
 
Last edited:
Level 4
Joined
Feb 4, 2008
Messages
70
you cant set Max Life of a unit

instead, do something like this

Every 0.02 seconds

Pick every unit with WhatEverBuff
Add Ability - Add +500 Life to (Picked unit)

Pick every unit not with WhatEverBuff
Remove Ability - Remove -500 Life to (Picked unit)

Wouldn't that remove 500 hp of every unit on the map not close to the one with the aura every .2 sec? Like enemies far away?
 
Level 9
Joined
Jul 26, 2005
Messages
553
The "+500" he wrote means an ability that adds 500 hp to the unit.

You can base it on the "item life bonus" ability, but if done wrong it might cause some trouble.
 
Level 4
Joined
Aug 7, 2008
Messages
115
U meant increase max life? I doubt any1 has tried it in GUI yet. Bt i guess a temporary max life increase could be possible with the following trigger.

Use roar as base ability.
Set IAD to 0%.

thn use the following trigger:

-event-
a unit starts the effect of an ability
-conditions-
ability being cast equals to <LifeUp>
-actions-
pick every unit in 900 of position of triggering unit matching condition --> matching unit has buff <LifeUp> equals to true
-actions-
set max life of picked unit to arithmetic(max life of picked unit+500)
wait (duration of buff) seconds
set max life of picked unit to arithmetic(max life of picked unit-500)

+rep if worked ^^

you cant "set max life" there isnt this action... =/
Ill try another triggers..and about Razorbrain i didnt understand crearly the razorbrain trigger ... could u explain again thanks,
 
Level 8
Joined
May 21, 2008
Messages
218
There is a set life/max life, mana/max mana function under GUI action catagory Unit

This trigger is pretty simple, I'm lazy so I'm not going to bother with tags.

Event Unit casts life up
Actions
Temp_Unit = Casting Unit
Set Temp_Group = Every unit within 200 range of Temp_Unit
(if you don't want the ability/buff in the following to be visable use a disabled spell book, google it)
Add ability life up to picked Unit
Turn Leave Buff Area ON

Leave buff area
Event Every 0.3 seconds
Condition((Region centered at (Position
of (Temp_Unit)) with size (400.00, 400.00)) contains (Temp_Group)) Equal to False
Action Remove ability Life Up


Life up triggering

Event Unit aquires ability life up
Action set unit's Max Life to max life + 500
set unit's life to life+500

Event Unit loses ability life up
Action set unit's Max Life to max life + 500
set unit's life to life+500

Sorry the trigger is a bit rectanguler if you get what I mean.
Also I don't think this is multi instancable.
The variables just overwrite themselfs so I didnt feel the need for memory fix.
Hope it helped


Just realized I never turned leave buff area off. I think you get the general idea tho.
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
There is a set life/max life, mana/max mana function under GUI action catagory Unit

This trigger is pretty simple, I'm lazy so I'm not going to bother with tags.

Event Unit casts life up
Actions
Temp_Unit = Casting Unit
Set Temp_Group = Every unit within 200 range of Temp_Unit
(if you don't want the ability/buff in the following to be visable use a disabled spell book, google it)
Add ability life up to picked Unit
Turn Leave Buff Area ON

Leave buff area
Event Every 0.3 seconds
Condition((Region centered at (Position
of (Temp_Unit)) with size (400.00, 400.00)) contains (Temp_Group)) Equal to False
Action Remove ability Life Up


Life up triggering

Event Unit aquires ability life up
Action set unit's Max Life to max life + 500
set unit's life to life+500

Event Unit loses ability life up
Action set unit's Max Life to max life + 500
set unit's life to life+500

Sorry the trigger is a bit rectanguler if you get what I mean.
Also I don't think this is multi instancable.
The variables just overwrite themselfs so I didnt feel the need for memory fix.
Hope it helped


Just realized I never turned leave buff area off. I think you get the general idea tho.
what world editor do you have?

the regular world editor doesnt have any

Set Max Life(or Mana for that matter)
A event called Unit Acquires/Loses Ability

and that spell would be SUI. He is looking for an aura, not a casted ability

crasy-penguin, ill make the trigger right here okay :p

  • Just name it something
  • Events
    • Time - Every 0.02 seconds of game-time
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Pick every unit in (Units in (Playable map area) matching (((Matching unit) has AuraBuff) Equal to True)
      • Loop - Actions
        • Unit - Add LifeUp (+500) to (Picked unit)
    • Pick every unit in (Units in (Playable map area) matching (((Matching unit) has AuraBuff) Equal to False)
      • Loop - Actions
        • Unit - Remove LifeUp (+500) from (Picked unit)
im not sure, but some abilities might stack with eachother if added to the same unit twice. So if they gain enormous amount of hp by this trigger, it is fixable, dont worry. Any questions? Oh, and it is MUI
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
every1 second is better if u ask me and you need one more set bj_wantDestroyGroup = true

actually
its better to group all units and put if then else inside loop

And that stacking thing happens on item abilities
Make sure that its not an item ability (it may be based on item ability but change the Item Ability to false)
 
Level 4
Joined
Aug 7, 2008
Messages
115
what world editor do you have?

the regular world editor doesnt have any

Set Max Life(or Mana for that matter)
A event called Unit Acquires/Loses Ability

and that spell would be SUI. He is looking for an aura, not a casted ability

crasy-penguin, ill make the trigger right here okay :p

  • Just name it something
  • Events
    • Time - Every 0.02 seconds of game-time
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Pick every unit in (Units in (Playable map area) matching (((Matching unit) has AuraBuff) Equal to True)
      • Loop - Actions
        • Unit - Add LifeUp (+500) to (Picked unit)
    • Pick every unit in (Units in (Playable map area) matching (((Matching unit) has AuraBuff) Equal to False)
      • Loop - Actions
        • Unit - Remove LifeUp (+500) from (Picked unit)
im not sure, but some abilities might stack with eachother if added to the same unit twice. So if they gain enormous amount of hp by this trigger, it is fixable, dont worry. Any questions? Oh, and it is MUI

Oh thanks razor ill try it later and thanks all for the help
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Zypher, thats CURRENT life not maximum life.

The most efficent aura system I can think of is where you use the event a unit enteres/leaves X of a unit. When it enters you added it to aura affected (in this case add the +life ability) and when the unit leaves the distance you remove it from the aura affected (+life ability is removed). Some delays could easilly make the aura seem more realistic like the native ones that blizzard uses.

However I have not actually tested this method so I can not be sure if it will not have the potential to bug.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
You can make kinda system easly
Make +1 and -1 hp books
add them <New max hp - current max hp> times
 
Status
Not open for further replies.
Top