ome6a1717
You only want the mana timer to start if mana is less than maximum, correct?
If mana < manamaximum, subtract 1 from mana timer
When mana timer reaches 0, add 1 to mana, set mana timer back to 4
Event Conditions: 1) Every X Seconds, 2) Mana < Manamaximum
Actions: subtract 1 from mana timer
-- Sub-Event: Mana timer <= 0
-- Actions: add 1 to mana, reset mana timer
I hope that's clear. :) Sometimes explaining isn't as easy as doing. If you're still having trouble, I can do up a quick capx for you.
Hey Space,
This is exactly what I did, and it's entirely possible with my somewhat limited knowledge of C2 I AM, in fact, doing it wrong.
However, when I do this code and set a text box as the mana timer (just to see the effect), when Mana < Manamaximum, the timer goes straight to 3 instead of waiting a second (will sometimes wait half a second, or 1 tick, etc. - depends on when mana < manamximum because the every X seconds is running no matter what).
Hopefully I'm explaining this right?