C64 BTII: DUNGEON FLAG LAYOUT

Any developer realated stuff
Post Reply
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

C64 BTII: DUNGEON FLAG LAYOUT

Post by Darendor »

In this thread I will attempt to disassemble and examine the variables that set a dungeon level's flags.

I've managed to decode a few things, but a lot of the flags remain a mystery to me at the moment. Still, I felt it would be useful to list out the 145 bytes here and as I unravel more mysteries I will update the listing here.

Code: Select all

34F8 TO 3589

34f8 	
34f9 
34fa 
34fb
34fc 
34fd 
34fe 
34ff 
3500 
3501 
3502 
3503 
3504 
3505 
3506 
3507 
3508 
3509

Loadable specials - 16 per dungeon?
1-8 could be loadable events; 9-16 could be loadable "Battles" (THEORY, UNPROVEN)
350a    N coordinate of loadable special event #1
350b    E coordinate of loadable special event #1
350c    N coordinate of loadable special event #2 
350d 	E coordinate of loadable special event #2 
350e    N coordinate of loadable special event #3
350f    E coordinate of loadable special event #3
3510    N coordinate of loadable special event #4
3511    E coordinate of loadable special event #4
3512    N coordinate of loadable special event #5
3513    E coordinate of loadable special event #5
3514    N coordinate of loadable special event #6
3515    E coordinate of loadable special event #6
3516    N coordinate of loadable special event #7
3517    E coordinate of loadable special event #7
3518    N coordinate of loadable special event #8
3519    E coordinate of loadable special event #8

351a
351b
351c
351d
351e
351f
3520
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 
3529

Teleport Squares (8 per level)...
352a 	N coordinate for teleport square #1 [From]
352b 	E coordinate for teleport square #1 [From]
352c 	N coordinate for teleport square #2 [From]
352d 	E coordinate for teleport square #2 [From]
352e 	N coordinate for teleport square #3 [From]
352f 	E coordinate for teleport square #3 [From]
3530 	N coordinate for teleport square #4 [From]
3531 	E coordinate for teleport square #4 [From]
3532 	N coordinate for teleport square #5 [From]
3533 	E coordinate for teleport square #5 [From]
3534 	N coordinate for teleport square #6 [From]
3535	E coordinate for teleport square #6 [From]
3536 	N coordinate for teleport square #7 [From]
3537 	E coordinate for teleport square #7 [From]
3538 	N coordinate for teleport square #8 [From]
3539 	E coordinate for teleport square #8 [From]
353a 	N coordinate for teleport square #1 [To]
353b 	E coordinate for teleport square #1 [To]
353c 	N coordinate for teleport square #2 [To]
353d 	E coordinate for teleport square #2 [To]
353e	N coordinate for teleport square #3 [To]
353f 	E coordinate for teleport square #3 [To]
3540 	N coordinate for teleport square #4 [To]
3541 	E coordinate for teleport square #4 [To]
3542 	N coordinate for teleport square #5 [To]
3543 	E coordinate for teleport square #5 [To]
3544 	N coordinate for teleport square #6 [To]
3545 	E coordinate for teleport square #6 [To]
3546 	N coordinate for teleport square #7 [To]
3547 	E coordinate for teleport square #7 [To]
3548 	N coordinate for teleport square #8 [To]
3549 	E coordinate for teleport square #8 [To]


Loadable Special Events (Pre-set Combat?) 9-16...
354a    N coordinate for loadable special event #9
354b    E coordinate for loadable special event #9
354c 	N coordinate for loadable special event #10
354d 	E coordinate for loadable special event #10
354e  	N coordinate for loadable special event #11
354f 	E coordinate for loadable special event #11
3550    N coordinate for loadable special event #12
3551 	E coordinate for loadable special event #12
3552   	N coordinate for loadable special event #13
3553 	E coordinate for loadable special event #13
3554 	N coordinate for loadable special event #14
3555    E coordinate for loadable special event #14
3556 	N coordinate for loadable special event #15
3557 	E coordinate for loadable special event #15
3558 	N coordinate for loadable special event #16
3559    E coordinate for loadable special event #16

355a
355b
355c
355d
355e
355f
3560 
3561
3562
3563 
3564 
3565 
3566 
3567
3568 
3569 


Text specials/messages (8? per level)...
356a 	N coordinate of 1st occurring text string
356b 	E coordinate of 1st occurring text string
356c 	N coordinate of 2nd occurring text string
356d    E coordinate of 2nd occurring text string
356e    N coordinate of 3rd occurring text string
356f    E coordinate of 3rd occurring text string
3570 	N coordinate of 4th occurring text string
3571 	E coordinate of 4th occurring text string
3572    N coordinate of 5th occurring text string
3573    E coordinate of 5th occurring text string
3574 	N coordinate of 6th occurring text string
3575    E coordinate of 6th occurring text string
3576   	N coordinate of 7th occurring text string
3577   	E coordinate of 7th occurring text string
3578 	N coordinate of 8th occurring text string
3579   	E coordinate of 8th occurring text string

357a
357b
357c
357d
357e
357f
3580
3581
3582
3583 
3584
3585
3586
3587
3588
3589
Anecdotes & Comments thus far: It seems that each dungeon file is capable of supporting 16 loadable special events. After carefully ( :? ) analysing the Dark Domain Level 1 I am leaning towards a theory, since there are two tables of 8 events that are separated by other data. I believe that the first table (1-8) holds the coordinates for standard loadable events (such as Magic Mouth demanding password), and the second table (9-16) holds the coordinates for preset battles (for instance, the multiple instances of 1 Guardian found on the Dark Domain level 1).

Interestingly, the stairs down (21N 14E) on Dark Domain level 1 also has a teleport that is supposed to teleport the party to 21N 1E, but it doesn't work since there's already an "event" on that square. Presumably, the idea is to teleport the party if they choose not to go down the stairs.

More to come.
Post Reply