The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Users browsing this thread: 1 Guest(s)
Monster AI Upgrade patch

#1
Posts: 763
Threads: 83
Thanks Received: 56
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
The Monster AI Upgrade Patch is here!
author: B-Run
version: 0.92
released on: 2016/03/12
patching information: header
Download


This patch significantly increases the functionality of the monster AI capabilities as well as applies the 24-bit monster HP patch. With this you can now make your bosses and mobs much more dynamic in their decision-making process. Here is a quick rundown of the features.

General Mechanic changes:
  • 24-bit monster HP patch by cklein0001 (bugfixed by myself)
  • ignore 50%,25%,12.5%,6.25% defense (independently selectable)

Script changes:
  • target front row
  • target back row
  • target highest HP
  • target lowest HP
  • target none (only works if the party or monsters have invalid targets)
  • change music
  • change background
  • enable/disable Fanatics / setup morph timer (long/short/permanent)
  • check status (major update including checking for stances like Row/Defend, and relic effects like Offering/True Knight, and elemental weaknesses, resistances, etc...)
  • if under or equal to high hp byte (for 24-bit monster HP)
  • Quick Detect
  • Script Branch bytes (used for "end-if and continue", else, looping, etc...)

Unfortunately, I never made the additional changes I has purposed to do after realeasing the Titan EX boss. But I did add the elemental check to the status update, and tweak a few things.

Included with the patch is a list of the changes, both the disassembly and the hex... as well as the parameters for a few of the specifics. I left a bit of space at the end of each of the moved pointer lists for additional upgrades should you feel ambitious enough to add to the patch yourself. I apologize that the dissasembly isn't as annotated as I would have liked; but at least it has the code locations and hex alongside.

A few notes:
-The patch uses 96 empty bytes in C0 (C0/D613-C0/D672) and 375 bytes in C2 (C2/FFF6-C2/FC6C). Adaptations should be done separate from the patch using my notes and included hex.

-"Enable/Disable Fantatics / Morph timer setup" is a very specific function with only a few options. Fanatics is enabled with bit 0, and the long morph timer (obtained after obtaining Terra in the WoB) is set with bit 1... any higher bits activated make Morph automatic and permanent.

-The Script Branch function branches forward with values of 00-7F and backward from 80-FF, starting from the last byte in the command (just like coding in hex). Branching backwards can very easily become a bad idea and lead to permanent loops because changes to variables don't always apply right away so what you might think would cause it to branch away or fail an "if" may not. This is most useful for branching past an "end-if and continue"

-Here is an updated list of things the status check can look for and their values:
Code:
21 = Defend,
22 = prot. from death,
24 = seized?
25 = Row [1 = back row]
26 = controlled?
27 = ran away?
30 = Atlas Armlet,
31 = Double Earrings,
37 = Jump Continuously)
38 = Sneak Ring,
39 = Earring,
3A = Increase sketch chance,
3B = Increase Control chance,
3C = Sniper Sight,
3D = Gold Hairpin,
3E = Economizer,
3F = Hyper Wrist)
40 = Offering,
41 = Black Belt,
42 = Beads,
43 = Gauntlet,
44 = Genji Glove
45 = Merit Award,
46 = True Knight
48 = Shell when low HP,
49 = Safe when low HP,
4A = Reflect when low HP,
4B = Exp. Egg,
4C = x2 Gold,
4F = Relic Ring
50 = Absorbs Fire
51 = Absorbs Ice
52 = Absorbs Bolt
53 = Absorbs Poison
54 = Absorbs Wind
55 = Absorbs Pearl
56 = Absorbs Earth
57 = Absorbs Water
58 = Nullifies Fire
59 = Nullifies Ice
5A = Nullifies Bolt
5B = Nullifies Poison
5C = Nullifies Wind
5D = Nullifies Pearl
5E = Nullifies Earth
5F = Nullifies Water
60 = Weak to Fire
61 = Weak to Ice
62 = Weak to Bolt
63 = Weak to Poison
64 = Weak to Wind
65 = Weak to Pearl
66 = Weak to Earth
67 = Weak to Water
68 = Resists Fire
69 = Resists Ice
6A = Resists Bolt
6B = Resists Poison
6C = Resists Wind
6D = Resists Pearl
6E = Resists Earth
6F = Resists Water

