<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
  <CheatEntries>
    <CheatEntry>
      <ID>0</ID>
      <Description>"example script"</Description>
      <LastState Activated="0"/>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>//everything outside of the enable/disable sections get execurted every single time
{$lua}
function FindOneAob(find)
  local result
  local ms=createMemScan()
  ms.OnlyOneResult=true
  ms.firstScan(soExactValue, vtByteArray, rtTruncated, find,'',0,0xffffffffffffffff,'*W*X*C', fsmNotAligned,'1', true, false, false, false)
  ms.waitTillDone()
  result=ms.Result

  ms.destroy()

  return result
end
{$asm}

//in this case only trigger when it's enabled, but you could put it out here as well

[enable]
{$lua}
if syntaxcheck then return end --don't execute on file-&gt;assign to cheat table

local address=FindOneAob("c6 05 f0 f4 54 00 00 b9 ** ** ** ** ba 04 90")
local actualaddress=address+8; --whatever offset in the aob

fullAccess(actualaddress, 4)
writeInteger(actualaddress, readInteger(actualaddress)+500)
{$asm}

[disable]
//do nothing I guess, or decrease by 500, or whatever you like

</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
