Ensure you have a value greater than 3. Set your cheat engine search value type to "all".
View attachment 4717482
Then search for the value you see and then do something that changes the value. Search again. Change the value. Search again until you have only the item remaining that matches the value you see on screen (should take about 3-4 attempts). Double click to add the value to your modify table and then click on that to change its value to whatever you want. For troops I recommend setting them to 100,200 or 300. Bear in mind that if you quit the game you will have to repeat this process so keep counts of things that are easily lost (i.e prisoners. troops) at high numbers so you can quickly use search engine to find it again and bump it back up.
Process for finding values (Easier if the number is greater than 3. Borderline impossible if the number is 1):
Troops - Just create a team and search the value each time you add or remove a troop. Don't go nuts here or you will run out of food.
Prisoners - Go to the altar and feed prisoners to the altar by clicking the flame at the bottom left and then clicking prisoners. Do a search before and after you feed a prisoner to the altar
Food and ore - Just search everytime you pass a turn and the number of resources changes