[FSoD] Behavior Questions
I'd like to know if there's any clean way to transition between states. I know there's a lot of transitions, but none of them are very *clean* per-say. What I mean is that if I wanted a boss to start off with a chain-dialog of text while being invincible, I'd do something like this:
but that wouldn't quite work. Inbetween the time the monster is changing states he stops being Invulnerable. Is there a cleaner way to transition, or is there a way to make them invulnerable until I tell it to stop being invulnerable? Thanks in advance.
Code:
.Init("Monster",
new State(
new State("Idle",
new ConditionalEffect(ConditionEffectIndex.Invulnerable),
new PlayerWithinTransition(5, "Taunt1")
),
new State("Taunt1",
new ConditionalEffect(ConditionEffectIndex.Invulnerable),
new Taunt("Text"),
new TimedTransition(2500, "Taunt2")
),
new State("Taunt2",
new ConditionalEffect(ConditionEffectIndex.Invulnerable),
new Taunt("Text"),
new TimedTransition(2500, "Taunt3")
)
)
);
