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
-
July 20, 2012 at 8:13 pm #43923
sonic.penguin
ModeratorQuote:DEATH possibility.I sense a definite game break in terms of game flow and future referrals to Zhang Fei even if he's not present, hehe
Quote:– Duel A.I. (how the computer opponent decides when and who do duel – obviously someone like Lu Bu or Zhang Fei is going to like to duel (provided they have the tactic) 8) ).I sense your personality system at work…
I tested out the "Charge" tactic with Lu Xun in the lead, the enemy cant seem to get it to work on my guys so its kind of nerfing dumb officers.
July 20, 2012 at 8:32 pm #43924MiDKnighT
ModeratorQuote:I sense a definite game break in terms of game flow and future referrals to Zhang Fei even if he's not present, heheZhang Fei and anybody on the "No kill" list would be safe. The plan is that nobody above 220 STR or INT can be killed unless they are on the "mismatch" list.
Quote:I tested out the "Charge" tactic with Lu Xun in the lead, the enemy cant seem to get it to work on my guys so its kind of nerfing dumb officers.Ya I'll fix that. "Charge" will automatically work in the near future…
July 20, 2012 at 8:32 pm #43925MiDKnighT
ModeratorPutting the (planned) duel messages in this thread (the first one is for "Protect"). The first number is the message ID:
60
Our army is now
more protected
against fire[>]
and water tactics.[END]
61
[OFFICER-2] accepts
your challenge.
[>][END]
62
[OFFICER-2] has
declined your
challenge.[>][END]
63
[OFFICER] was
badly wounded
in the duel.[>][END]
64
[OFFICER-2] was
badly wounded
in the duel.[>][END]
65
[OFFICER] has
fled the duel
in terror.[>][END]
66
[OFFICER-2] has
fled the duel
in terror.[>][END]
67
[OFFICER] was
KILLED in the
duel![>][END]
68
[OFFICER-2] was
KILLED in the
duel![>][END]
69
[OFFICER] and
[OFFICER-2] meet
in combat… [>]
[END]
6A
[OFFICER]'s men
have lost
confidence in him.[>]
They now
doubt his ability
to lead…[>]
[END]
6B
[OFFICER-2]'s men
have lost
confidence in him.[>]
They now
doubt his ability
to lead…[>]
[END]
6C
[OFFICER] was
victorious![>]
[END]
6D
[OFFICER-2] was
victorious![>]
[END]
6E
[OFFICER]'s men
gain speed![>]
[END]
6F
[OFFICER-2]'s
men gain speed.
[>][END]
70
[OFFICER]'s
men rally![>]
[END]
71
[OFFICER-2]'s
men rally!
[>][END]
72
[OFFICER] and
[OFFICER-2] have
battled to a draw!
73
[OFFICER] and
[OFFICER-2] have
both been wounded!
July 20, 2012 at 10:04 pm #43926MiDKnighT
ModeratorI might nix the double wound (double An Sha) thing. It seems much easier to just call the An Sha success code once a duel winner is determined. So if there is an even matchup it will just end in a draw.
Should anyone get a bonus after a draw?
July 20, 2012 at 10:17 pm #43927sonic.penguin
Moderatorno, and maybe you should just FF out the empty spots to add up to 36 spaces for each text line, this way anyone can edit it? or maybe get niahak to add a bonus text editing section >_>
6B only needs the first half
After testing Charge more, it fails too much atm, so the sooner you find a fix the better
July 20, 2012 at 10:24 pm #43928DragonAtma
ModeratorOnce again, it's possible that one officer forces the other to flee — even if neither or both get injured. So yes, it should happen some of the time.
Although unharmed,
[OFFICER]
was clearly[>]
outfought.
Although unharmed,
[OFFICER-2]
was clearly[>]
outfought.
Both were injured,
but clearly
[OFFICER][>]
dominated.
Both were injured,
but clearly
[OFFICER-2][>]
dominated.
But since both officers rode out and
played SSBBfought bravely, neither of them should have morale-related penalties.July 20, 2012 at 11:33 pm #43929sonic.penguin
ModeratorDo you have the code for combining Huo, Shui Jian tactic
July 21, 2012 at 4:18 am #43930MiDKnighT
ModeratorQuote:Do you have the code for combining Huo, Shui Jian tacticYes, but in my notes it's all jumbled up the with enhanced An Sha and Duel tactic stuff. So once I finish at least a decent version of "Duel" (probably next week) I'll release all the changes. Here's the mechanics of "Protect" (combined Wuo Jian/Shui Jian):
New Protect code:
00:8252:C0 11 CPY #$11 <– Is tactic protect?
00:8254:D0 47 BNE $829D
00:8256:BD 20 62 LDA $6220,X @ $6223 = #$03 <– Get Cheng Nei, Ji Rou/Guard, Wuo Jian, or Shui Jian Status
00:8259:29 01 AND #$01
00:825B:C9 01 CMP #$01
00:825D:D0 05 BNE $8264
00:825F:A9 01 LDA #$01
00:8261:4C B7 82 JMP $82B7 <– If Ji Rou/Guard is already enabled, fail.
00:8264:E8 INX
00:8265:E8 INX
00:8266:BD 20 62 LDA $6220,X @ $6223 = #$03 <– Get Ce Mian status
00:8269:C9 00 CMP #$00
00:826B:F0 03 BEQ $8270
00:826D:4C B5 82 JMP $82B5 <– If Ce Mian is already enabled, fail.
00:8270:E8 INX
00:8271:E8 INX
00:8272:BD 20 62 LDA $6220,X @ $6223 = #$03 <– Get Ji Mian status
00:8275:C9 00 CMP #$00
00:8277:F0 03 BEQ $827C
00:8279:4C B5 82 JMP $82B5 <– If Ji Mian is already enabled, fail
00:827C:CA DEX
00:827D:CA DEX
00:827E:CA DEX
00:827F:CA DEX
00:8280:A0 12 LDY #$12
00:8282:BD 20 62 LDA $6220,X @ $6223 = #$03
00:8285:19 D0 81 ORA $81D0,Y @ $81E1 = #$02
00:8288:9D 20 62 STA $6220,X @ $6223 = #$03
00:828B:A0 15 LDY #$15
00:828D:BD 20 62 LDA $6220,X @ $6223 = #$03
00:8290:19 D0 81 ORA $81D0,Y @ $81E1 = #$02
00:8293:9D 20 62 STA $6220,X @ $6223 = #$03
00:8296:A0 11 LDY #$11
00:8298:A9 60 LDA #$60
00:829A:20 B0 86 JSR $86B0
00:829D:4C D0 82 JMP $82D0
00:82A0:A9 1E LDA #$1E
00:82A2:20 82 C4 JSR $C482
00:82A5:A4 4D LDY $004D = #$11
00:82A7:C0 1A CPY #$1A
00:82A9:D0 03 BNE $82AE
00:82AB:4C B0 83 JMP $83B0
00:82AE:A5 AD LDA $00AD = #$7F
00:82B0:65 AE ADC $00AE = #$1F
00:82B2:29 0F AND #$0F
00:82B4:C5 F3 CMP $00F3 = #$04
00:82B6:90 03 BCC $82BB
00:82B8:4C 95 83 JMP $8395
00:82BB:4C 90 83 JMP $8390
00:82BE:A9 00 LDA #$00
00:82C0:9D 20 62 STA $6220,X @ $6222 = #$0E
00:82C3:4C 95 83 JMP $8395
New Protect A.I.:
# Enemy won't use protect if it is already active or if Ji Rou/Guard, Ce Mian, or Ji Mian are already active.
00:8085:C9 11 CMP #$11 <– Is Tactic Protect?
00:8087:D0 22 BNE $80AB
00:8089:A8 TAY
00:808A:AD 22 62 LDA $6222 = #$00 <– Get Cheng Nei, Ji Rou/Guard, Wuo Jian, or Shui Jian Status
00:808D:29 02 AND #$02
00:808F:C9 00 CMP #$00
00:8091:F0 03 BEQ $8096
00:8093:4C A8 83 JMP $83A8
00:8096:AD 24 62 LDA $6224 = #$00 <– Get Ce Mian Status
00:8099:C9 00 CMP #$00
00:809B:F0 03 BEQ $80A0
00:809D:4C A8 83 JMP $83A8
00:80A0:AD 26 62 LDA $6226 = #$00 <– Get Ji Mian Status
00:80A3:C9 00 CMP #$00
00:80A5:F0 03 BEQ $80AA
00:80A7:4C A8 83 JMP $83A8 <– Pick something else
00:80AA:98 TYA
00:80AB:C9 12 CMP #$12 <– Is Tactic Duel?
00:80AD:D0 03 BNE $80B2
00:80AF:4C D0 82 JMP $82D0 <– Go to Duel A.I. code
00:80B2:C9 1A CMP #$1A <– Is Tactic An Sha?
00:80B4:D0 03 BNE $80B2
00:80B6:4C 20 84 JMP $8420 <– Go to An Sha A.I. code
00:80B9:4C 00 80 JMP $8000
July 21, 2012 at 4:20 am #43931MiDKnighT
ModeratorI can also make "Charge" always work but that is kinda mixed up with the Protect/Enhanced An Sha/Duel code too.
July 21, 2012 at 1:20 pm #43932sonic.penguin
ModeratorCool, thanks. Now I can
A. go line by line and enter things in or…
B. Just wait til next week…
C. Dance like a cactuar…
I think we all know the answer is C …
:cactuar:
July 21, 2012 at 2:10 pm #43933MiDKnighT
ModeratorI'll try to get a basic duel working soon then I'll give the changes.
I also have charge working 100% on my local copy
July 21, 2012 at 5:27 pm #43934MiDKnighT
ModeratorThe easiest way to do the An Sha thing is to just call the An Sha (success) code. And that means you would get the An Sha text at the end. Is that ok with everybody? The An Sha text is of course, editable in DoaEditor.
July 21, 2012 at 6:37 pm #43935sonic.penguin
ModeratorFine with me, I have something like "Jin Xuan, your head belongs to me now!"
July 21, 2012 at 7:44 pm #43936MiDKnighT
ModeratorBummer! I hadn't been saving my changes to my ROM (just been using the hex editor in FCE Ultra) and I had a blue screen! I had been saving the changes in a text file so I'll go back and use that. But I'll probably go ahead and do the changes to my IPS patching ROM then just patch the YS mod. That said, I'll probably just do a simple version of "Duel" first and think about adding more later. So I'll probably release the changes in the next couple days.
July 21, 2012 at 11:15 pm #43937sonic.penguin
Moderator:cheers: to the updates and boo to your BSOD
-
AuthorPosts
- You must be logged in to reply to this topic.

