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.
[05:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[04:31 pm]
Zoan -- where's the option to delete my account
[04:30 pm]
Zoan -- goodbye forever
[04:30 pm]
Zoan -- it's over, I've misclicked my top right magic box spot
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
Please log in to shout.


Members Online: jjf28, Roy