Staredit Network > Forums > SC2 Assistance > Topic: Increasing Energy-Regenration
Increasing Energy-Regenration
Aug 24 2011, 3:16 pm
By: Devourer  

Aug 24 2011, 3:16 pm Devourer Post #1

Hello

How can I create a buff which increases the regeneration of energy for a unit when he is not casting?
Like, he casts and the regen stops. After 1 second of no cast, his regen is at 1, 2 seconds -> 2, 3 seconds -> 4... increasing with each second passed.

Thanks in advance :)!



Please report errors in the Staredit.Network forum.

Aug 24 2011, 6:01 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

If you have only a few units, you might want to use triggers to simplify that...

- So you would use a dummy effect with each spell in a set which starts a trigger that sets the regeneration rate to 0 (unit property).
- You also add a NoRegenerationPhaseBehavior and remove the existing PeriodicRegenerationDummyEffectBehavior (which lets a trigger execute the regeneration and increase the regeneration rate) on the unit.
- After the NoRegenerationPhaseBehavior runs out, you apply the PeriodicRegenerationDummyEffectBehavior again. So the PeriodicRegenerationDummyEffectBehavior would be the unit's default behavior (existent at start).



Without trigger usage you might need to create a chain of behaviors that add each other after another. Don't use stacks because I've read that high stack counts can create lag. If you cast, you would execute a set that remove all of these behaviors and applies the first one (no regeneration behavior).
You might even try to create the behavior chain with xml editing inside the mpq because that should be faster than editor usage for copy paste.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[04:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
Please log in to shout.


Members Online: Roy