Is there a way to give Edgar Magitek but only after u get him in the world of ruin ?
#5
Okay, so this isn't tested yet, but at a glance this code should work. I've used 6D, which looks to be one of several unused general event commands (there are a number that point to C0/B91A, which is just an RTS), and it takes two parameters: first, the character ID, and second, the ID of the command you want to give the character. It just straight-up replaces the second command in the character's list, since in a normal game you're probably not wanting to mess with Fight/Magic/Item.


So, if you wanted to give Edgar the Magitek ability, you'd use: 6D 04 1D, where 6D is the event command, 04 is Edgar's character ID, and 1D is Magitek's command ID.

Code:
org $C09934     ; General action 6D
DW $D613        ; New action is being placed at C0/D613

org $C0D613
LDA $EB         ; Grab first parameter (character ID)
STA $4202       ;
LDA #$25        ; Multiply by length of character block (37/#25 bytes)
STA $4203       ;
LDA $4216       ; Load result...
TAX             ; ...and transfer to X
LDA $EC         ; Grab second parameter (Command ID)
STA $1617,X     ; Character's second command is at byte 23/#17 of the block
LDA $03         ; Set accumulator to number of bytes to advance event queue
JMP $9B5C       ; ...and jump and advance.



I haven't checked this against any free-space allocations, so if you're using other patches, or if you've got other code already added in, you may need to change the location of the new code (and subsequently where the 6D pointer points to).
Current Project: FF6: Tensei | Discord ID: TristanGrayse
Reply


Messages In This Thread
RE: Is there a way to give Edgar Magitek but only after u get him in the world of ruin ? - by GrayShadows - 03-10-2014, 08:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Edgar glitches in Kefka's end speech Kenefactor 6 4,419 01-27-2020, 04:50 PM
Last Post: PowerPanda
  Need help fixing bug in Magitek menu Rodimus Primal 4 4,441 06-24-2019, 11:12 PM
Last Post: Rodimus Primal
  Magitek Command Timbo 5 10,477 03-22-2017, 07:55 AM
Last Post: B-Run
  World of Ruin racing randomizer MrEntity 2 3,493 03-22-2016, 07:10 PM
Last Post: Tenkarider
  So, how did you get rid of these Magitek Armor glitches? Kugawattan 9 12,512 12-21-2015, 09:03 AM
Last Post: Catone
  terra's magitek luxador 36 30,704 11-30-2015, 03:12 PM
Last Post: Zozma
  Trying to re-do the Edgar entrance scene Kugawattan 9 9,479 11-28-2015, 08:39 AM
Last Post: Catone
  Magitek Armor equipable from airship Catone 16 18,104 01-20-2015, 07:47 AM
Last Post: Catone
  Final Fantasy VI - Magitek command menu problem. FlamePurge 2 3,977 10-20-2014, 10:25 PM
Last Post: FlamePurge
  Problems with modifying Edgar's Tools BohepansTheFirst 2 3,351 04-10-2014, 03:54 PM
Last Post: Xenovant

Forum Jump:


Users browsing this thread: