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.
[11:23 pm]
NudeRaider -- dumbducky
dumbducky shouted: I found a sneaky way to view some of my coworkers SAT scores and it is shocking
:ban:
[11:22 pm]
NudeRaider -- dumbducky
dumbducky shouted: I miss forums. Twitter is way more engaging but unless you have a following, nobody talks to you. Reddit is just filled with the stupidest people
well, most active members here are the bots, so not sure if this is an improvement :P
[06:05 pm]
dumbducky -- I found a sneaky way to view some of my coworkers SAT scores and it is shocking
[06:03 pm]
dumbducky -- FaRTy1billion
FaRTy1billion shouted: o, i keep meaning to add things to it but instead don't
Farty does your website work anymore
[06:02 pm]
dumbducky -- I miss forums. Twitter is way more engaging but unless you have a following, nobody talks to you. Reddit is just filled with the stupidest people
[02:32 pm]
Zoan -- :wob:
[02:54 am]
Ultraviolet -- :wob:
[2024-7-25. : 2:39 am]
O)FaRTy1billion[MM] -- o, i keep meaning to add things to it but instead don't
[2024-7-24. : 11:55 pm]
Roy -- Make that three changes to the wiki in the last month, all three being just edits to user pages.
[2024-7-23. : 2:47 pm]
dumbducky -- Two changes to the wiki in the last month, both are just edits to user pages
Please log in to shout.


Members Online: Roy