Closed x87 closed 3 months ago
0@ = read_memory ((get_this_script_struct) + 0x10) size 4 virtual_protect 0
where (expr)
essentially means: take the left-hand side variable and make a new command var = code
another example:
nlvar0 = WEAPONTYPE_SHOTGUN * SIZEOF_CWEAPONINFO
nlvar0 += aWeaponInfo
nlvar0 = Memory.Read(nlvar0, DWORD, false)
nlvar0 = Memory.Read(((WEAPONTYPE_SHOTGUN * SIZEOF_CWEAPONINFO) + aWeaponInfo), DWORD, false)
I use form read_memory 0@ = from 0@ size 4 virtual_protect 0
Great idea, but the Ctrl+Alt+2 documentation have to propose new syntax too, same with code generated during decompilation.
$x, $y, $z = get_char_coordinates $char
getter syntax is implemented, nested commands moved to #283
could be rewritten as
Rules:
=
)read_memory
is fine, butwrite_memory
can only be used as a standalone command