This function was updated from the Titan EX script, so don't use it as a template. TBH, the new code for this hasn't been checked. So I wouldn't be surprised if its bugged, however it shouldn't be too far off and should be fixable with my notes and a decent ASM coder.

-The patch hasn't been fully tested, and I apologize in advance for any bugs that may still exist or any errors in my documentation. Unfortunately, I will not be bug-fixing this and each of you should take the initiative to learn how to manipulate the code yourself. It's the only way to make something truly your own!

Happy Hacking!
  Find
Quote  
[-] The following 7 users say Thank You to B-Run for this post:
  • Cyprus (08-29-2014), Gi Nattak (09-18-2016), marcioseufi (07-05-2019), Robo Jesus (05-03-2015), SSJ Rick (08-29-2014), Tenkarider (08-28-2014), Warrax (07-30-2024)



Messages In This Thread
Monster AI Upgrade patch - by B-Run - 08-28-2014, 03:04 PM
RE: Monster AI Upgrade patch - by Tenkarider - 08-28-2014, 08:40 PM
RE: Monster AI Upgrade patch - by Cyprus - 08-29-2014, 12:31 AM
RE: Monster AI Upgrade patch - by ShinMrKarate - 08-29-2014, 08:45 AM
RE: Monster AI Upgrade patch - by madsiur - 08-29-2014, 04:23 PM
RE: Monster AI Upgrade patch - by Tenkarider - 12-28-2014, 02:44 PM
RE: Monster AI Upgrade patch - by B-Run - 05-10-2016, 11:52 AM
RE: Monster AI Upgrade patch - by seibaby - 05-10-2016, 01:59 PM
RE: Monster AI Upgrade patch - by B-Run - 05-10-2016, 02:03 PM
RE: Monster AI Upgrade patch - by seibaby - 05-10-2016, 02:09 PM
RE: Monster AI Upgrade patch - by Gi Nattak - 05-10-2016, 03:07 PM
RE: Monster AI Upgrade patch - by dn - 05-10-2016, 09:37 PM
RE: Monster AI Upgrade patch - by seibaby - 05-10-2016, 10:24 PM
RE: Monster AI Upgrade patch - by B-Run - 05-12-2016, 01:58 PM
RE: Monster AI Upgrade patch - by B-Run - 05-24-2016, 07:53 AM
RE: Monster AI Upgrade patch - by seibaby - 05-12-2016, 02:56 PM
RE: Monster AI Upgrade patch - by Tenkarider - 05-12-2016, 03:36 PM
RE: Monster AI Upgrade patch - by Imzogelmo - 05-24-2016, 01:21 AM
RE: Monster AI Upgrade patch - by Lord Envoy - 01-25-2017, 04:26 PM
RE: Monster AI Upgrade patch - by B-Run - 02-04-2017, 10:20 AM
RE: Monster AI Upgrade patch - by madsiur - 02-04-2017, 11:42 AM
RE: Monster AI Upgrade patch - by Lord Envoy - 02-04-2017, 09:31 PM
RE: Monster AI Upgrade patch - by Tenkarider - 02-04-2017, 09:47 PM
RE: Monster AI Upgrade patch - by B-Run - 02-04-2017, 10:01 PM
RE: Monster AI Upgrade patch - by ExiaTreason - 10-25-2017, 09:05 PM
RE: Monster AI Upgrade patch - by B-Run - 11-23-2017, 01:18 PM
RE: Monster AI Upgrade patch - by kamesennin - 08-27-2020, 02:04 PM
RE: Monster AI Upgrade patch - by doofenH - 04-22-2022, 08:54 AM
RE: Monster AI Upgrade patch - by Warrax - 09-22-2024, 09:59 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite