øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2009.msg22460e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index6022.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2009.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index6022.html.zxq+g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈàpøOKtext/htmlISO-8859-1gzip8:ÖpøÿÿÿÿÿÿÿÿTue, 10 Mar 2020 06:10:16 GMT0ó°° ®0®P®€§²ð®q+g^ÿÿÿÿÿÿÿÿ¼$pø Command Stances

Author Topic: Command Stances  (Read 1461 times)

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Command Stances
« on: February 08, 2015, 02:52:27 PM »
Alright, research on Command Stances and Poses complete!
As stated before, each stance is composed of 4 poses. The game will cycle through these four poses as long as the stance is held. The duration the stance is held depends, of course, on the purpose of the stance. So charging stance for Black magic if you're casting Meteo is a very long time, whereas for physical commands it can be very quick.

The table of Poses assigned to each stance is located (again, as stated previously) at $09/FD85 (ROM with header). Each entry is four bytes (one for each pose in the stance). The breakdown of what each value does is as follows:
Code: [Select]
00:Normal
01:Parry
02:Spread legs (as 1/2 of walking)
03:Crouch
04:Raise right arm (as 1/2 of right handed attack)
05:Extend left arm (as 1/2 of attack)
06:Raise left arm (as 1/2 of Left handed attack)
07:Take physical damage
08:Arms up (as cheering, etc)
09:Lay down (swoon)
0A:Chanting 1
0B:Chanting 2
0C-1D:glitchy stuff
1E:Disappear
1F-23:glitchy stuff
24:Special pose
25 and above:glitchy stuff

Accessing this table of poses are characters' stances, assigned both for charging and performing actions. By default, the game only uses stances 01-0F. Most other values call up data that is likely used for other things:
Code: [Select]
01:Resting
02:parry
03:Walking
04:crouching
05:right hand striking
06:left hand striking
07:getting hit
08:cheering
09:swoon
0a:chanting
0b:Charging (Chanting without motion)
0c:casting (raising arms, or whatever, no orbs)
od:raising left hand like to attack, but no motion
0e:"special" stance
0f:same
10:Resting
11-54:glitchy stuff, probably used for entirely separate purpose
55-5E:All FFs, presumably free to edit at will
5F and above: glitchy stuff, probably used for other purposes

You'll notice, though, that 55 through 5E ($09/FED5 through $09/FEFC in the table mentioned above) are empty and can be used to create custom stances. Also, stances 0E and 0F are both the special pose, and I don't think the game ever uses 0E.

Now, almost every command (except Twin) has a charging stance, and most commands have an action stance. Here is a chart that breaks down the offset of each stance for each command:
Code: [Select]
Command Charge Stance Offeset Default Action Stance Offset Default Notes
----- ------ -- ------ -- -----
Fight 0B7E60 02 * * Depends on weapon and, sometimes, handedness
Item 0B7E61 02 02C7B3 0C Same Action stance as Salve
White 0B7E62 0A 02C6D4 0C
Black 0B7E63 0A 02C6E1 0C Same Action stance as Recall, Ninja
Call 0B7E64 0A 02C71A 0F
DWave 0B7E65 0B 02C85F 0F
Jump 0B7E66 02 02C628/02C633/02C4CD 04/0C/0F Crouch/Jump/Land
Recall 0B7E67 02 02C6E1 0C Same Action stance as Black, Ninja
Sing 0B7E68 02 02C6C7 0B
Hide 0B7E69 02 02C5CB 0F
Salve 0B7E6A 02 02C7B3 0C Same Action Stance as Item
Pray 0B7E6B 0B 02C7F3 0C Same Action stance as Cover, Sneak
Aim 0B7E6C 02 02C88A/* 0F/* Uses Fight's Action stance after the "Aim" stance
Charge OB7E6D 0B N/A N/A Loads Fight into "Next Action" without changing graphic
Kick 0B7E6E 02 02C31D 0F
Gird 0B7E6F 02 N/A N/A No Action stance set
Twin N/A (00) N/A N/A Special Routine that sets "Black" for both twins
Boast 0B7E71 02 02C7AB 0F Same Action stance as Cry, Peep, SWave
Cry 0B7E72 02 02C7AB 0F Same Action stance as Boast, Peep, SWave
Cover 0B7E73 02 02C7F3 0C Same Action stance as Pray, Sneak
Peep 0B7E74 0B 02C7AB 0F Same Action stance as Boast, Cry, SWave
Crash 0B7E75 02 N/A N/A Crash occurs before Action stance is set
Dart 0B7E76 02 02C14C 0F
Sneak 0B7E77 02 02C7F3 0C Same Action stance as Pray, Cover
Ninja 0B7E78 0A 02C6E1 0C Same Action stance as Black, Recall
SWave 0B7E79 0B 02C7AB 0F Same Action stance as Boast, Cry, Peep
Change 0B7E7A 08 N/A N/A No Action stance set
Parry 0B7E7B 02 02C2A8 02
Show 0B7E7C 01 02c583 03 03 is "Walking," There is no other action stance here
Off 0B7E7D 02 N/A N/A No Action stance set

Note that some commands share the same action stance, so changing one will change the others as well.
There are too many variables that affect the action stance for Fight, so I didn't go into it at all. I don't imagine you'd really want to change any of those anyway - the results would look wrong.

I think that covers everything I was going to do with this topic. Does this all make sense?

LordGarmonde

  • Baigan
  • *
  • Posts: 271
  • Gender: Male
  • "Power only breeds war..."
    • View Profile
Re: Command Stances
« Reply #1 on: February 08, 2015, 08:08:30 PM »
This is too cool. Nicely done!  :cookie:

When a battle is won is it the case that everyone goes into their victory cycle - or can it be set up so different people react differently?
"Now I know; and knowing makes it even more confusing..."

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: Command Stances
« Reply #2 on: February 08, 2015, 08:36:13 PM »
Not without some custom code, LordGarmonde. The same routine will set the stance for everyone in the party.
I also didn't research that routine, so I don't exacly know how to change the victory stance.

LordGarmonde

  • Baigan
  • *
  • Posts: 271
  • Gender: Male
  • "Power only breeds war..."
    • View Profile
Re: Command Stances
« Reply #3 on: February 08, 2015, 08:41:47 PM »
Yeah - figures. I can't complain, that does make the most sense. What made me think of that was watching Golbez and FuSoYa dance after Zemus Round-One: it just struck me as a bit out of place the other day.
"Now I know; and knowing makes it even more confusing..."

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: Command Stances
« Reply #4 on: February 08, 2015, 08:47:59 PM »
been a while since I've gotten that far in the game. do they really do that? I'd have thought they would have skipped that. That is kind of silly.

LordGarmonde

  • Baigan
  • *
  • Posts: 271
  • Gender: Male
  • "Power only breeds war..."
    • View Profile
Re: Command Stances
« Reply #5 on: February 08, 2015, 09:00:21 PM »
Sure do...

I admit I didn't play through to that point - but I did get there super-duper quick via my usual course of just skipping around Game Genie style. Normally I enjoy a brisk walk through many walls for the purposes of understanding/amusement - for example if not triggered properly the Commander that attacked you in Kaipo is always visible: that keeps in my head to be wary of that.

-But anyway, the 'duper' in this speed was my enjoying a L-Button dashing, on top of my standard fast-forward/ghosting approach. I almost flew right out of the Giant of Babil! If you do, you just go on the grass where the ship landed...but if you then go to the moon the scene triggers again, but the first part of it (dark, shaking, ship exterior) is on the moon: after which it continues on as usual.That aside -  bottom line:  :cookie: to that User Options Guy  :wink:

Also fun to note: Golbez (Zot) and Yang (Mt Hobs) crash the game when you speak to them - but the Lunarian Trio of Golbez, FuSoYa, and Zemus all open up the Hummingway shop menu.  :hmm:

"Now I know; and knowing makes it even more confusing..."

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: Command Stances
« Reply #6 on: February 08, 2015, 09:06:39 PM »
Ah so it is done! I'm looking forward to seeing this implemented into the editor!

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Command Stances
« Reply #7 on: March 21, 2015, 08:33:47 AM »
The action stance table offsets don't match what I have in my rom...

2C7B3 has BB not 0C
2C6D4 has CD not 0C
etc.
Let's dance!

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: Command Stances
« Reply #8 on: March 21, 2015, 09:23:12 AM »
The action stance table offsets don't match what I have in my rom...

2C7B3 has BB not 0C
2C6D4 has CD not 0C
etc.


Ah, that's because his notes refer to the in-game banks, not so much their placement in ROM. With Windhex though you could find where these are properly in ROM.

For instance 2C7B3 refers to 147B3 (unheadered) in ROM (so just use 2C as 14 for this case and it should match)

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: Command Stances
« Reply #9 on: March 21, 2015, 09:48:09 AM »
Got it, thanks!
Let's dance!