FF6 Expansion Editor (FF6ExpED)
#6
Thanks guys!

Edit: I'll add more functionalities. As for steal, I'm thinking about optionally allowing a modification to the steal formula, to change how a successful steal is calculated. From a successful steal, four items could be won for a total of 100%, like the drops. I'm gonna need 2 extra bytes of RAM because contrary to the drops, stolen items are stored in RAM at beginning of battle. @DrakeyC also gave me the idea of doing the same for rages and sketch and I'll most likely do it, though I can't remember if there are rage data or not XD

The original post made my number of thanks crossing the 200... I feel like DiCaprio winning the Oscar over the bear!

Edit2: I can't test it at the moment, but there's probably a bug with having a 256/256 drop with the other three at 0/256, though it would be a very unlikely setting. In this case the program would try to fit 0x100 on one byte and could crash. The closest example, having two first drop at 0/256 and third one at 255/256 would do the following, which is fine:

Code:
CMP #$00   ; branch if minus 0 (never)
BCC drop1
CMP #$00   ; branch if minus 0 (never)
BCC drop2
CMP #$FF   ; branch if minus 0xFF (255/256)
BCC drop3
; if we reach this point it's drop 4 (0xFF only, 1/256)

; Another example with all drops at 25%
CMP #$40   ; branch if minus 64 (0x00 to 0x3F, 25%)
BCC drop1
CMP #$80   ; branch if minus 64 (0x40 to 0x7F, 128 - 64, 25%)
BCC drop2
CMP #$C0   ; branch if minus 64 (0x80 to 0xBF, 192 - 128, 25%)
BCC drop3
; if we reach this point it's drop 4 (0xC0 to 0xFF only,  25%)
Reply


Messages In This Thread
FF6 Expansion Editor (FF6ExpED) - by madsiur - 03-14-2016, 01:04 AM
RE: FF6 Expansion Editor (FF6ExpED) - by DrakeyC - 03-14-2016, 02:26 AM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 03-14-2016, 09:42 AM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 03-15-2016, 04:17 PM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 03-19-2016, 09:05 PM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 04-08-2016, 11:06 PM
RE: FF6 Expansion Editor (FF6ExpED) - by seibaby - 04-13-2016, 02:16 PM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 04-13-2016, 10:42 PM
RE: FF6 Expansion Editor (FF6ExpED) - by seibaby - 04-14-2016, 07:25 AM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 04-14-2016, 09:56 AM
RE: FF6 Expansion Editor (FF6ExpED) - by seibaby - 04-14-2016, 11:43 AM
RE: FF6 Expansion Editor (FF6ExpED) - by SSJ Rick - 04-14-2016, 08:56 PM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 04-14-2016, 09:58 PM
RE: FF6 Expansion Editor (FF6ExpED) - by SSJ Rick - 04-15-2016, 12:35 AM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 05-06-2016, 01:23 AM
RE: FF6 Expansion Editor (FF6ExpED) - by madsiur - 05-06-2016, 02:32 AM
RE: FF6 Expansion Editor (FF6ExpED) - by dn - 05-06-2016, 05:36 AM
RE: FF6 Expansion Editor (FF6ExpED) - by assassin - 05-06-2016, 08:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zone Doctor and FF6LE Expansion madsiur 66 70,608 07-24-2025, 12:39 PM
Last Post: madsiur
  Monster Expansion madsiur 31 43,091 02-23-2023, 02:38 PM
Last Post: madsiur
  Command Change Relic Table Expansion Celestial84 2 2,677 12-04-2021, 07:01 AM
Last Post: Celestial84
  Expansion of Treasure Chest subroutine NPCnextdoor 11 8,739 08-18-2018, 01:03 AM
Last Post: madsiur
  SRAM Expansion madsiur 5 6,566 12-19-2016, 09:17 AM
Last Post: seibaby

Forum Jump:


Users browsing this thread: 1 Guest(s)