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 13, 2012 at 8:47 pm #44305
MiDKnighT
ModeratorWith the new tactic picking system I need to add some A.I. for heal tactics.
I'm thinking the rule will be:
If we still have over half our HP, choose something else to do if they were going to do a heal tactic.
I also fixed a couple of duel bugs. Can catch them more now since the enemy is using duel more.
August 13, 2012 at 10:10 pm #44306sonic.penguin
ModeratorOkay, here is a question, lets say a guy only has enough intellect for 3-4 tactics (IE; Maybe Xu Zhu) and his tactics don't line up with duel b/c in my game its slot 06, but for him it might be in slot 04… would that mess things up royally if there were no tactic present in the slot yet he was programmed to use slot 6 via this new enhancement? Havent tested it yet…
August 13, 2012 at 10:22 pm #44307MiDKnighT
ModeratorIf you defined Duel to be in slot 06 then put slot 06 in the profile. That will work regardless of how many tactics Xu Zhu has BUT make this change first if you haven't already:
0x3A944: 12->FF
August 13, 2012 at 10:23 pm #44308MiDKnighT
ModeratorAlso, if Xu Zhu is assigned to a profile that has slot 05 defined and Xu Zhu doesn't have any tactics that would be in slot 05, then Xu Zhu will just attack.
August 13, 2012 at 10:24 pm #44309MiDKnighT
ModeratorAlso, if Xu Zhu is assigned to a profile that has slot 05 defined and Xu Zhu doesn't have any tactics that would be in slot 05, then Xu Zhu will just attack (if he randomly picks to use slot 05).
August 13, 2012 at 10:24 pm #44310MiDKnighT
ModeratorAlso, if Xu Zhu is assigned to a profile that has slot 05 defined and Xu Zhu doesn't have any tactics that would be in slot 05, then Xu Zhu will just attack (if he randomly picks to use slot 05).
August 13, 2012 at 10:53 pm #44311sonic.penguin
ModeratorWill give it a whirl…
August 13, 2012 at 11:37 pm #44312sonic.penguin
ModeratorWhat address was it again to change the INT needed to always accept a duel?
August 14, 2012 at 12:26 am #44313MiDKnighT
ModeratorWhen it comes to duel there are 3 INT levels:
Below 150 = Only look at their own STR to decide whether or not to duel.
151-219 = Compare their STR vs their opponent and make a somewhat wise choice.
220+ = Rarely duel, see if they can send someone else in their place.
The "150" cutoff is at 0x4537.
The way it works now the only general that will never reject a duel is Lu Bu. With INT < 150 he is only looking at his own STR and he has max STR.
August 14, 2012 at 12:39 am #44314sonic.penguin
ModeratorPut that in the guide :) I'm going to up it simply b/c I want my OWN officers to accept duels more often against stronger people :)
August 14, 2012 at 12:41 am #44315MiDKnighT
ModeratorYa I was reluctant to put it in the guide as stuff was still moving around. I think the duel accept reject stuff is pretty much stable now so I'll add to the guide soon. Maybe I should also put this value in patch 1 so that patch 2 doesn't overwrite the value.
August 14, 2012 at 3:18 am #44316MiDKnighT
ModeratorAdding some heal A.I. (don't heal unless it is under half max HP:
0x4060: C910B0034CF091
0x5200:
C90AB0034C0080A67820D0888A0A0AAA
BD6161C900D0034C20924A85B3BDD160
C5B3B0034C00804CA883000000000000
BD60614A85B3BDD0604C109200000000
August 14, 2012 at 3:31 am #44317DragonAtma
ModeratorI still disagree with the duel formula — even a total moron should realize that they're probably screwed if they accept lu bu's challenge — but somehow I don't see things changing…
August 14, 2012 at 3:36 am #44318MiDKnighT
ModeratorBut if they are a total moron they only look at their own STR. Zhang Fei is likely to accept a duel with Lu Bu because of his own STR. Song Yong would never accept a duel with Lu Bu because he knows he sucks. If they have INT < 150, the higher their STR, the more likely they are to accept. I think anybody with STR under 100 will automatically refuse.
August 14, 2012 at 3:55 am #44319DragonAtma
ModeratorEven if they're a total moron, some things are still fairly obvious to them.
A 1-on-1 war between north korea and south korea, for example, would be somewhat iffy, but even the dumbest people on earth can tell you how a 1-on-1 war between China and Tonga would go.
That said, it'd probably be best to somewhat randomize each officer's view of their str and then let them decide "intelligently". Easiest would be to have Zhuge Liang view his str perfectly correctly, down to a 0-int officer being off by a random 0-63 points in either direction.
-
AuthorPosts
- You must be logged in to reply to this topic.

