Page 1 of 1

Combo issue

Posted: Thu Apr 22, 2010 4:14 pm
by Fiodis
I'm trying to make a single attack cost some energy. I've tried putting the EnergyCost line in the Damage section, but that didn't do anything. My latest setup doesn't work either, though, I'm afraid. How could I set it up so that it works?
Hidden/Spoiler:
[code]State("ATTACK1_LIGHT")
{
Posture("Stand");
Animation("stand_attack1a");
Sound("saber_swing");


InputLock("All", "!Thrust");
AlignedToThrust();
AnimatedMove() // animation controls velocity for entire state
{
VelocityZ(2.0);
VelocityX(0.0);
VelocityFromThrust(1.0);
VelocityFromStrafe(1.0);
}
AlignedToThrust();

Deflect()
{
DeflectAngle(-0, 0); // deflect nothing
EnergyCost(10.0);
}

Attack()
{
DamageTime(5, 9, "Frames");
DamageLength(1.5);
DamageWidth(0.75);
Damage(300);
Push(3.0);
}

Transition("ATTACK2_LIGHT")
{
If()
{
TimeStart(5, "Frames");
TimeEnd(16, "Frames");
Energy(">=", 10); // At least one swing.
Posture("Stand");
Button("Fire", "Press");
}
}
Transition("RECOVER1");
}[/code][/size]

Re: Combo issue

Posted: Thu Apr 22, 2010 4:51 pm
by Maveritchell
Put your EnergyCost inside your Transition brackets. You'll need to add brackets for the Recover1 transition so that you have a place to put it there.