Page 1 of 1

Combo special attack

Posted: Thu Oct 02, 2014 8:46 am
by darthhalv
Hi I wonder how I should edit my combo file to make it so the 3rd attack of the combo only works if your energy is full?

Re: Combo special attack

Posted: Thu Oct 02, 2014 1:28 pm
by jedimoose32

Code: Select all

Transition("ATTACK3")
    {
        If()
        {
	    Break(10, "Frames");
            TimeStart(6, "Frames");
            TimeEnd(16, "Frames");   //, "SyncIfOvertime");
            Posture("Stand");
            Energy(">=", 2.5);  // at least half a second worth of deflect time
            Button("Fire", "Press");
        }
    }
This is the code that I would work off of. It's cut-and-pasted from a couple sections of Obi-Wan's combo file so it may not be exactly right for what you need. Substitute 2.5 under the Energy section for whatever your characters max energy bar number is, and of course make sure all the other frame information is in line with your animations.

--edited to provide more clarity and a better code example--

Re: Combo special attack

Posted: Thu Oct 02, 2014 5:24 pm
by darthhalv
I'll try it thanks.
EDIT: It didn't work