• Welcome to Final Fantasy Hacktics. Please login or sign up.
 

[SOLVED]Event Decompiler - can't get message to close

Started by Nyzer, November 12, 2011, 06:12:02 pm

Nyzer

I'm playing around with adding Ladd as a guest up until the waterfall battle, where he then chooses to stay with Ramza rather than betray the team with Gaffgarion. He's just got one line at the moment, but it's the last one, and doesn't close.

This is what it looks like unedited: Ramza says Ovelia won't be another Tietra, then talking ends.

WaitForInstruction(x04,x00)
Wait(00016)
DisplayMessage(x10,x92,x000E,x02,x00,x00,+00000,+00008,+00000,x03)
WaitForInstruction(x01,x00)
CloseDialog(x02,xFFFF,x00,x00)
WaitForInstruction(x01,x00)
{6A}(r021E0001FA)
{6A}(r0B460000FA)
{1C}(r02)
Focus(x0C,x00,x0C,x00,x00)

Edited. Ladd, with the ID of Orran (he's getting a custom job/sprite for this, and I figured it would be best to make his Unit ID match his job)

WaitForInstruction(x04,x00)
Wait(00016)
DisplayMessage(x10,x92,x000E,x02,x00,x00,+00000,+00008,+00000,x03)
WaitForInstruction(x01,x00)
CloseDialog(x02,xFFFF,x00,x00)
WaitForInstruction(x01,x00)
Wait(00030)
Focus(x15,x00,x15,x00,x00)
Camera(+18539,-09805,-01847,+00302,+03584,+00000,+04096,+00032)
WaitForInstruction(x04,x00)
Wait(00016)
DisplayMessage(x10,x92,x0029,x15,x00,x00,+00000,+00008,+00000,x03)
WaitForInstruction(x01,x00)
CloseDialog(x01,xFFFF,x00,x00)
WaitForInstruction(x01,x00)
Wait(00010)

{6A}(r021E0001FA)
{6A}(r0B460000FA)
{1C}(r02)

As well, Message 29 is unused in the TEST.EVT.

//Message x28
{font:08}Gaffgarion{br}
{font:00}Damn it...{end}

//Message x29
{font:08}Ladd{br}
{font:00}Gaffgarion, you bastard!{br}
{br}
You think I'll betray them?{br}
No way!{br}
{br}
{Ramza}! I'm with you!{end}


Anyone know what I'm missing when it comes to making a text box close?
  • Modding version: Other/Unknown

3lric

November 12, 2011, 06:38:11 pm #1 Last Edit: November 12, 2011, 07:01:28 pm by Elric42
Hey man  you have it set like this

DisplayMessage(x10,x92,x0029,x15,x00,x00,+00000,+00008,+00000,x03)
WaitForInstruction(x01,x00)
CloseDialog(x01,xFFFF,x00,x00)
WaitForInstruction(x01,x00)


I have no idea what you put the extra Instruction in there for since that would actually make it wait for another dialogue box before closing the current one instead of waiting for the player to press the button. It needs to be like this instead

DisplayMessage(x10,x92,x0029,x15,x00,x00,+00000,+00008,+00000,x03)
WaitForInstruction(x01,x00)
CloseDialog(x01,xFFFF,x00,x00)


Or you could do it much simpler by simply using

DisplayMessage(x10,x12,x0029,x15,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)


if the text is below the person or

DisplayMessage(x10,x14,x0029,x15,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)


if its above.. Hope this helps, PM me if you need any more assistance or you can join chat
lots of friendly people their to help  :P
  • Modding version: PSX

Nyzer

The extra Instruction is in there because that's how I saw the chats above it to be, mostly. :P

Today's the first day I've tried the Compiler. I have no idea what the vast majority of these numbers are for, or some of those commands. But thank you, I'll be trying that out :)
  • Modding version: Other/Unknown

3lric

Quote from: nyzer on November 12, 2011, 08:09:33 pm
The extra Instruction is in there because that's how I saw the chats above it to be, mostly. :P

Today's the first day I've tried the Compiler. I have no idea what the vast majority of these numbers are for, or some of those commands. But thank you, I'll be trying that out :)


My pleasure man, i had a lot of issues learning event when i started out but this community is awesome when it comes to finding help. Good luck and let me know if you need any other kind of help working with events
  • Modding version: PSX

Nyzer

  • Modding version: Other/Unknown