Page 1 of 1

combo file question

Posted: Thu May 14, 2015 7:21 am
by nobody3
Question 1: Does one need to have a melee unit to have .combo file working? (I want to edit the "posture" only)

Question 2:
I want to utilize this:
Hidden/Spoiler:
//Posture("<posture>"[, "<posture>"][, ...]);
// Sets the soldier postures allowed in this state; defaults to "All"
// The soldier will be forced into one of the postures, if
// possible, and will abort to IDLE state if not.
// <posture> string param; values:
// "All", "Any" - All postures
// "Stand" - soldier is standing
// "Crouch" - soldier is crouching
// "Prone" - soldier is prone
// "Sprint" - soldier is sprinting
// "Jump" - soldier is jumping
// "RollRight" - soldier is rolling to the right
// "RollLeft" - soldier is rolling to the left
// "Jet" - soldier is jet jumping
// "Roll" - synonym for "RollLeft","RollRight"
// "!<posture>" - except a posture
Posture("Stand"); // must be standing
into allowing unit to use "Roll" and Roll left/right postures...

Does anyone have information how to use this correctly? Or more specifications about what it is or what is it used for?

Thanks

Re: combo file question

Posted: Thu May 14, 2015 5:10 pm
by MileHighGuy
the posture line determines what posture the unit can be in during that state. Yes it has to be a melee unit to use the combo file. What are you trying to do with rolls exactly?

EDIT: will > can

Re: combo file question

Posted: Thu May 14, 2015 5:36 pm
by nobody3
MileHighGuy wrote:What are you trying to do with rolls exactly?
Nothing, but the AI does not roll by default so I was thinking I could allow them to roll to appear more human-like.

Do I just make .combo file (assigned to melee unit) and insert this?:

Code: Select all

State("IDLE")
{
    Posture("Stand", "Roll");
}

Re: combo file question

Posted: Thu May 14, 2015 5:45 pm
by MileHighGuy
that just means that the unit can stand or roll in that state, not that it will. If you want to force a roll you could, for example, make a state that attack1 transitions to that only has roll for the posture.

Re: combo file question

Posted: Fri May 15, 2015 4:14 pm
by nobody3
it crashed

Re: combo file question

Posted: Fri May 15, 2015 4:21 pm
by MileHighGuy
What does your error log say? and no that state would not work. I would just copy a state and edit it slightly, not make one from scratch.

Re: combo file question

Posted: Fri May 15, 2015 4:23 pm
by nobody3
I dont know what the error log says, I deleted everything because I gave up already.