Home › Forums › Destiny of an Emperor › DoaE Artificial Intelligence Enhancements + New Tactics
Tagged: Destiny of an Emperor, Destiny of an Emperor hack, Destiny of an Emperor hacking, Destiny of an Emperor Rom, DoaE artificial intelligence, NES AI, NES Artificial Intelligence, NES hacking, ROM Hacking, Yuan Shu
- This topic has 645 replies, 10 voices, and was last updated 4 years, 9 months ago by
MiDKnighT.
-
AuthorPosts
-
August 10, 2012 at 1:19 am #44260
MiDKnighT
ModeratorQuote:Also, it DID overwrite all the duel text…It shouldn't have done that if you only applied patch 2. :|
August 10, 2012 at 1:57 am #44261sonic.penguin
Moderatorwhoops, I think I did 1
August 10, 2012 at 4:50 am #44262DragonAtma
ModeratorMidknight, once again…
In the vanilla version, it's possible for rebel forces to be slightly stronger than cao zhi, and definitely possible for them to be stronger than the likes of Guo Jia.
Ha! Even a common
soldier can beat
[OFFICER 1]! [>]
You, in the blue
armor! Show him
how weak he is![End]
Problems, Song Yong? ;)
August 10, 2012 at 1:25 pm #44263MiDKnighT
ModeratorIt would be easier to just exclude rebel force. I'm running out of text boxes in the 32 reserved for "Duel".
Quote:whoops, I think I did 1You should only need to apply patch 1 once ever. Updates will happen in patch 2. In patch 2 I leave the duel text and lists alone.
August 11, 2012 at 4:16 am #44264sonic.penguin
ModeratorOkay, something is totally wrong with officers using tactics… they are like, never using them! Zhuge Liang keeps on whacking my guys with 500's instead of using tactics even though no Thwart is present and even the other officers just dont seem to be using them…
August 11, 2012 at 4:25 am #44265sonic.penguin
Moderatormaybe add something like if guard is active they are more likely to use tactics… and same for protect, but using attacks
August 11, 2012 at 12:27 pm #44266MiDKnighT
ModeratorQuote:maybe add something like if guard is active they are more likely to use tactics… and same for protect, but using attacksYa good idea. I'll do that next. Here's what I'll do:
– If "Guard" or "Ji Mian" is active, use tactics if they have them.
– If "Protect" or "Ce Mian" is active, attack. If Ce Mian is active and the officer has negate they will still try to use that also.
August 11, 2012 at 1:40 pm #44267MiDKnighT
ModeratorDone.
BTW any officers with INT > 150 will do this the way I have it set up.
Changes:
0x4020: 96 (150 INT)
0x40DE: 96 (150 INT)
0x4030: 4C9081
0x4050: EBA678BD00624C9A81
0x41A0:
AC2362C00EF0034CB081A678A9009DD0
614C0080000000000000000000000000
AC2362C001F0034CC0814CC091000000
AC2762C001F0034C50804CC091000000
0x51D0:
20E691A900A008BDD865E888C900F003
4C008010F4A678BDD061C900D0034CA8
434C00800000A6788AE9050A0A0AAA60
August 11, 2012 at 1:55 pm #44268sonic.penguin
ModeratorHmm, trying it, but still Zhuge Liang has yet to launch ANY tactics in a full fight w/ him…
August 11, 2012 at 1:58 pm #44269MiDKnighT
ModeratorRight, I pulled my fix because there's somewhere else I gotta look.
August 11, 2012 at 2:00 pm #44270MiDKnighT
ModeratorQuote:Hmm, trying it, but still Zhuge Liang has yet to launch ANY tactics in a full fight w/ him…That is strange. That's not happening with mine and I have the same patch. Are you using the "use water tactics anywhere" change?
That said, with your problems with Zhuge Liang… I can probably add a change to where if INT is 100 higher than STR, always use tactics unless Protect or Ce Mian is on.
August 11, 2012 at 2:14 pm #44271sonic.penguin
ModeratorNo I'm not, I can try
August 11, 2012 at 2:23 pm #44272sonic.penguin
ModeratorRepost the address needed to make slot 01 tactics available anywhere if you could.
August 11, 2012 at 2:24 pm #44273MiDKnighT
ModeratorThe reason I asked is because the tactic selection stuff is different with that on. But hold on a min, I found some original game A.I. that decides whether to attack or use tactics. This will shed light on a lot of stuff.
August 11, 2012 at 2:29 pm #44274MiDKnighT
ModeratorI have to leave soon though. I'll get back to this later. Here's what I found so far. This is from original game code:
00:A6EA:20 3B DF JSR $DF3B
00:A6ED:A2 06 LDX #$06
00:A6EF:B9 A8 61 LDA $61A8,Y @ $61B3 = #$34 <– Check INT
00:A6F2:D9 9C 61 CMP $619C,Y @ $61A7 = #$50 <– Compare INT to STR
00:A6F5:90 2A BCC $A721 <– If INT > STR, skip ahead
00:A6F7:DD 3B A8 CMP $A83B,X @ $A840 = #$C8
00:A6FA:B0 03 BCS $A6FF
00:A6FC:CA DEX
00:A6FD:10 F8 BPL $A6F7
00:A6FF:A5 7D LDA $007D = #$17
00:A701:29 07 AND #$07
00:A703:A8 TAY
00:A704:BD 42 A8 LDA $A842,X @ $A847 = #$1C
00:A707:18 CLC
00:A708:79 49 A8 ADC $A849,Y @ $A854 = #$78
00:A70B:10 02 BPL $A70F
00:A70D:A9 00 LDA #$00 <– Going to attack
00:A70F:85 F3 STA $00F3 = #$04
00:A711:A5 AE LDA $00AE = #$CD
00:A713:65 AF ADC $00AF = #$C4
00:A715:29 1F AND #$1F
00:A717:C5 F3 CMP $00F3 = #$04
00:A719:B0 2D BCS $A748
00:A71B:20 9B A8 JSR $A89B
00:A71E:4C 48 A7 JMP $A748
00:A721:DD 51 A8 CMP $A851,X @ $A857 = #$F0 <– Check INT against a value
00:A724:B0 03 BCS $A729
00:A726:CA DEX
00:A727:10 F8 BPL $A721
00:A729:A5 7D LDA $007D = #$17
00:A72B:29 07 AND #$07
00:A72D:A8 TAY
00:A72E:BD 58 A8 LDA $A858,X @ $A85E = #$18
00:A731:18 CLC
00:A732:79 5F A8 ADC $A85F,Y @ $A866 = #$F4
00:A735:10 02 BPL $A739
Maybe now is the time to start my general profiles enhancement. I've got a great idea for that :)
-
AuthorPosts
- You must be logged in to reply to this topic.

