Author Topic: Event Offsets  (Read 8063 times)

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Event Offsets
« on: March 11, 2008, 04:40:58 AM »
I know Edea has been working on the events, and maybe some of the rest of you are too. A while ago I wrote a script (in Applescript, since I have a Mac) to translate the values in hex to readable text, then I went through and translated all the events. I read through all the scripts I had generated and tried to figure out what they all were, then I made a list of their offsets and descriptions. I just finished this recently, and I thought it would be helpful to everyone, so I've attached it. Have fun tweaking~

 :cycle:

Edit: Removed old Event Offsets document. A newer document can be found at http://slickproductions.org/forum/index.php?topic=407.msg5473#msg5473.
« Last Edit: June 29, 2008, 06:00:59 PM by Phoenix »

Paladin

  • FF4 Hacker
  • *
  • Posts: 105
  • Gender: Male
  • Warrior of Light
    • View Profile
    • FinalFantasyIV.net
Re: Event Offsets
« Reply #1 on: March 12, 2008, 01:01:08 PM »
Hey, that's sweet. I've been working on those...specifically I was looking for when Tellah remembers his spells. I'm trying to tweak magics...and anyway...

Thanks for decoding that and posting it up!

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Event Offsets
« Reply #2 on: March 12, 2008, 03:51:31 PM »
I know Edea has been working on the events, and maybe some of the rest of you are too. A while ago I wrote a script (in Applescript, since I have a Mac) to translate the values in hex to readable text, then I went through and translated all the events. I read through all the scripts I had generated and tried to figure out what they all were, then I made a list of their offsets and descriptions. I just finished this recently, and I thought it would be helpful to everyone, so I've attached it. Have fun tweaking~

 :cycle:

That sir is brilliant.  I started to do this in 2003 but stopped...this is as far as I got.   :laugh:

Quote
90262-         Tent/Cabin Music
90400-            Begin Scripts
90409-            Bahamut Cave - Behemoth Battle Event
90417-            Enter the Tower of Babil Event
90420-            Hummingway Cave Event
9042B-            Learn Sylph Event
90461-            Hummingway Dialogue 1-Middle Guy
9046A-            Namingway Event
90471-            Rubicant Fight Event
905DD-            Fireplace (OUCH!) Event
905E0-            New Game
90911-                             Received Package Event
913B4-913B6         New Shop 1
913E1-914F9         Mist Events
92606-92844         Paladin Events
92CFF-92D01         "Here is a special...blah blah blah...Tent & Cabin...blah blah blah."
955D1-95739         Enter Lunar Subterrain Event
95777-95791         Grotto Adamant Tail Collector Pink Tail Event
95944-            Get Dragoon (Final)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Event Offsets
« Reply #3 on: March 15, 2008, 09:43:07 PM »
If there's still a subroutine that you haven't figured out, I could try to make some guesses for you if need be.. as long as I have some related info as to when it is executed...
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: Event Offsets
« Reply #4 on: March 16, 2008, 12:02:28 AM »
The only ones I couldn't figure out are the very minor ones, that don't have any clues within them as to when they're executed. Unfortunately, the events aren't in nice chronological order, so it would be difficult to pinpoint what they are. I'm working on deconstructing the speech data today, so once I've finished that I should have a better idea because I can reference the event loads against other data. I'll let you know if there's anything I get stuck on.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Event Offsets
« Reply #5 on: March 16, 2008, 12:08:11 AM »
There are a few interesting ones IIRC.

Edward tells you to talk to Yang's wife once you are doing the Big Whale's quest...

Too bad there isn't too many more hints.
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: Event Offsets
« Reply #6 on: March 16, 2008, 06:04:15 AM »
I never knew about that one.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Event Offsets
« Reply #7 on: March 16, 2008, 06:21:31 AM »
Here's a visual:


It could be triggered when you speak to a Sylph or Yang in the Sylph's Cave... but I wouldn't know what specifically.
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: Event Offsets
« Reply #8 on: March 16, 2008, 08:10:16 AM »
You have a talent for picking out the weird events, Deathlike2. Turns out the sick room in Toroia castle is another map that loads characters from the underground/moon set rather than the overworld set. I must have missed it in my first pass over the data. I traced it back to another event flag that I didn't know about. It turns out that the in-bed Edward actually has 5 different dialogs, depending on the event flags set.

(The tracing goes like this: I used the character set in the location properties to look up Edward's character number, then looked up his speech data using that number, then decoded the speech data to find out in which situations he says different things. One of them was the event flag that I didn't know about, so I searched my event offsets for that event flag to find out which event sets it, then searched the speech data once again to find out which character loaded that event.  :sleep:)

And the final answer is: Deathlike2's guess is right. It's loaded when you speak to a Sylph in the Sylph's House. Second mystery solved. Another  :cookie: to me. And a  :cookie: to Deathlike2, too, since he was pretty much right on.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Event Offsets
« Reply #9 on: March 16, 2008, 08:19:41 AM »
Another pic from FF2 (using Paladin's hack, so it just has a font change, but the dialog is unchanged though):


You have a talent for picking out the weird events, Deathlike2. Turns out the sick room in Toroia castle is another map that loads characters from the underground/moon set rather than the overworld set. I must have missed it in my first pass over the data. I traced it back to another event flag that I didn't know about. It turns out that the in-bed Edward actually has 5 different dialogs, depending on the event flags set.

The other 4 dialogs:
Party finds Edward and get Twinharp...
After defeating the Dark Elf, Tellah thanks Edward...
You got Rosa back from the Tower of Zot...
The other I believe has to do when the characters come out of the underground for the first time... I don't remember the exact dialog though.

Quote
And the final answer is: Deathlike2's guess is right. It's loaded when you speak to a Sylph in the Sylph's House. Second mystery solved. Another  :cookie: to me. And a  :cookie: to Deathlike2, too, since he was pretty much right on.

Would you believe I just found that message today? Maybe it's just old school RPG talking here, but the manual suggests to talk to people again after certain events. You would think I would have actually seen this the years ago when I bought FF2.
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: Event Offsets
« Reply #10 on: March 16, 2008, 08:36:58 AM »
Here's the text from the other 4 things he says:

Displayed before all the following events:
"Edward:Cecil......
 Save Rosa...!"

Displayed after defeating the Dark Elf:
"Please avenge Anna.
For my sake too."

Displayed after the top of Tower of Zot events:
"Tellah too!?
How come the people who
I love always leave me?"

Displayed after the Super Cannon destruction:
"Oh... Yang...
I wish I could do better..."

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Event Offsets
« Reply #11 on: March 16, 2008, 08:43:14 AM »
Displayed after the Super Cannon destruction:
"Oh... Yang...
I wish I could do better..."

Same here Edward. Even with your potentially maxable stats, have a enemy race annihliation harp in FF4A, and a reworked Sing command via equipment, your Hiding and Medicine command sucks.

Yang can do better.  :tongue:

 :offtopic:
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: Event Offsets
« Reply #12 on: March 16, 2008, 05:10:16 PM »
Quote
Same here Edward.

 :laugh:

Paladin

  • FF4 Hacker
  • *
  • Posts: 105
  • Gender: Male
  • Warrior of Light
    • View Profile
    • FinalFantasyIV.net
Re: Event Offsets
« Reply #13 on: March 18, 2008, 07:23:34 PM »
Code: [Select]
86 9362D-936A3 Cecil spinning (visual effect 0B, Exit spell?)
Based on your description, this event has to be when Rosa teleports the party out of Zot back to Cecil's room in Baron before Zot is destroyed by Barbariccia's dying magic. Rosa says something like "Hold On To Me" or whatever and then casts Exit/Teleport.

I looked at the Hex and the routine contains, as you mention, the Exit spell being added to a list. It is List $07 which is Rosa's white magic list.
 
That is the only white magic spell Rosa doesn't naturally learn (Dummied white spells in FF-II notwhithstanding). However it always shows up in her spell list after you rescue her from Zot.

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Event Offsets
« Reply #14 on: March 18, 2008, 07:39:10 PM »
I remember thinking the same thing earlier, but never tested it out. It sounds like you've confirmed it, I'll update the document. Thanks