• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
June 01, 2024, 05:20:50 am

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


BATTLE.BIN: Determine if target is Dragon Type

Started by R999, June 26, 2010, 09:23:56 pm

R999

According to a Japanese source, this is the section in the Battle.bin that determines if something is a Dragon (Dragon, Blue Dragon, Red Dragon, Hydra, Hyudra, Tiamat).

竜系か判定
   lui   v0, $8019      # 00185588:3c028019   v0=$80190000
   lw   v0, $0d64(v0)      # 0018558c:8c420d64   v0=$80190d64
   addiu   sp, sp, $ffe8      # 00185590:27bdffe8   
   sw   ra, $0010(sp)      # 00185594:afbf0010   
   lbu   v0, $015e(v0)      # 00185598:9042015e   
   nop            # 0018559c:00000000   
   addiu   v0, v0, $fff1      # 001855a0:2442fff1   
   sltiu   v0, v0, $0002      # 001855a4:2c420002   
   bne   v0, zero, $001855b8   # 001855a8:14400003   相手が竜系なら※1 (If is Dragon)
   nop            # 001855ac:00000000   
   jal   $001822d8      # 001855b0:0c0608b6   ミス判定へ分岐 (Miss determination / jump)
   nop            # 001855b4:00000000   
   lw   ra, $0010(sp)      # 001855b8:8fbf0010   ※1
   addiu   sp, sp, $0018      # 001855bc:27bd0018   
   jr   ra         # 001855c0:03e00008   
   nop            # 001855c4:00000000   



It'll be nice if someone can figure out how to change the job number range so it includes all monsters, thus allowing all Dragon formulas to be useable on all Monsters.

Care to try, ambitious hacker?

LastingDawn

Ah, well there's a much easier, much less painful way. You just change all monsters, "monster types" to 0F, that's what I had done in Mercenaries as well.
"Moment's anger can revert to joy,
sadness can be turned to delight.
A nation destroyed cannot be restored,
the dead brought back to life."

Art of War

Beta & Gretchen Forever!!!!

Archael

so you can make abilities that only affect monsters?

excellent idea

Vanya

That method is simpler, but wouldn't it cause problems with add/removing certain monsters' unique attributes like the undead not displaying the purple tint their stati normally show?
  • Modding version: Other/Unknown
¯\(°_0)/¯

LastingDawn

I've never noticed any problems, personally.
"Moment's anger can revert to joy,
sadness can be turned to delight.
A nation destroyed cannot be restored,
the dead brought back to life."

Art of War

Beta & Gretchen Forever!!!!