Final Fantasy Hacktics

Modding => Help! => Topic started by: nitwit on September 06, 2016, 12:57:47 am

Title: How are exit tiles chosen in the Deep Dungeon?
Post by: nitwit on September 06, 2016, 12:57:47 am
The png maps of the Deep Dungeon by jekoln at GameFAQs indicate that each map has 1 exit tile out of 5 possible tiles.  Is this a table, and has anyone located it?  Also what does the event scripting of the DD differ from other maps?
Title: Re: How are exit tiles chosen in the Deep Dungeon?
Post by: Emmy on September 06, 2016, 01:16:20 am
I can probably explain better when I'm more awake, but if you look at the entry for the Game Progression Workbook compilation under the Attack.out tab for the deep dungeon battles, you'll see a couple lines that look like standard code for battles, and a bunch more lines.  Example:

0100FD01010019006600
2500000001000200000001006800000001006500040019005D00
2500000003000400000001006800010001006500040019005D00
2500000004000200000001006800020001006500040019005D00
2500000006000000000001006800030001006500040019005D00
2500000006000400000001006800040001006500040019005D00
160019005E00

First line here is pretty much the beginning line of playing any event. As in, play event 0x0066 the first thing you do.  Last line is the standard defeat all enemies condition line.  As in, if all enemies are dead, play event 0x005e.  Those 5 extra long lines set the coordinates for where the exit could be.  There's another variable in the game that randomizes which of these exits it is, and the combination of the 2 is if the player steps on one of those tiles, and the randomly chosen variable matches what is referenced in the code, play event 0x005d. 

Now something can be done about this, if that's what you're asking.  :p  I can explain better on another day.
Title: Re: How are exit tiles chosen in the Deep Dungeon?
Post by: Xifanie on September 06, 2016, 02:36:25 am
http://ffhacktics.com/smf/index.php?topic=11366.msg215717#msg215717

Event conditions are the right portion: