Status Effects

Started by aokmaniac13, June 05, 2009, 04:30:08 PM

Previous topic - Next topic

aokmaniac13

I came up with this idea in a dream...

Suppose you could add an option in a hitdef, similar to sending the opponent to a custom state, but instead of the opponent being put in that state, the statedef is executed every tick just like another negative state.

For example, suppose I had a state like this

[Statedef 999];Poison

[state 999, damage]
type = lifeadd
trigger1 = 1
value = -1

[state 999, end]
type = removeEffect
trigger1 = time = 200
trigger2 = movehit


Note that I invented "removeEffect" for the purpose of removing the status effect.
In this instance time would return the amount of time the status effect had been active.
Attributes for the statedef should be omitted, and treated as errors if present.

XGargoyle

Maybe it will work better as an AssertSpecial rather than as a standard sctrl


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!

Bastard Mami

RElated to this it was an old suggestion for another engine that sctrl would have an ID parameter so they were executed to the player wiht that ID.