Users browsing this thread: 1 Guest(s)
Battle Formation Event Command

#1
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Battle Formation event command
version 1.0
released on 12/21/2016
apply to headerless FF3us
credit: Shall
wiki entry
Download

This hack is inspired by the work of Shall on FF6-G (which ASM code is public) but his code has been adapted to FF3us and modified in order to behave exactly like command $4D and not like the original $C0A5A7 battle calling code, which resulted in weird behavior with the party position after a battle called with an event trigger.

This event command fill a gap in FF3us by letting you call a battle directly with a formation. Normally as an example command $4D will call a pack with ID between $100 and $1FF, which can be somehow limited for extensive hacks with a lot of battles called this way. This command $69 behave in a identical way of command $4D, except instead of a pack number, a formation ID is provided.

The format is the following:

69 AA BB CC
Battle with formation BBAA with battle background CC
CC AND $3F = Background ID, map default if CC equals $3F
CC AND $80 = Disable battle blur
CC AND $40 = No battle sound

As an example, 69 22 01 12 will trigger a battle with formation $0122 with battle background $12, battle blur and battle sound. 69 22 01 3F would use the map default background and 69 22 01 FF the default background with no battle blur and no battle sound.

As always, you need to provide the good event context after battle in order to see this fully working (same for command $4D). An example would be:

Code:
69 22 01 12         ; Call battle
B2 A9 5E 00         ; Check for game over (subroutine $CA5EA9)
96                  ; Restore screen from fade
FE                  ; Return


If you want to move the command code elsewhere in bank $C0 or in another bank, you can assemble the ASM file you need with xkas 0.06.
  Find
Quote  
[-] The following 2 users say Thank You to madsiur for this post:
  • B-Run (12-21-2016), Tenkarider (12-21-2016)

#2
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite