øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=575.msg4682e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0ec7.htmldelayedslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=575.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0ec7.html.zxù]g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿȰv§`OKtext/htmlISO-8859-1gzip8:Ö§`ÿÿÿÿÿÿÿÿÑHTue, 10 Mar 2020 09:45:52 GMT0ó°° ®0®P®€§²ð®ø]g^ÿÿÿÿÿÿÿÿ…,§` Yang's Battle Script

Author Topic: Yang's Battle Script  (Read 16955 times)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Yang's Battle Script
« on: June 01, 2008, 11:49:58 PM »
As pointed out in the Japanese site link, part of Yang's battle script is not properly executed.

His script looks like this... (according to the editor)

Battle script 0xA8:
Code: [Select]
Always
    Battle Message $E
    Target Kain 
    Fight
    (End of Turn)
    Battle Message $F
    Kick
    (End of Turn)
    Battle Message $10
    Target Kain 
    Fight
    (End of Turn)
    Battle Message $11
    Kick
    $F3 to $F8 -  $81

Counter script: 0xA9
Code: [Select]
( $2 $0 $0 $1 )
If Attacked by Tellah
    Battle Message $12
    Cast Dummy ($AE)

This script is parsed wrong, but here's the jist of what it is supposed to do:

Battle Script:

While targeting Cecil, display message 0xE and attack him.
Display message 0xF, then attack with Kick.
While targeting Cecil, display message 0x10 and attack him.
Display message 0x11, then attack with Kick.
Repeat sequence

Counter Script:

When Cecil deals physical damage, there is a random chance to execute the following script... which is to display message 0x12 and end the battle (by using spell 0xAE).

Note the bold.. this is never executed on a normal run. There's a simple reason. This was intended for Dark Knight Cecil.. not Paladin Cecil as the battle script is never normally executed. However, there's a lot more happening here than meets the eye.

1) Yang appears to attack with one of Cecil's Dark Blades. Really, I'm not kidding.

2) The random battle ending falls along the same lines as the random Lightning killing Odin sequence. There's a low chance of it occuring (less than 10% I suspect). Note that this sequence expects Paladin Cecil's physical attacks as part of it.. which is ironic, given the battle script was meant to focus on Dark Knight Cecil.

Here are some random thoughts and opinions to this..

1) This was intended to be part of  some auto-battle sequence. It was never finished since Yang attacks Cecil as part of the battle script.

2) Characters attacking with a weapon as an enemy was something never truly finished. Obviously Yang attacking with Cecil's Dark Blades was never meant to happen. Some hacking to change this would be interesting, but it would need a lot more research. This is why this section was never executed.. it would looked rather fucked up.

3) Yang was meant to be encountered in a different situation.. which is not what the current finished product happens to be. For all I know, you were meant to battle him and he meant to attack Cecil intentionally. Perhaps the demo picture with Dark Knight Cecil, Kain, Yang, Rosa, and Young Rydia may have had its origins be validated.

From the original thread (which will be killed in due time) - http://boards.gamefaqs.com/gfaqs/genmessage.php?board=929937&topic=42923762

Quote
i have a copy of the original final fantasy 4j that i bought a few years ago, kind of on a whim. this being the most active ff2/ff4 forum, i thought it may be the best place to ask.

let me post the pictures:
http://i264.photobucket.com/albums/ii181/bond697/photo.jpg
http://i264.photobucket.com/albums/ii181/bond697/photo2.jpg

now, they're blurry because i took them with my iphone(sadly, no scanner).

let me explain what is going on in case you can't make them out. they are of the same image on the original ff4j box. i can't remember the monsters' names, but i can describe them. one is a green "gargoyle" with wings, and there are 2 "birds", maybe "eagles"? as i said, i can't recall the names. anyway, the odd part is that they're fighting in the castle setting, like when you defend the castle with yang, edward/gilbert, and cecil. in the picture, it seems that rydia is casting fire(2?) on an eagle creature. here is your party with their hp levels:

->(back row)

kain 550/550
->rydia 307/310
dk. cecil 599/600
->rosa 453/454
yang 860/860

i don't think that this scenario happens at all in the game. if it does, could someone please let me know where? it's a neat little look at what might have been, i suppose.

i've looked through the manual, but haven't found any other out of the ordinary pics like this. if i can get access to a scanner, i'll get a better couple of pictures.
« Last Edit: June 01, 2008, 11:55:20 PM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Yang's Battle Script
« Reply #1 on: June 02, 2008, 07:27:21 AM »
Quote
2) The random battle ending falls along the same lines as the random Lightning killing Odin sequence. There's a low chance of it occuring (less than 10% I suspect). Note that this sequence expects Paladin Cecil's physical attacks as part of it.. which is ironic, given the battle script was meant to focus on Dark Knight Cecil.

If you understand the reaction script, it works 100% of the time. The hex data for the last part of Yang's battle script is F481. F4 to F7 set what I call "condition flags" and "reflex flags." (I don't know if there's any other term . . . I didn't find any information on these bytes, and have only just worked it out for myself last week.) F481 sets condition flag 01. The mystery ($2 $0 $0 $1) that is in the editor means "if condition flag 01 is set". Thus, Yang's reaction script is "If condition flag 01 is set and attacked by Paladin Cecil: show battle message 0x12 and cast 0xAE." So the attack sequence needs to be played out once, condition flag 01 is set, and then as soon as Paladin Cecil attacks after that, Yang says, "Ouch!" and the battle is over.

My guess is that Odin's battle follows these lines, though I haven't looked into his script myself yet. I'll take a look when I have time.

Quote
1) Yang appears to attack with one of Cecil's Dark Blades. Really, I'm not kidding.
2) Characters attacking with a weapon as an enemy was something never truly finished. Obviously Yang attacking with Cecil's Dark Blades was never meant to happen. Some hacking to change this would be interesting, but it would need a lot more research. This is why this section was never executed.. it would looked rather fucked up.

It could be that the sword was intentional. Yang was traveling with Baron Soldiers, after all, and wasn't himself. I'll have to see if I can change the weapon graphics for that in my own hack, so I'll post if I can find anything on it.
« Last Edit: June 02, 2008, 07:36:29 AM by Phoenix »

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Yang's Battle Script
« Reply #2 on: June 02, 2008, 07:43:09 AM »
Quote
2) The random battle ending falls along the same lines as the random Lightning killing Odin sequence. There's a low chance of it occuring (less than 10% I suspect). Note that this sequence expects Paladin Cecil's physical attacks as part of it.. which is ironic, given the battle script was meant to focus on Dark Knight Cecil.

If you understand the reaction script, it works 100% of the time. The hex data for the last part of Yang's battle script is F481. F4 to F7 set what I call "condition flags" and "reflex flags." (I don't know if there's any other term . . . I didn't find any information on these bytes, and have only just worked it out for myself last week.) F481 sets condition flag 01. The mystery ($2 $0 $0 $1) that is in the editor means "if condition flag 01 is set". Thus, Yang's reaction script is "If condition flag 01 is set and attacked by Paladin Cecil: show battle message 0x12 and cast 0xAE." So the attack sequence needs to be played out once, condition flag 01 is set, and then as soon as Paladin Cecil attacks after that, Yang says, "Ouch!" and the battle is over.

My guess is that Odin's battle follows these lines, though I haven't looked into his script myself yet. I'll take a look when I have time.

Yes, it works, but see the flag is set randomly or is dependant on some RNG based event.

So, if you ever tried using Cecil to attack Yang, you see there's no fixed number of hits required to be made, or "scheduled" timing of sorts.

Oh, and here's some obligatory pics!

First message that was supposed to be displayed:


Then Yang whacks you... with a Dark Sword... looks almost like the Deathbringer blade:


Here's another message that was supposed to be displayed:


Pics taken from FF2.

Note that my original theory of a battle with Anna blocking arrows for Edward is not farfetched.. it was simply not ever completed though but probably much more doable if we can tweak the characters a bit and filled in the missing code.

Edit: Yang was never meant to use the weapon, but since animations are not character dependant, it makes a ton of sense that what you see is not strange.

Here's some obligatory FF4 pics (using J2e's patch):

He was supposed to say this:


It would've been nice seeing these messages:
« Last Edit: June 02, 2008, 07:52:47 AM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Yang's Battle Script
« Reply #3 on: June 02, 2008, 07:51:47 AM »
3) Yang was meant to be encountered in a different situation.. which is not what the current finished product happens to be. For all I know, you were meant to battle him and he meant to attack Cecil intentionally. Perhaps the demo picture with Dark Knight Cecil, Kain, Yang, Rosa, and Young Rydia may have had its origins be validated.

I had a pretty simple theory for that screenshot, Kain joined prior to the battle of Fabul, Rosa and Rydia never left the party, and from there it would carry out like normal with Kain betraying you once you got to the crystal room. Rydia could also learn level 2 elementals at that point in development.

Edit: Cecil's lines in that battle are kind of redundant, considering he says almost the same thing before the battle starts.

bond697

  • FF4 Archivist
  • *
  • Posts: 624
  • Gender: Male
  • is NOT a spoony bard!
    • View Profile
    • The FF4 Reference Book
Re: Yang's Battle Script
« Reply #4 on: June 02, 2008, 07:54:39 AM »
very cool to see that that picture might actually have been legitimate. i'm glad i put it up there. what are messages 0xE and 0x10? the ones while fighting yang in baron?

how did you create that scenario? dk cecil and kain in the desert with yang?  make baron yang a random battle in the desert?

so, if the yang from baron who attacks you got into a fight with dk cecil, that part of the script would trigger and he'd start attacking with a dark sword?

The FF4 Reference Book - Now with new hosting!

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Yang's Battle Script
« Reply #5 on: June 02, 2008, 07:55:21 AM »
3) Yang was meant to be encountered in a different situation.. which is not what the current finished product happens to be. For all I know, you were meant to battle him and he meant to attack Cecil intentionally. Perhaps the demo picture with Dark Knight Cecil, Kain, Yang, Rosa, and Young Rydia may have had its origins be validated.

I had a pretty simple theory for that screenshot, Kain joined prior to the battle of Fabul, Rosa and Rydia never left the party, and from there it would carry out like normal with Kain betraying you once you got to the crystal room. Rydia could also learn level 2 elementals at that point in development.

Probably, but that wouldn't explain the useless Prince Edward.  :tongue:

Quote
Edit: Cecil's lines in that battle are kind of redundant, considering he says the same thing before the battle starts.

Well, yes, but the script would've normally accomodated that fact, but it makes no tangible difference.


how did you create that scenario? dk cecil and kain in the desert with yang?  make baron yang a random battle in the desert?

There's a set of monster encounter codes on Gamefaqs: http://www.gamefaqs.com/console/snes/file/522596/29355

Quote
so, if the yang from baron who attacks you got into a fight with dk cecil, that part of the script would trigger and he'd start attacking with a dark sword?

Yes. The Dark Sword was probably meant for the Dark Knight Cecil vs Paladin Cecil battle, but was never implemented in the battle script.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Yang's Battle Script
« Reply #6 on: June 02, 2008, 07:57:45 AM »
Quote
Yes, it works, but see the flag is set randomly or is dependant on some RNG based event.
So, if you ever tried using Cecil to attack Yang, you see there's no fixed number of hits required to be made, or "scheduled" timing of sorts.

I did six tests in a row before I posted, and every single one of them worked exactly as I described. The battle should end any time Paladin Cecil attacks Yang after he says "ACHOOOOO" and performs a Kick. Are you sure it's not working this way? What version are you testing? Perhaps his battle script was changed for FF2us.

bond697

  • FF4 Archivist
  • *
  • Posts: 624
  • Gender: Male
  • is NOT a spoony bard!
    • View Profile
    • The FF4 Reference Book
Re: Yang's Battle Script
« Reply #7 on: June 02, 2008, 07:59:24 AM »

I had a pretty simple theory for that screenshot, Kain joined prior to the battle of Fabul, Rosa and Rydia never left the party, and from there it would carry out like normal with Kain betraying you once you got to the crystal room. Rydia could also learn level 2 elementals at that point in development.

Edit: Cecil's lines in that battle are kind of redundant, considering he says almost the same thing before the battle starts.

where does edward fall in this, then?
The FF4 Reference Book - Now with new hosting!

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Yang's Battle Script
« Reply #8 on: June 02, 2008, 08:00:50 AM »
Quote
Yes, it works, but see the flag is set randomly or is dependant on some RNG based event.
So, if you ever tried using Cecil to attack Yang, you see there's no fixed number of hits required to be made, or "scheduled" timing of sorts.

I did six tests in a row before I posted, and every single one of them worked exactly as I described. The battle should end any time Paladin Cecil attacks Yang after he says "ACHOOOOO" and performs a Kick. Are you sure it's not working this way? What version are you testing? Perhaps his battle script was changed for FF2us.

Ah.. ok. Hmm, I've never noticed that. I guess something similar happens with Odin too, but it's not clear to me when that's initiated. It is worth looking into for sure.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Yang's Battle Script
« Reply #9 on: June 02, 2008, 08:01:14 AM »
Probably, but that wouldn't explain the useless Prince Edward.  :tongue:

Bah, it's Edward, he probably ran off the second he heard there'd be loud noises. :tongue:

Seriously though, it's more likely that screenshot is at Fabul than anywhere else, just consider the monsters present, those aren't in the battle now but they're encountered just before it, on Mt. Hobs. I can't explain why Edward's not there but Kain joining before the battle starts makes some amount of sense.

bond697

  • FF4 Archivist
  • *
  • Posts: 624
  • Gender: Male
  • is NOT a spoony bard!
    • View Profile
    • The FF4 Reference Book
Re: Yang's Battle Script
« Reply #10 on: June 02, 2008, 08:01:50 AM »
Quote
Yes. The Dark Sword was probably meant for the Dark Knight Cecil vs Paladin Cecil battle, but was never implemented in the battle script.
so, was that part of the battle script misplaced? was it supposed to be from the (former) dk. cecil? and ended up with yang by mistake?
The FF4 Reference Book - Now with new hosting!

bond697

  • FF4 Archivist
  • *
  • Posts: 624
  • Gender: Male
  • is NOT a spoony bard!
    • View Profile
    • The FF4 Reference Book
Re: Yang's Battle Script
« Reply #11 on: June 02, 2008, 08:02:49 AM »
Probably, but that wouldn't explain the useless Prince Edward.  :tongue:

Bah, it's Edward, he probably ran off the second he heard there'd be loud noises. :tongue:

Seriously though, it's more likely that screenshot is at Fabul than anywhere else, just consider the monsters present, those aren't in the battle now but they're encountered just before it, on Mt. Hobs.

the gargoyle is, no? it's just alone in the game.
The FF4 Reference Book - Now with new hosting!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Yang's Battle Script
« Reply #12 on: June 02, 2008, 08:03:59 AM »
Yeah, you fight a single gargoyle formation. By the way, I added a bit to my post above.

bond697

  • FF4 Archivist
  • *
  • Posts: 624
  • Gender: Male
  • is NOT a spoony bard!
    • View Profile
    • The FF4 Reference Book
Re: Yang's Battle Script
« Reply #13 on: June 02, 2008, 08:06:55 AM »
Probably, but that wouldn't explain the useless Prince Edward.  :tongue:

Bah, it's Edward, he probably ran off the second he heard there'd be loud noises. :tongue:

Seriously though, it's more likely that screenshot is at Fabul than anywhere else, just consider the monsters present, those aren't in the battle now but they're encountered just before it, on Mt. Hobs. I can't explain why Edward's not there but Kain joining before the battle starts makes some amount of sense.

Maybe because he's royalty he took refuge with the king? The king did know him.
The FF4 Reference Book - Now with new hosting!

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Yang's Battle Script
« Reply #14 on: June 02, 2008, 08:11:18 AM »
Probably, but that wouldn't explain the useless Prince Edward.  :tongue:

Bah, it's Edward, he probably ran off the second he heard there'd be loud noises. :tongue:

Seriously though, it's more likely that screenshot is at Fabul than anywhere else, just consider the monsters present, those aren't in the battle now but they're encountered just before it, on Mt. Hobs. I can't explain why Edward's not there but Kain joining before the battle starts makes some amount of sense.

My sarcasm is directed towards the craptacular Edward. His role is a little longer than originally intended (at least from what I understand up to this point) given what is known now..

Quote
Yes. The Dark Sword was probably meant for the Dark Knight Cecil vs Paladin Cecil battle, but was never implemented in the battle script.
so, was that part of the battle script misplaced? was it supposed to be from the (former) dk. cecil? and ended up with yang by mistake?

No, I meant it was never used. I'm assuming that every character battle is using the Deathbringer... but that would needs some actual testing though.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3