Clotting

by Unknown

Back to Mechanic's Corner.

Unknown2008-08-29 19:11:48
Something I've always pondered but never knew, and that my system desperately needs, is a good clotting formula.

I don't run out of mana, or even get very low very often, so I'm not too worried about that, but what is a good way to calculate how many times I should clot based on how much I'm bleeding? Using zmud, if that matters.

Thanks!
Unknown2008-08-29 19:14:30
QUOTE(Deschain @ Aug 29 2008, 03:11 PM) 551648
Something I've always pondered but never knew, and that my system desperately needs, is a good clotting formula.

I don't run out of mana, or even get very low very often, so I'm not too worried about that, but what is a good way to calculate how many times I should clot based on how much I'm bleeding? Using zmud, if that matters.

Thanks!


What I use, for the mana-naysayer:

Pattern: ^You bleed %d health.
Value: clot

Pattern: ^You exert superior mental control and your wounds clot before your eyes.
Value: clot

Try it out if you like. Or don't, since I'm a pretty crappy coder yet.
Unknown2008-08-29 21:15:01
I do it in a manner very similar to what Myrkr posted, except you might want to throw in a simple check for available mana before sending the next clot command. Whatever you do, don't pre-compute how many times to clot (the way Thorgal's old system did). I've actually crashed a few people's systems completely with a simple illusion just because of that. Heh.
Unknown2008-08-29 21:18:35
Haha, okay, definitely will not do that then.

Thanks for the help guys, I'll set it up like Myrkr posted when I get home. I have another thing that keeps track of whether my enemy is trying to go for a manadrain insta kill, so I can probably work that in to help keep from using too much mana.