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

Permanent energy use

Status
Not open for further replies.
Level 9
Joined
Dec 21, 2006
Messages
490
hi me again

i wanted to ask how i could create a guardianshield that needs energy as long as it is in use, just like cloak.
i know i have to add a behavior and i know where to set the energy use but i have no clue how to connect the 1 new behavior.
the behavior used by guardianshield is used on the targets which are affected so i can't add it there and i cannot add a 2nd behavior that affects the caster.....

doing it by trigger doesn't work since you can't set the energy regeneration to a negative value (by trigger doesn't work)
 
Level 5
Joined
Jun 3, 2010
Messages
100
take a look at the Nova Domination ability. it gives you an idea of how you can create your ability with multiple behaviors. a persistent and set are needed. Imagine her domination ability as the Shield, and the behavior Nova - Domination is where you could add your vital regen.

i know it isnt exact, but it should get you in the right direction.
 
Level 11
Joined
Aug 1, 2009
Messages
963
ugh no, you need to first make the ability a Behavior type ability.

the behavior will apply the energy degen, the same way that cloak does. it also can have validators causing it to turn off if energy is at 0.

also make it so that the behavior periodically applies the guardian shield's Search Area effect, or whichever one it has in the Persistent effect for guardian shield.
 
Level 9
Joined
Dec 21, 2006
Messages
490
i tried alot with data editor but it seems impossible to me( at least with my current knowledge), so i thought about a trigger solution and TADA it is possible to add behaviors to a unit. so far so good. casting the abilty and adding the behavior works BUT it doesnt degenerate energy...... and the big enigma...... if i set HP -1 it does work if i set Energy -1 it doesn't !! the unit has max 60 energy and starting energy 60.
same shit with the trigger action unit attributes :negative energy reg doesn't aply.

sry for saying the s word.
 
Level 9
Joined
Dec 21, 2006
Messages
490
soooooo i found the reason: if adding a behavior to a unit by trigger then you need a short wait action, otherwise it is bugged like written above. thx to all, works fine now

-----------------

forget it, had a shitty trigger still kicking, no wait action needed.
 
Status
Not open for further replies.
Top