Getting into Cheat Engine and finding the Gem code

## 00 WA ?? WB 00 XA ?? XB 00 YA ?? YB 00 ZA ?? ZB 00 ## = Gem Type WA = First Bonus Type WB = First Bonus Value XA = Second Bonus Type XB = Second Bonus Value YA = Third Bonus Type YB = Third Bonus Value ZA = Fourth Bonus Type ZB = Fourth Bonus Value ?? = UNKNOWN

23 00 36 ?? 08 00 2B ?? 06 00 24 ?? 1D 00 1E ?? 06 00

Righteo... getting Dynasty Warriors 9 running and installing + opening Cheat Engine is the first step.Once you've opened Cheat Engine, you should see a button that looks like a computer in the upper left corner ("Select a process to open"). Clicking that brings up a dropdown list of active programs running on the computer. Scroll down to where Dynasty Warriors 9 is and select open. IF you've already done this before, saved some settings or whatever and made a file for them, it will ask if you want to open the associated file at this point... OTHERWISE... it'll just open.It should look something like this, except the box at the bottom will be empty if you haven't done this before... and maybe a different colour-scheme...Now see, normally with Cheat Engine stuff, I'd be typing things into that "Value" box and doing scans of the game for particular values, then modifying them and scanning again to narrow the search. Funnily enough that is exactly how I found where the Gems were stored in the first place...BUT... in this case that shouldn't be necessary. I'm not here to give general-purpose Cheat Engine tutorials. This is about the Gems.What you want is the "Memory view".See that button on the lower left? That is one way of getting into the Memory view. Another way is to select an address that you've found (not getting into that) and selecting to Browse the memory region.Anyway...The Memory View...This can be a bit daunting. Don't change anything in it just yet. Seriously, don't go changing things at random. It can screw up the game. Seriously.SPEAKING OF THE GAME... you'll want to get back to that for a moment now.Gotta pick a Gem to do science to...My, what an interesting Gem I've got there...Azure Dragon GemAttack Speed +8% with Wind ElementalElemental Attack Damage +6 during a CounterMusou Attack Damage +29%Trigger Attack +6%These are the important things to remember... These are the things that will enable us to find the Gem in the Memory View.SO.... the Gem code.... or what we'll be looking for.I'll make it nice and formulaic:Technically speaking, the 00 after WB, XB, YB and ZB are just extra slots for larger bonus values, but those will be 00 for most Gems. Only gems that have particular item drops upon attacks hitting are likely to change those, so if you're modding one of the Lord Gems that has item drops, it may be best to replace the related "00" slot with "??".I'll be listing the Gem Types and Bonus Attributes in separate sections for convenience.Anyway.... for the particular Gem I'm using for the example... and note, the Memory View is all in Hexadecimal, while the in-game view is Decimal... so...Azure Dragon Gem = 23 (hex)Attack Speed % with Wind Elemental = 36 , Value = 08Elemental Attack Damage during a Counter = 2B , Value = 06Musou Attack Damage % = 24 , Value = 1D (still in hex, remember?)Trigger Attack % = 1E , Value = 06If the hexadecimal confuses you... just keep in mind that it is a base 16 number system that computers use a lot. Most normal (decimal) numbers past 9 start to look a bit different when converted into hexadecimal. In this case, for instance, the "29" value for Musou Attack Damage becomes "1D" in hex. The Memory view is all in hex, so that is what we use.So... inserting all that into the code I listed earlier gives us:Yes, those question-marks are meant to be there. They're wild-card characters for the search. Most of them are usually "00", but sometimes they change... so better safe than sorry. I'm pretty sure they're not important anyhow...SOWe go back into the Memory View, hitto bring up the search...Then we set the "From" value to something suitably early like "1" (this is where in the memory it starts the search), set the "(Array of) byte" radio button, past the code into the long searchy box... and hit OK.And lo and behold... it found it.Just so it is crystal clear, I'm even saving this screenshot as a PNG instead of the usual JPG goodness... Oh the extravagance!Now before I go running off to the next section: the best way to check and make sure you've got it right is to change one of the values. Preferably one of the number bits... Look... I'll show you...See that? I change the second "06" to "69" (69 in Hexadecimal is 105 in Decimal), and sure enough the Trigger Attack % value changed to 105. Good. That means I've got the right bit of the memory.: You may notice that a little bit ahead in the memory, possibly on the line below depending on how wide you've got it set (definitely on the line below if you have it 5 blocks wide), there should be another identical line to your first. Just to be on the safe side, whatever changes you make to the first line, be sure to make the same changes to the second line as well. They have to remain identical, ideally.(Yes, I added this image later and this is a completely different Gem to the one from earlier examples. It is a Poison Lord Gem with strongly modified attributes.)Right... but that won't mean anything if you don't know what all the numbers correspond to.NEXT SECTION!