Modding => Help! => Topic started by: RavenCurow on April 13, 2018, 09:30:53 pm
Title: Targeting dead units with status changes.
Post by: RavenCurow on April 13, 2018, 09:30:53 pm
Is it possible to have a status cancel dead and be able to target an enemy? For example, I make a copy of the zombie status and have it cancel dead then put that added status on a spell. If I target a dead character with it will I be able to revive them or will it auto miss?
After looking around on the forums I came across this nifty hack Emmy came up with for a raise undead spell. Also supports other shenanigans.
<Patch name="Formula 5D - Cancel status 1, inflict status 2"> <Description>Replaces formula 5D. Does 1 HP healing (1 damage to undead) to allow for use to cancel dead. Accuracy = Fa(MA+200)%. X and Y correspond to the status inflicted on the 2nd hit of the move. X = 27 for status group 1, 28 for status group 2, etc. Y = the statuses on the byte you want to be able to inflict on hit 2. Do not use values that don't make sense for X or Y, or bugs will happen! :( Status proc ID = the status you want cancelled in the first hit of the spell. This will animate twice. If unit doesn't have status 1 to cancel, it'll attempt to inflict status 2 twice. If the first attempt at canceling status fails, it'll attempt to cancel it a 2nd time.</Description> <Location file="BATTLE_BIN" offset="128784"> 98e81580 </Location> <Location file="BATTLE_BIN" offset="f7898"> E8FFBD27 1000BFAF 19800A3C 942D428D C8000334 <!-- c8 = 200 in accuracy calculation, change this if you like --> 37004290 D03843A5 CE3842A5 0022060C 00000000 1F004014 00000000 AD1F060C 00000000 19800A3C 902D4B8D 01000134 25006291 00000000 08004330 08006010 00000000 040061A5 80004234 250062A1 D41C060C 00000000 0E000010 00000000 F9384891 FA384991 21186801 000069A0 000061A1 08000234 250062A1 C912060C 21200000 03004014 00000000 C310060C 00000000 1000BF8F 1800BD27 0800E003 00000000 </Location> <Location file="BATTLE_BIN" offset="eb314"> 09005090 08004590 5D000334 03006514 00000000 BBF50508 02000234 76F50508 00000000 </Location> <Location file="BATTLE_BIN" offset="1165cc"> C5480508 00000000 </Location> </Patch>
Thought id leave it here in case anyone else can use it.