He guys,
I would like to know if anyone(and Im pretty sure there is someone) knows how to add attacks to enemies via hex editing and how to set up special conditions for that attack(for example that an enemy uses an attack right before he dies or as a counter)
I already know the basics of adding an attack to an enemy:
-You gotta overwrite the first 28 bytes after the last attack of the enemy
-You gotta create an ID for that attack and add it in the attack ID list of the enemy data and in the attack ID list right after the attack data
-You gotta add a body animation after the last body animation byte in the body animation section(right before the attack ID list in the enemy data)
-You gotta add the attack in the AI and thats pretty difficult cause you could accidentally mess up the AI for all other enemies or actions.
I know that attacks you share with the enemy always have only one byte, which can be found in the kernel(or at another enemy who has this attack),
so the code in the AI would be 60 XX 92, in the attack ID lists of the enemy data and after the attack data it would be XX 00.
For attacks that you do not share with the enemy, in the AI its: 61 XX XX 92, in the ID lists of the enemy data and right after the attack data its of course XX XX.
My question: Where do I add the 60 XX 92 or the 61 XX XX 92 in the AI exactly? And how do I set up a special condition for that attack(counter, etc)?
I appreciate your advices