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:23 am]
Ultraviolet -- got some light recalls behind too
[12:07 am]
O)FaRTy1billion[MM] -- 🦗
[09:53 pm]
Wing Zero -- I wonder how he knew I was in the market for a good cricket bat
[2024-6-11. : 2:27 pm]
lil-Inferno -- ya
[2024-6-11. : 10:49 am]
Oh_Man -- or scarab maybeh
[2024-6-11. : 10:49 am]
Oh_Man -- shielt battery + photon cannon blast?
[2024-6-11. : 10:49 am]
Oh_Man -- check out the animation at 7:56
[2024-6-11. : 9:06 am]
Oh_Man -- https://youtu.be/3mpjxspSUtQ I defeated the hell boss yall, bow to my power
[2024-6-10. : 5:04 pm]
lil-Inferno -- poop
[2024-6-06. : 5:20 pm]
Ultraviolet -- I was kinda thinking something along these lines
Please log in to shout.


Members Online: Roy, perspective, moataz